Documentation ¶
Index ¶
- Variables
- type Before
- type Bootstrap
- func (*Bootstrap) Descriptor() ([]byte, []int)deprecated
- func (x *Bootstrap) GetData() *Data
- func (x *Bootstrap) GetEnv() *Env
- func (x *Bootstrap) GetInterflow() *Interflow
- func (x *Bootstrap) GetLog() *Log
- func (x *Bootstrap) GetMq() *MQ
- func (x *Bootstrap) GetServer() *Server
- func (x *Bootstrap) GetWatchProm() *WatchProm
- func (*Bootstrap) ProtoMessage()
- func (x *Bootstrap) ProtoReflect() protoreflect.Message
- func (x *Bootstrap) Reset()
- func (x *Bootstrap) String() string
- type Data
- type Data_Redis
- func (*Data_Redis) Descriptor() ([]byte, []int)deprecated
- func (x *Data_Redis) GetAddr() string
- func (x *Data_Redis) GetDb() uint32
- func (x *Data_Redis) GetDialTimeout() *durationpb.Duration
- func (x *Data_Redis) GetNetwork() string
- func (x *Data_Redis) GetPassword() string
- func (x *Data_Redis) GetReadTimeout() *durationpb.Duration
- func (x *Data_Redis) GetWriteTimeout() *durationpb.Duration
- func (*Data_Redis) ProtoMessage()
- func (x *Data_Redis) ProtoReflect() protoreflect.Message
- func (x *Data_Redis) Reset()
- func (x *Data_Redis) String() string
- type Env
- func (*Env) Descriptor() ([]byte, []int)deprecated
- func (x *Env) GetEnv() string
- func (x *Env) GetMetadata() map[string]string
- func (x *Env) GetName() string
- func (x *Env) GetNamespace() string
- func (x *Env) GetVersion() string
- func (*Env) ProtoMessage()
- func (x *Env) ProtoReflect() protoreflect.Message
- func (x *Env) Reset()
- func (x *Env) String() string
- type Interflow
- type Kafka
- type Log
- func (*Log) Descriptor() ([]byte, []int)deprecated
- func (x *Log) GetCompress() bool
- func (x *Log) GetEncoder() string
- func (x *Log) GetFilename() string
- func (x *Log) GetLevel() string
- func (x *Log) GetLocalTime() bool
- func (x *Log) GetMaxAge() int32
- func (x *Log) GetMaxBackups() int32
- func (x *Log) GetMaxSize() int32
- func (*Log) ProtoMessage()
- func (x *Log) ProtoReflect() protoreflect.Message
- func (x *Log) Reset()
- func (x *Log) String() string
- type MQ
- type Server
- type Server_GRPC
- func (*Server_GRPC) Descriptor() ([]byte, []int)deprecated
- func (x *Server_GRPC) GetAddr() string
- func (x *Server_GRPC) GetNetwork() string
- func (x *Server_GRPC) GetTimeout() *durationpb.Duration
- func (*Server_GRPC) ProtoMessage()
- func (x *Server_GRPC) ProtoReflect() protoreflect.Message
- func (x *Server_GRPC) Reset()
- func (x *Server_GRPC) String() string
- type Server_HTTP
- func (*Server_HTTP) Descriptor() ([]byte, []int)deprecated
- func (x *Server_HTTP) GetAddr() string
- func (x *Server_HTTP) GetNetwork() string
- func (x *Server_HTTP) GetTimeout() *durationpb.Duration
- func (*Server_HTTP) ProtoMessage()
- func (x *Server_HTTP) ProtoReflect() protoreflect.Message
- func (x *Server_HTTP) Reset()
- func (x *Server_HTTP) String() string
- type WatchProm
Constants ¶
This section is empty.
Variables ¶
View Source
var File_conf_conf_proto protoreflect.FileDescriptor
View Source
var ProviderSetConf = wire.NewSet( wire.FieldsOf(new(*Bootstrap), "Server"), wire.FieldsOf(new(*Bootstrap), "Data"), wire.FieldsOf(new(*Bootstrap), "Env"), wire.FieldsOf(new(*Bootstrap), "Log"), wire.FieldsOf(new(*Bootstrap), "WatchProm"), wire.FieldsOf(new(*Bootstrap), "Interflow"), wire.FieldsOf(new(*Bootstrap), "MQ"), wire.FieldsOf(new(*MQ), "Kafka"), wire.Bind(new(plog.Config), new(*Log)), LoadConfig, )
ProviderSetConf is conf providers.
Functions ¶
This section is empty.
Types ¶
type Bootstrap ¶
type Bootstrap struct { Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Env *Env `protobuf:"bytes,3,opt,name=env,proto3" json:"env,omitempty"` Log *Log `protobuf:"bytes,4,opt,name=log,proto3" json:"log,omitempty"` WatchProm *WatchProm `protobuf:"bytes,5,opt,name=watchProm,proto3" json:"watchProm,omitempty"` Mq *MQ `protobuf:"bytes,6,opt,name=mq,proto3" json:"mq,omitempty"` Interflow *Interflow `protobuf:"bytes,7,opt,name=interflow,proto3" json:"interflow,omitempty"` // contains filtered or unexported fields }
func (*Bootstrap) Descriptor
deprecated
func (*Bootstrap) GetInterflow ¶
func (*Bootstrap) GetWatchProm ¶
func (*Bootstrap) ProtoMessage ¶
func (*Bootstrap) ProtoMessage()
func (*Bootstrap) ProtoReflect ¶
func (x *Bootstrap) ProtoReflect() protoreflect.Message
type Data ¶
type Data struct { Redis *Data_Redis `protobuf:"bytes,1,opt,name=redis,proto3" json:"redis,omitempty"` // contains filtered or unexported fields }
func (*Data) Descriptor
deprecated
func (*Data) GetRedis ¶
func (x *Data) GetRedis() *Data_Redis
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type Data_Redis ¶
type Data_Redis struct { Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` ReadTimeout *durationpb.Duration `protobuf:"bytes,3,opt,name=readTimeout,proto3" json:"readTimeout,omitempty"` WriteTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=writeTimeout,proto3" json:"writeTimeout,omitempty"` Db uint32 `protobuf:"varint,5,opt,name=db,proto3" json:"db,omitempty"` Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"` DialTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=dialTimeout,proto3" json:"dialTimeout,omitempty"` // contains filtered or unexported fields }
func (*Data_Redis) Descriptor
deprecated
func (*Data_Redis) Descriptor() ([]byte, []int)
Deprecated: Use Data_Redis.ProtoReflect.Descriptor instead.
func (*Data_Redis) GetAddr ¶
func (x *Data_Redis) GetAddr() string
func (*Data_Redis) GetDb ¶
func (x *Data_Redis) GetDb() uint32
func (*Data_Redis) GetDialTimeout ¶
func (x *Data_Redis) GetDialTimeout() *durationpb.Duration
func (*Data_Redis) GetNetwork ¶
func (x *Data_Redis) GetNetwork() string
func (*Data_Redis) GetPassword ¶
func (x *Data_Redis) GetPassword() string
func (*Data_Redis) GetReadTimeout ¶
func (x *Data_Redis) GetReadTimeout() *durationpb.Duration
func (*Data_Redis) GetWriteTimeout ¶
func (x *Data_Redis) GetWriteTimeout() *durationpb.Duration
func (*Data_Redis) ProtoMessage ¶
func (*Data_Redis) ProtoMessage()
func (*Data_Redis) ProtoReflect ¶
func (x *Data_Redis) ProtoReflect() protoreflect.Message
func (*Data_Redis) Reset ¶
func (x *Data_Redis) Reset()
func (*Data_Redis) String ¶
func (x *Data_Redis) String() string
type Env ¶
type Env struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"` Env string `protobuf:"bytes,5,opt,name=env,proto3" json:"env,omitempty"` // contains filtered or unexported fields }
func (*Env) Descriptor
deprecated
func (*Env) GetMetadata ¶
func (*Env) GetNamespace ¶
func (*Env) GetVersion ¶
func (*Env) ProtoMessage ¶
func (*Env) ProtoMessage()
func (*Env) ProtoReflect ¶
func (x *Env) ProtoReflect() protoreflect.Message
type Interflow ¶
type Interflow struct { Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` // contains filtered or unexported fields }
func (*Interflow) Descriptor
deprecated
func (*Interflow) ProtoMessage ¶
func (*Interflow) ProtoMessage()
func (*Interflow) ProtoReflect ¶
func (x *Interflow) ProtoReflect() protoreflect.Message
type Kafka ¶
type Kafka struct { Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"` GroupId string `protobuf:"bytes,2,opt,name=groupId,proto3" json:"groupId,omitempty"` // contains filtered or unexported fields }
func (*Kafka) Descriptor
deprecated
func (*Kafka) GetEndpoints ¶
func (*Kafka) GetGroupId ¶
func (*Kafka) ProtoMessage ¶
func (*Kafka) ProtoMessage()
func (*Kafka) ProtoReflect ¶
func (x *Kafka) ProtoReflect() protoreflect.Message
type Log ¶
type Log struct { // 默认: ./server.log Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` // 日志最大体积MB, 默认: 100MB MaxSize int32 `protobuf:"varint,2,opt,name=maxSize,proto3" json:"maxSize,omitempty"` // 日志保留天数, 默认: 7 MaxAge int32 `protobuf:"varint,3,opt,name=maxAge,proto3" json:"maxAge,omitempty"` // 日志保留个数, 默认: 10 MaxBackups int32 `protobuf:"varint,4,opt,name=maxBackups,proto3" json:"maxBackups,omitempty"` // 是否压缩, 默认: true Compress bool `protobuf:"varint,5,opt,name=compress,proto3" json:"compress,omitempty"` // 是否使用本地时间戳, 默认: true LocalTime bool `protobuf:"varint,6,opt,name=localTime,proto3" json:"localTime,omitempty"` // 日志级别, 默认: info Level string `protobuf:"bytes,7,opt,name=level,proto3" json:"level,omitempty"` // Encoder 类型, 默认: json Encoder string `protobuf:"bytes,8,opt,name=encoder,proto3" json:"encoder,omitempty"` // contains filtered or unexported fields }
func (*Log) Descriptor
deprecated
func (*Log) GetCompress ¶
func (*Log) GetEncoder ¶
func (*Log) GetFilename ¶
func (*Log) GetLocalTime ¶
func (*Log) GetMaxBackups ¶
func (*Log) GetMaxSize ¶
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶
func (x *Log) ProtoReflect() protoreflect.Message
type MQ ¶
type MQ struct { Kafka *Kafka `protobuf:"bytes,1,opt,name=kafka,proto3" json:"kafka,omitempty"` // contains filtered or unexported fields }
func (*MQ) Descriptor
deprecated
func (*MQ) ProtoMessage ¶
func (*MQ) ProtoMessage()
func (*MQ) ProtoReflect ¶
func (x *MQ) ProtoReflect() protoreflect.Message
type Server ¶
type Server struct { Http *Server_HTTP `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"` Grpc *Server_GRPC `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc,omitempty"` // contains filtered or unexported fields }
func (*Server) Descriptor
deprecated
func (*Server) GetGrpc ¶
func (x *Server) GetGrpc() *Server_GRPC
func (*Server) GetHttp ¶
func (x *Server) GetHttp() *Server_HTTP
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
type Server_GRPC ¶
type Server_GRPC struct { Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
func (*Server_GRPC) Descriptor
deprecated
func (*Server_GRPC) Descriptor() ([]byte, []int)
Deprecated: Use Server_GRPC.ProtoReflect.Descriptor instead.
func (*Server_GRPC) GetAddr ¶
func (x *Server_GRPC) GetAddr() string
func (*Server_GRPC) GetNetwork ¶
func (x *Server_GRPC) GetNetwork() string
func (*Server_GRPC) GetTimeout ¶
func (x *Server_GRPC) GetTimeout() *durationpb.Duration
func (*Server_GRPC) ProtoMessage ¶
func (*Server_GRPC) ProtoMessage()
func (*Server_GRPC) ProtoReflect ¶
func (x *Server_GRPC) ProtoReflect() protoreflect.Message
func (*Server_GRPC) Reset ¶
func (x *Server_GRPC) Reset()
func (*Server_GRPC) String ¶
func (x *Server_GRPC) String() string
type Server_HTTP ¶
type Server_HTTP struct { Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
func (*Server_HTTP) Descriptor
deprecated
func (*Server_HTTP) Descriptor() ([]byte, []int)
Deprecated: Use Server_HTTP.ProtoReflect.Descriptor instead.
func (*Server_HTTP) GetAddr ¶
func (x *Server_HTTP) GetAddr() string
func (*Server_HTTP) GetNetwork ¶
func (x *Server_HTTP) GetNetwork() string
func (*Server_HTTP) GetTimeout ¶
func (x *Server_HTTP) GetTimeout() *durationpb.Duration
func (*Server_HTTP) ProtoMessage ¶
func (*Server_HTTP) ProtoMessage()
func (*Server_HTTP) ProtoReflect ¶
func (x *Server_HTTP) ProtoReflect() protoreflect.Message
func (*Server_HTTP) Reset ¶
func (x *Server_HTTP) Reset()
func (*Server_HTTP) String ¶
func (x *Server_HTTP) String() string
type WatchProm ¶
type WatchProm struct { // 频率 Interval *durationpb.Duration `protobuf:"bytes,1,opt,name=interval,proto3" json:"interval,omitempty"` // contains filtered or unexported fields }
func (*WatchProm) Descriptor
deprecated
func (*WatchProm) GetInterval ¶
func (x *WatchProm) GetInterval() *durationpb.Duration
func (*WatchProm) ProtoMessage ¶
func (*WatchProm) ProtoMessage()
func (*WatchProm) ProtoReflect ¶
func (x *WatchProm) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.