github.com/goplus/gossa@v0.3.25/pkg/log/syslog/go116_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package syslog
     6  
     7  import (
     8  	q "log/syslog"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "syslog",
    19  		Path: "log/syslog",
    20  		Deps: map[string]string{
    21  			"errors":  "errors",
    22  			"fmt":     "fmt",
    23  			"log":     "log",
    24  			"net":     "net",
    25  			"os":      "os",
    26  			"strings": "strings",
    27  			"sync":    "sync",
    28  			"time":    "time",
    29  		},
    30  		Interfaces: map[string]reflect.Type{},
    31  		NamedTypes: map[string]gossa.NamedType{
    32  			"Priority": {reflect.TypeOf((*q.Priority)(nil)).Elem(), "", ""},
    33  			"Writer":   {reflect.TypeOf((*q.Writer)(nil)).Elem(), "", "Alert,Close,Crit,Debug,Emerg,Err,Info,Notice,Warning,Write,connect,write,writeAndRetry"},
    34  		},
    35  		AliasTypes: map[string]reflect.Type{},
    36  		Vars:       map[string]reflect.Value{},
    37  		Funcs: map[string]reflect.Value{
    38  			"Dial":      reflect.ValueOf(q.Dial),
    39  			"New":       reflect.ValueOf(q.New),
    40  			"NewLogger": reflect.ValueOf(q.NewLogger),
    41  		},
    42  		TypedConsts: map[string]gossa.TypedConst{
    43  			"LOG_ALERT":    {reflect.TypeOf(q.LOG_ALERT), constant.MakeInt64(int64(q.LOG_ALERT))},
    44  			"LOG_AUTH":     {reflect.TypeOf(q.LOG_AUTH), constant.MakeInt64(int64(q.LOG_AUTH))},
    45  			"LOG_AUTHPRIV": {reflect.TypeOf(q.LOG_AUTHPRIV), constant.MakeInt64(int64(q.LOG_AUTHPRIV))},
    46  			"LOG_CRIT":     {reflect.TypeOf(q.LOG_CRIT), constant.MakeInt64(int64(q.LOG_CRIT))},
    47  			"LOG_CRON":     {reflect.TypeOf(q.LOG_CRON), constant.MakeInt64(int64(q.LOG_CRON))},
    48  			"LOG_DAEMON":   {reflect.TypeOf(q.LOG_DAEMON), constant.MakeInt64(int64(q.LOG_DAEMON))},
    49  			"LOG_DEBUG":    {reflect.TypeOf(q.LOG_DEBUG), constant.MakeInt64(int64(q.LOG_DEBUG))},
    50  			"LOG_EMERG":    {reflect.TypeOf(q.LOG_EMERG), constant.MakeInt64(int64(q.LOG_EMERG))},
    51  			"LOG_ERR":      {reflect.TypeOf(q.LOG_ERR), constant.MakeInt64(int64(q.LOG_ERR))},
    52  			"LOG_FTP":      {reflect.TypeOf(q.LOG_FTP), constant.MakeInt64(int64(q.LOG_FTP))},
    53  			"LOG_INFO":     {reflect.TypeOf(q.LOG_INFO), constant.MakeInt64(int64(q.LOG_INFO))},
    54  			"LOG_KERN":     {reflect.TypeOf(q.LOG_KERN), constant.MakeInt64(int64(q.LOG_KERN))},
    55  			"LOG_LOCAL0":   {reflect.TypeOf(q.LOG_LOCAL0), constant.MakeInt64(int64(q.LOG_LOCAL0))},
    56  			"LOG_LOCAL1":   {reflect.TypeOf(q.LOG_LOCAL1), constant.MakeInt64(int64(q.LOG_LOCAL1))},
    57  			"LOG_LOCAL2":   {reflect.TypeOf(q.LOG_LOCAL2), constant.MakeInt64(int64(q.LOG_LOCAL2))},
    58  			"LOG_LOCAL3":   {reflect.TypeOf(q.LOG_LOCAL3), constant.MakeInt64(int64(q.LOG_LOCAL3))},
    59  			"LOG_LOCAL4":   {reflect.TypeOf(q.LOG_LOCAL4), constant.MakeInt64(int64(q.LOG_LOCAL4))},
    60  			"LOG_LOCAL5":   {reflect.TypeOf(q.LOG_LOCAL5), constant.MakeInt64(int64(q.LOG_LOCAL5))},
    61  			"LOG_LOCAL6":   {reflect.TypeOf(q.LOG_LOCAL6), constant.MakeInt64(int64(q.LOG_LOCAL6))},
    62  			"LOG_LOCAL7":   {reflect.TypeOf(q.LOG_LOCAL7), constant.MakeInt64(int64(q.LOG_LOCAL7))},
    63  			"LOG_LPR":      {reflect.TypeOf(q.LOG_LPR), constant.MakeInt64(int64(q.LOG_LPR))},
    64  			"LOG_MAIL":     {reflect.TypeOf(q.LOG_MAIL), constant.MakeInt64(int64(q.LOG_MAIL))},
    65  			"LOG_NEWS":     {reflect.TypeOf(q.LOG_NEWS), constant.MakeInt64(int64(q.LOG_NEWS))},
    66  			"LOG_NOTICE":   {reflect.TypeOf(q.LOG_NOTICE), constant.MakeInt64(int64(q.LOG_NOTICE))},
    67  			"LOG_SYSLOG":   {reflect.TypeOf(q.LOG_SYSLOG), constant.MakeInt64(int64(q.LOG_SYSLOG))},
    68  			"LOG_USER":     {reflect.TypeOf(q.LOG_USER), constant.MakeInt64(int64(q.LOG_USER))},
    69  			"LOG_UUCP":     {reflect.TypeOf(q.LOG_UUCP), constant.MakeInt64(int64(q.LOG_UUCP))},
    70  			"LOG_WARNING":  {reflect.TypeOf(q.LOG_WARNING), constant.MakeInt64(int64(q.LOG_WARNING))},
    71  		},
    72  		UntypedConsts: map[string]gossa.UntypedConst{},
    73  	})
    74  }