Documentation
¶
Index ¶
- Variables
- type Bootstrap
- type Data
- type Data_Database
- func (*Data_Database) Descriptor() ([]byte, []int)deprecated
- func (x *Data_Database) GetAddr() string
- func (x *Data_Database) GetDatabase() string
- func (x *Data_Database) GetMaxIdleConn() int32
- func (x *Data_Database) GetMaxIdleTime() int32
- func (x *Data_Database) GetMaxOpenConn() int32
- func (x *Data_Database) GetPassword() string
- func (x *Data_Database) GetSlowThresholdMillisecond() int64
- func (x *Data_Database) GetUser() string
- func (*Data_Database) ProtoMessage()
- func (x *Data_Database) ProtoReflect() protoreflect.Message
- func (x *Data_Database) Reset()
- func (x *Data_Database) String() string
- type Data_Redis
- func (*Data_Redis) Descriptor() ([]byte, []int)deprecated
- func (x *Data_Redis) GetAddr() string
- func (x *Data_Redis) GetDb() int32
- func (x *Data_Redis) GetPassword() string
- func (x *Data_Redis) GetPoolSize() int32
- func (*Data_Redis) ProtoMessage()
- func (x *Data_Redis) ProtoReflect() protoreflect.Message
- func (x *Data_Redis) Reset()
- func (x *Data_Redis) String() string
- type Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetGrpc() *Server_GRPC
- func (x *Server) GetHttp() *Server_HTTP
- func (x *Server) GetTask() *Server_TASK
- func (*Server) ProtoMessage()
- func (x *Server) ProtoReflect() protoreflect.Message
- func (x *Server) Reset()
- func (x *Server) String() string
- 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 Server_TASK
- type Task
Constants ¶
This section is empty.
Variables ¶
View Source
var File_conf_conf_proto protoreflect.FileDescriptor
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"`
// contains filtered or unexported fields
}
func (*Bootstrap) Descriptor
deprecated
func (*Bootstrap) ProtoMessage ¶
func (*Bootstrap) ProtoMessage()
func (*Bootstrap) ProtoReflect ¶
func (x *Bootstrap) ProtoReflect() protoreflect.Message
type Data ¶
type Data struct {
Database *Data_Database `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
Redis *Data_Redis `protobuf:"bytes,2,opt,name=redis,proto3" json:"redis,omitempty"`
// contains filtered or unexported fields
}
func (*Data) Descriptor
deprecated
func (*Data) GetDatabase ¶
func (x *Data) GetDatabase() *Data_Database
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_Database ¶
type Data_Database struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
Database string `protobuf:"bytes,4,opt,name=database,proto3" json:"database,omitempty"`
MaxIdleConn int32 `protobuf:"varint,5,opt,name=max_idle_conn,json=maxIdleConn,proto3" json:"max_idle_conn,omitempty"`
MaxOpenConn int32 `protobuf:"varint,6,opt,name=max_open_conn,json=maxOpenConn,proto3" json:"max_open_conn,omitempty"`
MaxIdleTime int32 `protobuf:"varint,7,opt,name=max_idle_time,json=maxIdleTime,proto3" json:"max_idle_time,omitempty"`
SlowThresholdMillisecond int64 `` /* 136-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Data_Database) Descriptor
deprecated
func (*Data_Database) Descriptor() ([]byte, []int)
Deprecated: Use Data_Database.ProtoReflect.Descriptor instead.
func (*Data_Database) GetAddr ¶
func (x *Data_Database) GetAddr() string
func (*Data_Database) GetDatabase ¶
func (x *Data_Database) GetDatabase() string
func (*Data_Database) GetMaxIdleConn ¶
func (x *Data_Database) GetMaxIdleConn() int32
func (*Data_Database) GetMaxIdleTime ¶
func (x *Data_Database) GetMaxIdleTime() int32
func (*Data_Database) GetMaxOpenConn ¶
func (x *Data_Database) GetMaxOpenConn() int32
func (*Data_Database) GetPassword ¶
func (x *Data_Database) GetPassword() string
func (*Data_Database) GetSlowThresholdMillisecond ¶
func (x *Data_Database) GetSlowThresholdMillisecond() int64
func (*Data_Database) GetUser ¶
func (x *Data_Database) GetUser() string
func (*Data_Database) ProtoMessage ¶
func (*Data_Database) ProtoMessage()
func (*Data_Database) ProtoReflect ¶
func (x *Data_Database) ProtoReflect() protoreflect.Message
func (*Data_Database) Reset ¶
func (x *Data_Database) Reset()
func (*Data_Database) String ¶
func (x *Data_Database) String() string
type Data_Redis ¶
type Data_Redis struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
Db int32 `protobuf:"varint,3,opt,name=db,proto3" json:"db,omitempty"`
PoolSize int32 `protobuf:"varint,4,opt,name=pool_size,json=poolSize,proto3" json:"pool_size,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() int32
func (*Data_Redis) GetPassword ¶
func (x *Data_Redis) GetPassword() string
func (*Data_Redis) GetPoolSize ¶
func (x *Data_Redis) GetPoolSize() int32
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 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"`
Task *Server_TASK `protobuf:"bytes,3,opt,name=task,proto3" json:"task,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) GetTask ¶
func (x *Server) GetTask() *Server_TASK
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 Server_TASK ¶
type Server_TASK struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
Tasks []*Task `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"`
// contains filtered or unexported fields
}
func (*Server_TASK) Descriptor
deprecated
func (*Server_TASK) Descriptor() ([]byte, []int)
Deprecated: Use Server_TASK.ProtoReflect.Descriptor instead.
func (*Server_TASK) GetAddr ¶
func (x *Server_TASK) GetAddr() string
func (*Server_TASK) GetTasks ¶
func (x *Server_TASK) GetTasks() []*Task
func (*Server_TASK) ProtoMessage ¶
func (*Server_TASK) ProtoMessage()
func (*Server_TASK) ProtoReflect ¶
func (x *Server_TASK) ProtoReflect() protoreflect.Message
func (*Server_TASK) Reset ¶
func (x *Server_TASK) Reset()
func (*Server_TASK) String ¶
func (x *Server_TASK) String() string
type Task ¶
type Task struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Schedule string `protobuf:"bytes,3,opt,name=schedule,proto3" json:"schedule,omitempty"`
// contains filtered or unexported fields
}
func (*Task) Descriptor
deprecated
func (*Task) GetSchedule ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.