Documentation ¶
Index ¶
- Variables
- type Bootstrap
- type Data
- type Data_Database
- func (*Data_Database) Descriptor() ([]byte, []int)deprecated
- func (x *Data_Database) GetDriver() string
- func (x *Data_Database) GetSource() 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) GetNetwork() 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 Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetEnv() Server_Env
- func (x *Server) GetGrpc() *Server_GRPC
- func (x *Server) GetHttp() *Server_HTTP
- func (x *Server) GetLog() *Server_Log
- func (*Server) ProtoMessage()
- func (x *Server) ProtoReflect() protoreflect.Message
- func (x *Server) Reset()
- func (x *Server) String() string
- type Server_Env
- 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_Log
- func (*Server_Log) Descriptor() ([]byte, []int)deprecated
- func (x *Server_Log) GetLevel() Server_Log_Level
- func (x *Server_Log) GetMaxAge() int32
- func (x *Server_Log) GetPath() string
- func (*Server_Log) ProtoMessage()
- func (x *Server_Log) ProtoReflect() protoreflect.Message
- func (x *Server_Log) Reset()
- func (x *Server_Log) String() string
- type Server_Log_Level
- func (Server_Log_Level) Descriptor() protoreflect.EnumDescriptor
- func (x Server_Log_Level) Enum() *Server_Log_Level
- func (Server_Log_Level) EnumDescriptor() ([]byte, []int)deprecated
- func (x Server_Log_Level) Number() protoreflect.EnumNumber
- func (x Server_Log_Level) String() string
- func (Server_Log_Level) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Server_Env_name = map[int32]string{ 0: "dev", 1: "test", 2: "prod", } Server_Env_value = map[string]int32{ "dev": 0, "test": 1, "prod": 2, } )
Enum value maps for Server_Env.
View Source
var ( Server_Log_Level_name = map[int32]string{ 0: "info", 1: "warn", 2: "error", } Server_Log_Level_value = map[string]int32{ "info": 0, "warn": 1, "error": 2, } )
Enum value maps for Server_Log_Level.
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 { Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` // 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) GetDriver ¶
func (x *Data_Database) GetDriver() string
func (*Data_Database) GetSource ¶
func (x *Data_Database) GetSource() 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 { 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=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"` WriteTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,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) GetNetwork ¶
func (x *Data_Redis) GetNetwork() 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 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"` Env Server_Env `protobuf:"varint,3,opt,name=env,proto3,enum=kratos.api.Server_Env" json:"env,omitempty"` Log *Server_Log `protobuf:"bytes,4,opt,name=log,proto3" json:"log,omitempty"` // contains filtered or unexported fields }
func (*Server) Descriptor
deprecated
func (*Server) GetEnv ¶
func (x *Server) GetEnv() Server_Env
func (*Server) GetGrpc ¶
func (x *Server) GetGrpc() *Server_GRPC
func (*Server) GetHttp ¶
func (x *Server) GetHttp() *Server_HTTP
func (*Server) GetLog ¶
func (x *Server) GetLog() *Server_Log
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
type Server_Env ¶
type Server_Env int32
const ( Server_dev Server_Env = 0 Server_test Server_Env = 1 Server_prod Server_Env = 2 )
func (Server_Env) Descriptor ¶
func (Server_Env) Descriptor() protoreflect.EnumDescriptor
func (Server_Env) Enum ¶
func (x Server_Env) Enum() *Server_Env
func (Server_Env) EnumDescriptor
deprecated
func (Server_Env) EnumDescriptor() ([]byte, []int)
Deprecated: Use Server_Env.Descriptor instead.
func (Server_Env) Number ¶
func (x Server_Env) Number() protoreflect.EnumNumber
func (Server_Env) String ¶
func (x Server_Env) String() string
func (Server_Env) Type ¶
func (Server_Env) Type() protoreflect.EnumType
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_Log ¶
type Server_Log struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Level Server_Log_Level `protobuf:"varint,2,opt,name=level,proto3,enum=kratos.api.Server_Log_Level" json:"level,omitempty"` MaxAge int32 `protobuf:"varint,3,opt,name=maxAge,proto3" json:"maxAge,omitempty"` // contains filtered or unexported fields }
func (*Server_Log) Descriptor
deprecated
func (*Server_Log) Descriptor() ([]byte, []int)
Deprecated: Use Server_Log.ProtoReflect.Descriptor instead.
func (*Server_Log) GetLevel ¶
func (x *Server_Log) GetLevel() Server_Log_Level
func (*Server_Log) GetMaxAge ¶
func (x *Server_Log) GetMaxAge() int32
func (*Server_Log) GetPath ¶
func (x *Server_Log) GetPath() string
func (*Server_Log) ProtoMessage ¶
func (*Server_Log) ProtoMessage()
func (*Server_Log) ProtoReflect ¶
func (x *Server_Log) ProtoReflect() protoreflect.Message
func (*Server_Log) Reset ¶
func (x *Server_Log) Reset()
func (*Server_Log) String ¶
func (x *Server_Log) String() string
type Server_Log_Level ¶
type Server_Log_Level int32
const ( Server_Log_info Server_Log_Level = 0 Server_Log_warn Server_Log_Level = 1 Server_Log_error Server_Log_Level = 2 )
func (Server_Log_Level) Descriptor ¶
func (Server_Log_Level) Descriptor() protoreflect.EnumDescriptor
func (Server_Log_Level) Enum ¶
func (x Server_Log_Level) Enum() *Server_Log_Level
func (Server_Log_Level) EnumDescriptor
deprecated
func (Server_Log_Level) EnumDescriptor() ([]byte, []int)
Deprecated: Use Server_Log_Level.Descriptor instead.
func (Server_Log_Level) Number ¶
func (x Server_Log_Level) Number() protoreflect.EnumNumber
func (Server_Log_Level) String ¶
func (x Server_Log_Level) String() string
func (Server_Log_Level) Type ¶
func (Server_Log_Level) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.