Documentation ¶
Index ¶
- Variables
- type ApiWhite
- func (*ApiWhite) Descriptor() ([]byte, []int)deprecated
- func (x *ApiWhite) GetAll() []string
- func (x *ApiWhite) GetJwtApi() []string
- func (x *ApiWhite) GetRbacApi() []string
- func (*ApiWhite) ProtoMessage()
- func (x *ApiWhite) ProtoReflect() protoreflect.Message
- func (x *ApiWhite) Reset()
- func (x *ApiWhite) String() string
- type Before
- type Bootstrap
- func (*Bootstrap) Descriptor() ([]byte, []int)deprecated
- func (x *Bootstrap) GetApiWhite() *ApiWhite
- func (x *Bootstrap) GetData() *Data
- func (x *Bootstrap) GetEmail() *Email
- func (x *Bootstrap) GetEnv() *Env
- func (x *Bootstrap) GetInterflow() *Interflow
- func (x *Bootstrap) GetJwt() *JWT
- func (x *Bootstrap) GetLog() *Log
- 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 Data_Database
- func (*Data_Database) Descriptor() ([]byte, []int)deprecated
- func (x *Data_Database) GetDebug() bool
- 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) GetDb() uint32
- func (x *Data_Redis) GetDialTimeout() *durationpb.Duration
- func (x *Data_Redis) GetNetwork() string
- func (x *Data_Redis) GetPassword() 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 Email
- func (*Email) Descriptor() ([]byte, []int)deprecated
- func (x *Email) GetHost() string
- func (x *Email) GetPass() string
- func (x *Email) GetPort() uint32
- func (x *Email) GetUser() string
- func (*Email) ProtoMessage()
- func (x *Email) ProtoReflect() protoreflect.Message
- func (x *Email) Reset()
- func (x *Email) String() string
- type Env
- func (*Env) Descriptor() ([]byte, []int)deprecated
- func (x *Env) GetEnv() string
- func (x *Env) GetMetadata() map[string]string
- func (x *Env) GetName() string
- func (x *Env) GetNamespace() string
- func (x *Env) GetVersion() string
- func (*Env) ProtoMessage()
- func (x *Env) ProtoReflect() protoreflect.Message
- func (x *Env) Reset()
- func (x *Env) String() string
- type Interflow
- func (*Interflow) Descriptor() ([]byte, []int)deprecated
- func (x *Interflow) GetHook() *Interflow_Hook
- func (x *Interflow) GetMq() *Interflow_MQ
- func (x *Interflow) GetVersion() string
- func (*Interflow) ProtoMessage()
- func (x *Interflow) ProtoReflect() protoreflect.Message
- func (x *Interflow) Reset()
- func (x *Interflow) String() string
- type Interflow_Hook
- type Interflow_MQ
- type Interflow_MQ_Kafka
- func (*Interflow_MQ_Kafka) Descriptor() ([]byte, []int)deprecated
- func (x *Interflow_MQ_Kafka) GetEndpoints() []string
- func (x *Interflow_MQ_Kafka) GetGroupId() string
- func (*Interflow_MQ_Kafka) ProtoMessage()
- func (x *Interflow_MQ_Kafka) ProtoReflect() protoreflect.Message
- func (x *Interflow_MQ_Kafka) Reset()
- func (x *Interflow_MQ_Kafka) String() string
- type JWT
- type Log
- func (*Log) Descriptor() ([]byte, []int)deprecated
- func (x *Log) GetCompress() bool
- func (x *Log) GetEncoder() string
- func (x *Log) GetFilename() string
- func (x *Log) GetLevel() string
- func (x *Log) GetLocalTime() bool
- func (x *Log) GetMaxAge() int32
- func (x *Log) GetMaxBackups() int32
- func (x *Log) GetMaxSize() int32
- func (*Log) ProtoMessage()
- func (x *Log) ProtoReflect() protoreflect.Message
- func (x *Log) Reset()
- func (x *Log) String() string
- type Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetGrpc() *Server_GRPC
- func (x *Server) GetHttp() *Server_HTTP
- func (x *Server) GetWs() *Server_WS
- 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
- type Server_WS
- func (*Server_WS) Descriptor() ([]byte, []int)deprecated
- func (x *Server_WS) GetAddr() string
- func (x *Server_WS) GetNetwork() string
- func (x *Server_WS) GetTimeout() *durationpb.Duration
- func (*Server_WS) ProtoMessage()
- func (x *Server_WS) ProtoReflect() protoreflect.Message
- func (x *Server_WS) Reset()
- func (x *Server_WS) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_conf_conf_proto protoreflect.FileDescriptor
View Source
var ProviderSetConf = wire.NewSet( wire.FieldsOf(new(*Bootstrap), "Server"), wire.FieldsOf(new(*Bootstrap), "Data"), wire.FieldsOf(new(*Bootstrap), "Env"), wire.FieldsOf(new(*Bootstrap), "Log"), wire.FieldsOf(new(*Bootstrap), "ApiWhite"), wire.FieldsOf(new(*Bootstrap), "Interflow"), wire.FieldsOf(new(*Bootstrap), "JWT"), wire.Bind(new(plog.Config), new(*Log)), LoadConfig, )
ProviderSetConf is conf providers.
Functions ¶
This section is empty.
Types ¶
type ApiWhite ¶
type ApiWhite struct { JwtApi []string `protobuf:"bytes,1,rep,name=jwtApi,proto3" json:"jwtApi,omitempty"` RbacApi []string `protobuf:"bytes,2,rep,name=rbacApi,proto3" json:"rbacApi,omitempty"` All []string `protobuf:"bytes,3,rep,name=all,proto3" json:"all,omitempty"` // contains filtered or unexported fields }
func (*ApiWhite) Descriptor
deprecated
func (*ApiWhite) GetRbacApi ¶
func (*ApiWhite) ProtoMessage ¶
func (*ApiWhite) ProtoMessage()
func (*ApiWhite) ProtoReflect ¶
func (x *ApiWhite) 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"` Env *Env `protobuf:"bytes,3,opt,name=env,proto3" json:"env,omitempty"` Log *Log `protobuf:"bytes,4,opt,name=log,proto3" json:"log,omitempty"` ApiWhite *ApiWhite `protobuf:"bytes,5,opt,name=apiWhite,proto3" json:"apiWhite,omitempty"` Email *Email `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` Interflow *Interflow `protobuf:"bytes,7,opt,name=interflow,proto3" json:"interflow,omitempty"` Jwt *JWT `protobuf:"bytes,8,opt,name=jwt,proto3" json:"jwt,omitempty"` // contains filtered or unexported fields }
func (*Bootstrap) Descriptor
deprecated
func (*Bootstrap) GetApiWhite ¶
func (*Bootstrap) GetInterflow ¶ added in v0.0.16
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"` Debug bool `protobuf:"varint,3,opt,name=debug,proto3" json:"debug,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) GetDebug ¶
func (x *Data_Database) GetDebug() bool
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=readTimeout,proto3" json:"readTimeout,omitempty"` WriteTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=writeTimeout,proto3" json:"writeTimeout,omitempty"` Db uint32 `protobuf:"varint,5,opt,name=db,proto3" json:"db,omitempty"` Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"` DialTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=dialTimeout,proto3" json:"dialTimeout,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) GetDb ¶
func (x *Data_Redis) GetDb() uint32
func (*Data_Redis) GetDialTimeout ¶
func (x *Data_Redis) GetDialTimeout() *durationpb.Duration
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) 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 Email ¶
type Email struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` Pass string `protobuf:"bytes,4,opt,name=pass,proto3" json:"pass,omitempty"` // contains filtered or unexported fields }
func (*Email) Descriptor
deprecated
func (*Email) ProtoMessage ¶
func (*Email) ProtoMessage()
func (*Email) ProtoReflect ¶
func (x *Email) ProtoReflect() protoreflect.Message
type Env ¶
type Env struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"` Env string `protobuf:"bytes,5,opt,name=env,proto3" json:"env,omitempty"` // contains filtered or unexported fields }
func (*Env) Descriptor
deprecated
func (*Env) GetMetadata ¶
func (*Env) GetNamespace ¶
func (*Env) GetVersion ¶
func (*Env) ProtoMessage ¶
func (*Env) ProtoMessage()
func (*Env) ProtoReflect ¶
func (x *Env) ProtoReflect() protoreflect.Message
type Interflow ¶ added in v0.0.16
type Interflow struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Hook *Interflow_Hook `protobuf:"bytes,2,opt,name=hook,proto3" json:"hook,omitempty"` Mq *Interflow_MQ `protobuf:"bytes,3,opt,name=mq,proto3" json:"mq,omitempty"` // contains filtered or unexported fields }
func (*Interflow) Descriptor
deprecated
added in
v0.0.16
func (*Interflow) GetHook ¶ added in v0.0.16
func (x *Interflow) GetHook() *Interflow_Hook
func (*Interflow) GetMq ¶ added in v0.0.16
func (x *Interflow) GetMq() *Interflow_MQ
func (*Interflow) GetVersion ¶ added in v0.0.16
func (*Interflow) ProtoMessage ¶ added in v0.0.16
func (*Interflow) ProtoMessage()
func (*Interflow) ProtoReflect ¶ added in v0.0.16
func (x *Interflow) ProtoReflect() protoreflect.Message
type Interflow_Hook ¶ added in v0.0.16
type Interflow_Hook struct { Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` // contains filtered or unexported fields }
func (*Interflow_Hook) Descriptor
deprecated
added in
v0.0.16
func (*Interflow_Hook) Descriptor() ([]byte, []int)
Deprecated: Use Interflow_Hook.ProtoReflect.Descriptor instead.
func (*Interflow_Hook) GetNetwork ¶ added in v0.0.16
func (x *Interflow_Hook) GetNetwork() string
func (*Interflow_Hook) ProtoMessage ¶ added in v0.0.16
func (*Interflow_Hook) ProtoMessage()
func (*Interflow_Hook) ProtoReflect ¶ added in v0.0.16
func (x *Interflow_Hook) ProtoReflect() protoreflect.Message
func (*Interflow_Hook) Reset ¶ added in v0.0.16
func (x *Interflow_Hook) Reset()
func (*Interflow_Hook) String ¶ added in v0.0.16
func (x *Interflow_Hook) String() string
type Interflow_MQ ¶ added in v0.0.16
type Interflow_MQ struct { Kafka *Interflow_MQ_Kafka `protobuf:"bytes,1,opt,name=kafka,proto3" json:"kafka,omitempty"` // contains filtered or unexported fields }
func (*Interflow_MQ) Descriptor
deprecated
added in
v0.0.16
func (*Interflow_MQ) Descriptor() ([]byte, []int)
Deprecated: Use Interflow_MQ.ProtoReflect.Descriptor instead.
func (*Interflow_MQ) GetKafka ¶ added in v0.0.16
func (x *Interflow_MQ) GetKafka() *Interflow_MQ_Kafka
func (*Interflow_MQ) ProtoMessage ¶ added in v0.0.16
func (*Interflow_MQ) ProtoMessage()
func (*Interflow_MQ) ProtoReflect ¶ added in v0.0.16
func (x *Interflow_MQ) ProtoReflect() protoreflect.Message
func (*Interflow_MQ) Reset ¶ added in v0.0.16
func (x *Interflow_MQ) Reset()
func (*Interflow_MQ) String ¶ added in v0.0.16
func (x *Interflow_MQ) String() string
type Interflow_MQ_Kafka ¶ added in v0.0.16
type Interflow_MQ_Kafka struct { Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"` GroupId string `protobuf:"bytes,2,opt,name=groupId,proto3" json:"groupId,omitempty"` // contains filtered or unexported fields }
func (*Interflow_MQ_Kafka) Descriptor
deprecated
added in
v0.0.16
func (*Interflow_MQ_Kafka) Descriptor() ([]byte, []int)
Deprecated: Use Interflow_MQ_Kafka.ProtoReflect.Descriptor instead.
func (*Interflow_MQ_Kafka) GetEndpoints ¶ added in v0.0.16
func (x *Interflow_MQ_Kafka) GetEndpoints() []string
func (*Interflow_MQ_Kafka) GetGroupId ¶ added in v0.0.16
func (x *Interflow_MQ_Kafka) GetGroupId() string
func (*Interflow_MQ_Kafka) ProtoMessage ¶ added in v0.0.16
func (*Interflow_MQ_Kafka) ProtoMessage()
func (*Interflow_MQ_Kafka) ProtoReflect ¶ added in v0.0.16
func (x *Interflow_MQ_Kafka) ProtoReflect() protoreflect.Message
func (*Interflow_MQ_Kafka) Reset ¶ added in v0.0.16
func (x *Interflow_MQ_Kafka) Reset()
func (*Interflow_MQ_Kafka) String ¶ added in v0.0.16
func (x *Interflow_MQ_Kafka) String() string
type JWT ¶ added in v0.0.20
type JWT struct { Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"` Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"` Expires *durationpb.Duration `protobuf:"bytes,3,opt,name=expires,proto3" json:"expires,omitempty"` // contains filtered or unexported fields }
func (*JWT) Descriptor
deprecated
added in
v0.0.20
func (*JWT) GetExpires ¶ added in v0.0.20
func (x *JWT) GetExpires() *durationpb.Duration
func (*JWT) ProtoMessage ¶ added in v0.0.20
func (*JWT) ProtoMessage()
func (*JWT) ProtoReflect ¶ added in v0.0.20
func (x *JWT) ProtoReflect() protoreflect.Message
type Log ¶
type Log struct { // 默认: ./server.log Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` // 日志最大体积MB, 默认: 100MB MaxSize int32 `protobuf:"varint,2,opt,name=maxSize,proto3" json:"maxSize,omitempty"` // 日志保留天数, 默认: 7 MaxAge int32 `protobuf:"varint,3,opt,name=maxAge,proto3" json:"maxAge,omitempty"` // 日志保留个数, 默认: 10 MaxBackups int32 `protobuf:"varint,4,opt,name=maxBackups,proto3" json:"maxBackups,omitempty"` // 是否压缩, 默认: true Compress bool `protobuf:"varint,5,opt,name=compress,proto3" json:"compress,omitempty"` // 是否使用本地时间戳, 默认: true LocalTime bool `protobuf:"varint,6,opt,name=localTime,proto3" json:"localTime,omitempty"` // 日志级别, 默认: info Level string `protobuf:"bytes,7,opt,name=level,proto3" json:"level,omitempty"` // Encoder 类型: console | json, 默认: console Encoder string `protobuf:"bytes,8,opt,name=encoder,proto3" json:"encoder,omitempty"` // contains filtered or unexported fields }
func (*Log) Descriptor
deprecated
func (*Log) GetCompress ¶
func (*Log) GetEncoder ¶
func (*Log) GetFilename ¶
func (*Log) GetLocalTime ¶
func (*Log) GetMaxBackups ¶
func (*Log) GetMaxSize ¶
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶
func (x *Log) 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"` Ws *Server_WS `protobuf:"bytes,3,opt,name=ws,proto3" json:"ws,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
type Server_WS ¶
type Server_WS 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_WS) Descriptor
deprecated
func (*Server_WS) GetNetwork ¶
func (*Server_WS) GetTimeout ¶
func (x *Server_WS) GetTimeout() *durationpb.Duration
func (*Server_WS) ProtoMessage ¶
func (*Server_WS) ProtoMessage()
func (*Server_WS) ProtoReflect ¶
func (x *Server_WS) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.