Documentation
¶
Index ¶
- Variables
- type Biz
- func (*Biz) Descriptor() ([]byte, []int)deprecated
- func (x *Biz) GetFileStoragePath() string
- func (x *Biz) GetGitlabCloneDir() string
- func (x *Biz) GetGitlabToken() string
- func (x *Biz) GetGitlabUrl() string
- func (*Biz) ProtoMessage()
- func (x *Biz) ProtoReflect() protoreflect.Message
- func (x *Biz) Reset()
- func (x *Biz) String() string
- type Bootstrap
- func (*Bootstrap) Descriptor() ([]byte, []int)deprecated
- func (x *Bootstrap) GetBiz() *Biz
- func (x *Bootstrap) GetData() *Data
- func (x *Bootstrap) GetLogger() *Logger
- func (x *Bootstrap) GetServer() *Server
- func (*Bootstrap) ProtoMessage()
- func (x *Bootstrap) ProtoReflect() protoreflect.Message
- func (x *Bootstrap) Reset()
- func (x *Bootstrap) String() string
- type Data
- type Logger
- func (*Logger) Descriptor() ([]byte, []int)deprecated
- func (x *Logger) GetCompress() bool
- func (x *Logger) GetConsole() bool
- func (x *Logger) GetFilePath() string
- func (x *Logger) GetLevel() string
- func (x *Logger) GetMaxAge() int32
- func (x *Logger) GetMaxBackups() int32
- func (x *Logger) GetMaxSize() int32
- func (*Logger) ProtoMessage()
- func (x *Logger) ProtoReflect() protoreflect.Message
- func (x *Logger) Reset()
- func (x *Logger) String() string
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var File_conf_conf_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Biz ¶ added in v1.0.1
type Biz struct {
FileStoragePath string `protobuf:"bytes,1,opt,name=file_storage_path,json=fileStoragePath,proto3" json:"file_storage_path,omitempty"` // 文件存储路径
GitlabToken string `protobuf:"bytes,2,opt,name=gitlab_token,json=gitlabToken,proto3" json:"gitlab_token,omitempty"` // GitLab访问令牌
GitlabUrl string `protobuf:"bytes,3,opt,name=gitlab_url,json=gitlabUrl,proto3" json:"gitlab_url,omitempty"` // GitLab服务器URL
GitlabCloneDir string `protobuf:"bytes,4,opt,name=gitlab_clone_dir,json=gitlabCloneDir,proto3" json:"gitlab_clone_dir,omitempty"` // GitLab仓库克隆目录
// contains filtered or unexported fields
}
func (*Biz) Descriptor
deprecated
added in
v1.0.1
func (*Biz) GetFileStoragePath ¶ added in v1.1.2
func (*Biz) GetGitlabCloneDir ¶ added in v1.1.0
func (*Biz) GetGitlabToken ¶ added in v1.1.0
func (*Biz) GetGitlabUrl ¶ added in v1.1.0
func (*Biz) ProtoMessage ¶ added in v1.0.1
func (*Biz) ProtoMessage()
func (*Biz) ProtoReflect ¶ added in v1.0.1
func (x *Biz) ProtoReflect() protoreflect.Message
type Bootstrap ¶
type Bootstrap struct {
Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
Biz *Biz `protobuf:"bytes,2,opt,name=biz,proto3" json:"biz,omitempty"`
Logger *Logger `protobuf:"bytes,3,opt,name=logger,proto3" json:"logger,omitempty"` // 添加日志配置
Data *Data `protobuf:"bytes,4,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 {
Dbpath string `protobuf:"bytes,1,opt,name=dbpath,proto3" json:"dbpath,omitempty"`
// contains filtered or unexported fields
}
func (*Data) Descriptor
deprecated
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type Logger ¶ added in v1.1.0
type Logger struct {
Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` // 日志级别: debug, info, warn, error
FilePath string `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` // 日志文件路径
Console bool `protobuf:"varint,3,opt,name=console,proto3" json:"console,omitempty"` // 是否同时输出到控制台
MaxSize int32 `protobuf:"varint,4,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"` // 单个日志文件最大大小(MB)
MaxAge int32 `protobuf:"varint,5,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"` // 日志文件保留天数
MaxBackups int32 `protobuf:"varint,6,opt,name=max_backups,json=maxBackups,proto3" json:"max_backups,omitempty"` // 保留的旧日志文件最大数量
Compress bool `protobuf:"varint,7,opt,name=compress,proto3" json:"compress,omitempty"` // 是否压缩旧日志文件
// contains filtered or unexported fields
}
func (*Logger) Descriptor
deprecated
added in
v1.1.0
func (*Logger) GetCompress ¶ added in v1.1.0
func (*Logger) GetConsole ¶ added in v1.1.0
func (*Logger) GetFilePath ¶ added in v1.1.0
func (*Logger) GetMaxBackups ¶ added in v1.1.0
func (*Logger) GetMaxSize ¶ added in v1.1.0
func (*Logger) ProtoMessage ¶ added in v1.1.0
func (*Logger) ProtoMessage()
func (*Logger) ProtoReflect ¶ added in v1.1.0
func (x *Logger) 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
Click to show internal directories.
Click to hide internal directories.