conf

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Biz.ProtoReflect.Descriptor instead.

func (*Biz) GetFileStoragePath added in v1.1.2

func (x *Biz) GetFileStoragePath() string

func (*Biz) GetGitlabCloneDir added in v1.1.0

func (x *Biz) GetGitlabCloneDir() string

func (*Biz) GetGitlabToken added in v1.1.0

func (x *Biz) GetGitlabToken() string

func (*Biz) GetGitlabUrl added in v1.1.0

func (x *Biz) GetGitlabUrl() string

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

func (*Biz) Reset added in v1.0.1

func (x *Biz) Reset()

func (*Biz) String added in v1.0.1

func (x *Biz) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.

func (*Bootstrap) GetBiz added in v1.0.1

func (x *Bootstrap) GetBiz() *Biz

func (*Bootstrap) GetData

func (x *Bootstrap) GetData() *Data

func (*Bootstrap) GetLogger added in v1.1.0

func (x *Bootstrap) GetLogger() *Logger

func (*Bootstrap) GetServer

func (x *Bootstrap) GetServer() *Server

func (*Bootstrap) ProtoMessage

func (*Bootstrap) ProtoMessage()

func (*Bootstrap) ProtoReflect

func (x *Bootstrap) ProtoReflect() protoreflect.Message

func (*Bootstrap) Reset

func (x *Bootstrap) Reset()

func (*Bootstrap) String

func (x *Bootstrap) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetDbpath added in v1.1.2

func (x *Data) GetDbpath() string

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

func (x *Data) ProtoReflect() protoreflect.Message

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Logger.ProtoReflect.Descriptor instead.

func (*Logger) GetCompress added in v1.1.0

func (x *Logger) GetCompress() bool

func (*Logger) GetConsole added in v1.1.0

func (x *Logger) GetConsole() bool

func (*Logger) GetFilePath added in v1.1.0

func (x *Logger) GetFilePath() string

func (*Logger) GetLevel added in v1.1.0

func (x *Logger) GetLevel() string

func (*Logger) GetMaxAge added in v1.1.0

func (x *Logger) GetMaxAge() int32

func (*Logger) GetMaxBackups added in v1.1.0

func (x *Logger) GetMaxBackups() int32

func (*Logger) GetMaxSize added in v1.1.0

func (x *Logger) GetMaxSize() int32

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

func (*Logger) Reset added in v1.1.0

func (x *Logger) Reset()

func (*Logger) String added in v1.1.0

func (x *Logger) 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"`
	// contains filtered or unexported fields
}

func (*Server) Descriptor deprecated

func (*Server) Descriptor() ([]byte, []int)

Deprecated: Use Server.ProtoReflect.Descriptor instead.

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

func (*Server) Reset

func (x *Server) Reset()

func (*Server) String

func (x *Server) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL