Documentation
¶
Index ¶
- Variables
- type Biz
- 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 GitLab
- func (*GitLab) Descriptor() ([]byte, []int)deprecated
- func (x *GitLab) GetCloneDir() string
- func (x *GitLab) GetToken() string
- func (x *GitLab) GetUrl() string
- func (*GitLab) ProtoMessage()
- func (x *GitLab) ProtoReflect() protoreflect.Message
- func (x *GitLab) Reset()
- func (x *GitLab) String() string
- 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 OpenAI
- func (*OpenAI) Descriptor() ([]byte, []int)deprecated
- func (x *OpenAI) GetApiBase() string
- func (x *OpenAI) GetApiKey() string
- func (x *OpenAI) GetModel() string
- func (*OpenAI) ProtoMessage()
- func (x *OpenAI) ProtoReflect() protoreflect.Message
- func (x *OpenAI) Reset()
- func (x *OpenAI) 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"` // 文件存储路径
Gitlab *GitLab `protobuf:"bytes,2,opt,name=gitlab,proto3" json:"gitlab,omitempty"` // GitLab配置
Openai *OpenAI `protobuf:"bytes,3,opt,name=openai,proto3" json:"openai,omitempty"` // OpenAI配置
// contains filtered or unexported fields
}
func (*Biz) Descriptor
deprecated
added in
v1.0.1
func (*Biz) GetFileStoragePath ¶ added in v1.1.2
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 GitLab ¶ added in v1.1.5
type GitLab struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
CloneDir string `protobuf:"bytes,3,opt,name=clone_dir,json=cloneDir,proto3" json:"clone_dir,omitempty"`
// contains filtered or unexported fields
}
func (*GitLab) Descriptor
deprecated
added in
v1.1.5
func (*GitLab) GetCloneDir ¶ added in v1.1.5
func (*GitLab) ProtoMessage ¶ added in v1.1.5
func (*GitLab) ProtoMessage()
func (*GitLab) ProtoReflect ¶ added in v1.1.5
func (x *GitLab) 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 OpenAI ¶ added in v1.1.5
type OpenAI struct {
ApiKey string `protobuf:"bytes,1,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
ApiBase string `protobuf:"bytes,2,opt,name=api_base,json=apiBase,proto3" json:"api_base,omitempty"`
Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"`
// contains filtered or unexported fields
}
func (*OpenAI) Descriptor
deprecated
added in
v1.1.5
func (*OpenAI) GetApiBase ¶ added in v1.1.5
func (*OpenAI) ProtoMessage ¶ added in v1.1.5
func (*OpenAI) ProtoMessage()
func (*OpenAI) ProtoReflect ¶ added in v1.1.5
func (x *OpenAI) 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.