Documentation
¶
Index ¶
- Variables
- type Auth
- type Bootstrap
- func (*Bootstrap) Descriptor() ([]byte, []int)deprecated
- func (x *Bootstrap) GetAuth() *Auth
- func (x *Bootstrap) GetCarPlayer() *CarPlayer
- func (x *Bootstrap) GetCasbin() *Casbin
- func (x *Bootstrap) GetData() *Data
- func (x *Bootstrap) GetDiscovery() *Discovery
- func (x *Bootstrap) GetFace() *Face
- func (x *Bootstrap) GetLogger() *Logger
- func (x *Bootstrap) GetMicroServices() map[string]*MicroService
- func (x *Bootstrap) GetName() string
- func (x *Bootstrap) GetOss() *Oss
- func (x *Bootstrap) GetServer() *Server
- func (x *Bootstrap) GetVersion() string
- func (*Bootstrap) ProtoMessage()
- func (x *Bootstrap) ProtoReflect() protoreflect.Message
- func (x *Bootstrap) Reset()
- func (x *Bootstrap) String() string
- type CarPlayer
- func (*CarPlayer) Descriptor() ([]byte, []int)deprecated
- func (x *CarPlayer) GetCarNotActiveTimeout() int32
- func (x *CarPlayer) GetCarOfflineTimeout() int32
- func (x *CarPlayer) GetPlayDuration() int32
- func (*CarPlayer) ProtoMessage()
- func (x *CarPlayer) ProtoReflect() protoreflect.Message
- func (x *CarPlayer) Reset()
- func (x *CarPlayer) String() string
- type Casbin
- type Data
- type Data_Database
- func (*Data_Database) Descriptor() ([]byte, []int)deprecated
- func (x *Data_Database) GetDriver() string
- func (x *Data_Database) GetLogLevel() GormLogLevel
- func (x *Data_Database) GetMaxIdleConns() int64
- func (x *Data_Database) GetMaxOpenConns() int64
- 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) GetDatabase() int32
- func (x *Data_Redis) GetEnableCluster() bool
- func (x *Data_Redis) GetNetwork() string
- func (x *Data_Redis) GetPassword() string
- func (x *Data_Redis) GetReadTimeout() *durationpb.Duration
- func (x *Data_Redis) GetUsername() string
- 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 Discovery
- func (*Discovery) Descriptor() ([]byte, []int)deprecated
- func (x *Discovery) GetAddr() string
- func (x *Discovery) GetEnable() bool
- func (x *Discovery) GetPort() uint32
- func (x *Discovery) GetTimeout() uint32
- func (*Discovery) ProtoMessage()
- func (x *Discovery) ProtoReflect() protoreflect.Message
- func (x *Discovery) Reset()
- func (x *Discovery) String() string
- type Env
- type Face
- func (*Face) Descriptor() ([]byte, []int)deprecated
- func (x *Face) GetEffectiveTime() int32
- func (x *Face) GetFaceMode() FaceMode
- func (x *Face) GetMatch() float32
- func (x *Face) GetMatchTimeRange() int32
- func (x *Face) GetRegisteSvcPath() string
- func (x *Face) GetRegisteTimer() int32
- func (x *Face) GetSearchSvcPath() string
- func (*Face) ProtoMessage()
- func (x *Face) ProtoReflect() protoreflect.Message
- func (x *Face) Reset()
- func (x *Face) String() string
- type FaceMode
- type GormLogLevel
- func (GormLogLevel) Descriptor() protoreflect.EnumDescriptor
- func (x GormLogLevel) Enum() *GormLogLevel
- func (GormLogLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x GormLogLevel) Number() protoreflect.EnumNumber
- func (x GormLogLevel) String() string
- func (GormLogLevel) Type() protoreflect.EnumType
- type Logger
- type MicroService
- func (*MicroService) Descriptor() ([]byte, []int)deprecated
- func (x *MicroService) GetEndpoint() string
- func (x *MicroService) GetIsLocal() bool
- func (x *MicroService) GetName() string
- func (x *MicroService) GetTimeout() int32
- func (*MicroService) ProtoMessage()
- func (x *MicroService) ProtoReflect() protoreflect.Message
- func (x *MicroService) Reset()
- func (x *MicroService) String() string
- type Oss
- type OssConfig
- func (*OssConfig) Descriptor() ([]byte, []int)deprecated
- func (x *OssConfig) GetAccessKey() string
- func (x *OssConfig) GetAccessSecret() string
- func (x *OssConfig) GetBucketName() string
- func (x *OssConfig) GetBucketURL() string
- func (x *OssConfig) GetEndpoint() string
- func (x *OssConfig) GetImgDomain() string
- func (*OssConfig) ProtoMessage()
- func (x *OssConfig) ProtoReflect() protoreflect.Message
- func (x *OssConfig) Reset()
- func (x *OssConfig) String() string
- type OssLocalConfig
- type OssUseMode
- type Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetEnv() Env
- func (x *Server) GetGrpc() *Server_GRPC
- func (x *Server) GetHttp() *Server_HTTP
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Env_name = map[int32]string{ 0: "dev", 1: "test", 2: "pro", } Env_value = map[string]int32{ "dev": 0, "test": 1, "pro": 2, } )
Enum value maps for Env.
View Source
var ( OssUseMode_name = map[int32]string{ 0: "aliyun", 1: "local", } OssUseMode_value = map[string]int32{ "aliyun": 0, "local": 1, } )
Enum value maps for OssUseMode.
View Source
var ( GormLogLevel_name = map[int32]string{ 0: "warn", 1: "info", 2: "silent", 3: "error", } GormLogLevel_value = map[string]int32{ "warn": 0, "info": 1, "silent": 2, "error": 3, } )
Enum value maps for GormLogLevel.
View Source
var ( FaceMode_name = map[int32]string{ 0: "registe", 1: "search", } FaceMode_value = map[string]int32{ "registe": 0, "search": 1, } )
Enum value maps for FaceMode.
View Source
var File_conf_conf_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
JwtKey string `protobuf:"bytes,1,opt,name=jwtKey,proto3" json:"jwtKey,omitempty"`
Expires *durationpb.Duration `protobuf:"bytes,2,opt,name=expires,proto3" json:"expires,omitempty"`
// contains filtered or unexported fields
}
func (*Auth) Descriptor
deprecated
func (*Auth) GetExpires ¶
func (x *Auth) GetExpires() *durationpb.Duration
func (*Auth) ProtoMessage ¶
func (*Auth) ProtoMessage()
func (*Auth) ProtoReflect ¶
func (x *Auth) ProtoReflect() protoreflect.Message
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"`
Auth *Auth `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"`
Casbin *Casbin `protobuf:"bytes,4,opt,name=casbin,proto3" json:"casbin,omitempty"`
Oss *Oss `protobuf:"bytes,5,opt,name=oss,proto3" json:"oss,omitempty"`
Logger *Logger `protobuf:"bytes,6,opt,name=logger,proto3" json:"logger,omitempty"`
CarPlayer *CarPlayer `protobuf:"bytes,7,opt,name=carPlayer,proto3" json:"carPlayer,omitempty"`
Discovery *Discovery `protobuf:"bytes,8,opt,name=discovery,proto3" json:"discovery,omitempty"`
MicroServices map[string]*MicroService `` /* 167-byte string literal not displayed */
Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"`
Version string `protobuf:"bytes,11,opt,name=version,proto3" json:"version,omitempty"`
Face *Face `protobuf:"bytes,12,opt,name=face,proto3" json:"face,omitempty"`
// contains filtered or unexported fields
}
func (*Bootstrap) Descriptor
deprecated
func (*Bootstrap) GetCarPlayer ¶
func (*Bootstrap) GetDiscovery ¶
func (*Bootstrap) GetMicroServices ¶
func (x *Bootstrap) GetMicroServices() map[string]*MicroService
func (*Bootstrap) GetVersion ¶
func (*Bootstrap) ProtoMessage ¶
func (*Bootstrap) ProtoMessage()
func (*Bootstrap) ProtoReflect ¶
func (x *Bootstrap) ProtoReflect() protoreflect.Message
type CarPlayer ¶
type CarPlayer struct {
PlayDuration int32 `protobuf:"varint,1,opt,name=playDuration,proto3" json:"playDuration,omitempty"`
CarNotActiveTimeout int32 `protobuf:"varint,2,opt,name=carNotActiveTimeout,proto3" json:"carNotActiveTimeout,omitempty"`
CarOfflineTimeout int32 `protobuf:"varint,3,opt,name=carOfflineTimeout,proto3" json:"carOfflineTimeout,omitempty"`
// contains filtered or unexported fields
}
func (*CarPlayer) Descriptor
deprecated
func (*CarPlayer) GetCarNotActiveTimeout ¶
func (*CarPlayer) GetCarOfflineTimeout ¶
func (*CarPlayer) GetPlayDuration ¶
func (*CarPlayer) ProtoMessage ¶
func (*CarPlayer) ProtoMessage()
func (*CarPlayer) ProtoReflect ¶
func (x *CarPlayer) ProtoReflect() protoreflect.Message
type Casbin ¶
type Casbin struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}
func (*Casbin) Descriptor
deprecated
func (*Casbin) ProtoMessage ¶
func (*Casbin) ProtoMessage()
func (*Casbin) ProtoReflect ¶
func (x *Casbin) 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"`
MaxIdleConns int64 `protobuf:"varint,3,opt,name=maxIdleConns,proto3" json:"maxIdleConns,omitempty"`
MaxOpenConns int64 `protobuf:"varint,4,opt,name=maxOpenConns,proto3" json:"maxOpenConns,omitempty"`
LogLevel GormLogLevel `protobuf:"varint,5,opt,name=logLevel,proto3,enum=kratos.api.GormLogLevel" json:"logLevel,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) GetLogLevel ¶
func (x *Data_Database) GetLogLevel() GormLogLevel
func (*Data_Database) GetMaxIdleConns ¶
func (x *Data_Database) GetMaxIdleConns() int64
func (*Data_Database) GetMaxOpenConns ¶
func (x *Data_Database) GetMaxOpenConns() int64
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"`
Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"`
Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"`
Database int32 `protobuf:"varint,7,opt,name=database,proto3" json:"database,omitempty"`
EnableCluster bool `protobuf:"varint,8,opt,name=enable_cluster,json=enableCluster,proto3" json:"enable_cluster,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) GetDatabase ¶
func (x *Data_Redis) GetDatabase() int32
func (*Data_Redis) GetEnableCluster ¶
func (x *Data_Redis) GetEnableCluster() bool
func (*Data_Redis) GetNetwork ¶
func (x *Data_Redis) GetNetwork() string
func (*Data_Redis) GetPassword ¶
func (x *Data_Redis) GetPassword() string
func (*Data_Redis) GetReadTimeout ¶
func (x *Data_Redis) GetReadTimeout() *durationpb.Duration
func (*Data_Redis) GetUsername ¶
func (x *Data_Redis) GetUsername() string
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 Discovery ¶
type Discovery struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
Port uint32 `protobuf:"varint,2,opt,name=Port,proto3" json:"Port,omitempty"`
Timeout uint32 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
Enable bool `protobuf:"varint,4,opt,name=enable,proto3" json:"enable,omitempty"`
// contains filtered or unexported fields
}
func (*Discovery) Descriptor
deprecated
func (*Discovery) GetTimeout ¶
func (*Discovery) ProtoMessage ¶
func (*Discovery) ProtoMessage()
func (*Discovery) ProtoReflect ¶
func (x *Discovery) ProtoReflect() protoreflect.Message
type Env ¶
type Env int32
func (Env) Descriptor ¶
func (Env) Descriptor() protoreflect.EnumDescriptor
func (Env) EnumDescriptor
deprecated
func (Env) Number ¶
func (x Env) Number() protoreflect.EnumNumber
func (Env) Type ¶
func (Env) Type() protoreflect.EnumType
type Face ¶
type Face struct {
RegisteTimer int32 `protobuf:"varint,1,opt,name=registeTimer,proto3" json:"registeTimer,omitempty"`
Match float32 `protobuf:"fixed32,2,opt,name=match,proto3" json:"match,omitempty"`
MatchTimeRange int32 `protobuf:"varint,3,opt,name=matchTimeRange,proto3" json:"matchTimeRange,omitempty"`
RegisteSvcPath string `protobuf:"bytes,4,opt,name=registeSvcPath,proto3" json:"registeSvcPath,omitempty"`
SearchSvcPath string `protobuf:"bytes,5,opt,name=searchSvcPath,proto3" json:"searchSvcPath,omitempty"`
FaceMode FaceMode `protobuf:"varint,6,opt,name=faceMode,proto3,enum=kratos.api.FaceMode" json:"faceMode,omitempty"`
EffectiveTime int32 `protobuf:"varint,7,opt,name=effectiveTime,proto3" json:"effectiveTime,omitempty"`
// contains filtered or unexported fields
}
func (*Face) Descriptor
deprecated
func (*Face) GetEffectiveTime ¶
func (*Face) GetFaceMode ¶
func (*Face) GetMatchTimeRange ¶
func (*Face) GetRegisteSvcPath ¶
func (*Face) GetRegisteTimer ¶
func (*Face) GetSearchSvcPath ¶
func (*Face) ProtoMessage ¶
func (*Face) ProtoMessage()
func (*Face) ProtoReflect ¶
func (x *Face) ProtoReflect() protoreflect.Message
type FaceMode ¶
type FaceMode int32
func (FaceMode) Descriptor ¶
func (FaceMode) Descriptor() protoreflect.EnumDescriptor
func (FaceMode) EnumDescriptor
deprecated
func (FaceMode) Number ¶
func (x FaceMode) Number() protoreflect.EnumNumber
func (FaceMode) Type ¶
func (FaceMode) Type() protoreflect.EnumType
type GormLogLevel ¶
type GormLogLevel int32
const ( GormLogLevel_warn GormLogLevel = 0 GormLogLevel_info GormLogLevel = 1 GormLogLevel_silent GormLogLevel = 2 GormLogLevel_error GormLogLevel = 3 )
func (GormLogLevel) Descriptor ¶
func (GormLogLevel) Descriptor() protoreflect.EnumDescriptor
func (GormLogLevel) Enum ¶
func (x GormLogLevel) Enum() *GormLogLevel
func (GormLogLevel) EnumDescriptor
deprecated
func (GormLogLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use GormLogLevel.Descriptor instead.
func (GormLogLevel) Number ¶
func (x GormLogLevel) Number() protoreflect.EnumNumber
func (GormLogLevel) String ¶
func (x GormLogLevel) String() string
func (GormLogLevel) Type ¶
func (GormLogLevel) Type() protoreflect.EnumType
type Logger ¶
type Logger struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}
func (*Logger) Descriptor
deprecated
func (*Logger) ProtoMessage ¶
func (*Logger) ProtoMessage()
func (*Logger) ProtoReflect ¶
func (x *Logger) ProtoReflect() protoreflect.Message
type MicroService ¶
type MicroService struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Timeout int32 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
IsLocal bool `protobuf:"varint,4,opt,name=isLocal,proto3" json:"isLocal,omitempty"`
// contains filtered or unexported fields
}
func (*MicroService) Descriptor
deprecated
func (*MicroService) Descriptor() ([]byte, []int)
Deprecated: Use MicroService.ProtoReflect.Descriptor instead.
func (*MicroService) GetEndpoint ¶
func (x *MicroService) GetEndpoint() string
func (*MicroService) GetIsLocal ¶
func (x *MicroService) GetIsLocal() bool
func (*MicroService) GetName ¶
func (x *MicroService) GetName() string
func (*MicroService) GetTimeout ¶
func (x *MicroService) GetTimeout() int32
func (*MicroService) ProtoMessage ¶
func (*MicroService) ProtoMessage()
func (*MicroService) ProtoReflect ¶
func (x *MicroService) ProtoReflect() protoreflect.Message
func (*MicroService) Reset ¶
func (x *MicroService) Reset()
func (*MicroService) String ¶
func (x *MicroService) String() string
type Oss ¶
type Oss struct {
Use OssUseMode `protobuf:"varint,1,opt,name=use,proto3,enum=kratos.api.OssUseMode" json:"use,omitempty"`
Aliyun *OssConfig `protobuf:"bytes,2,opt,name=aliyun,proto3" json:"aliyun,omitempty"`
Local *OssLocalConfig `protobuf:"bytes,3,opt,name=local,proto3" json:"local,omitempty"`
// contains filtered or unexported fields
}
func (*Oss) Descriptor
deprecated
func (*Oss) GetLocal ¶
func (x *Oss) GetLocal() *OssLocalConfig
func (*Oss) GetUse ¶
func (x *Oss) GetUse() OssUseMode
func (*Oss) ProtoMessage ¶
func (*Oss) ProtoMessage()
func (*Oss) ProtoReflect ¶
func (x *Oss) ProtoReflect() protoreflect.Message
type OssConfig ¶
type OssConfig struct {
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
AccessKey string `protobuf:"bytes,2,opt,name=accessKey,proto3" json:"accessKey,omitempty"`
AccessSecret string `protobuf:"bytes,3,opt,name=accessSecret,proto3" json:"accessSecret,omitempty"`
BucketName string `protobuf:"bytes,4,opt,name=bucketName,proto3" json:"bucketName,omitempty"`
BucketURL string `protobuf:"bytes,5,opt,name=bucketURL,proto3" json:"bucketURL,omitempty"`
ImgDomain string `protobuf:"bytes,6,opt,name=imgDomain,proto3" json:"imgDomain,omitempty"`
// contains filtered or unexported fields
}
func (*OssConfig) Descriptor
deprecated
func (*OssConfig) GetAccessKey ¶
func (*OssConfig) GetAccessSecret ¶
func (*OssConfig) GetBucketName ¶
func (*OssConfig) GetBucketURL ¶
func (*OssConfig) GetEndpoint ¶
func (*OssConfig) GetImgDomain ¶
func (*OssConfig) ProtoMessage ¶
func (*OssConfig) ProtoMessage()
func (*OssConfig) ProtoReflect ¶
func (x *OssConfig) ProtoReflect() protoreflect.Message
type OssLocalConfig ¶
type OssLocalConfig struct {
Dir string `protobuf:"bytes,1,opt,name=dir,proto3" json:"dir,omitempty"`
// contains filtered or unexported fields
}
func (*OssLocalConfig) Descriptor
deprecated
func (*OssLocalConfig) Descriptor() ([]byte, []int)
Deprecated: Use OssLocalConfig.ProtoReflect.Descriptor instead.
func (*OssLocalConfig) GetDir ¶
func (x *OssLocalConfig) GetDir() string
func (*OssLocalConfig) ProtoMessage ¶
func (*OssLocalConfig) ProtoMessage()
func (*OssLocalConfig) ProtoReflect ¶
func (x *OssLocalConfig) ProtoReflect() protoreflect.Message
func (*OssLocalConfig) Reset ¶
func (x *OssLocalConfig) Reset()
func (*OssLocalConfig) String ¶
func (x *OssLocalConfig) String() string
type OssUseMode ¶
type OssUseMode int32
const ( OssUseMode_aliyun OssUseMode = 0 OssUseMode_local OssUseMode = 1 )
func (OssUseMode) Descriptor ¶
func (OssUseMode) Descriptor() protoreflect.EnumDescriptor
func (OssUseMode) Enum ¶
func (x OssUseMode) Enum() *OssUseMode
func (OssUseMode) EnumDescriptor
deprecated
func (OssUseMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use OssUseMode.Descriptor instead.
func (OssUseMode) Number ¶
func (x OssUseMode) Number() protoreflect.EnumNumber
func (OssUseMode) String ¶
func (x OssUseMode) String() string
func (OssUseMode) Type ¶
func (OssUseMode) Type() protoreflect.EnumType
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 Env `protobuf:"varint,3,opt,name=env,proto3,enum=kratos.api.Env" json:"env,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.