Documentation ¶
Index ¶
- Variables
- type Auth
- func (*Auth) Descriptor() ([]byte, []int)deprecated
- func (x *Auth) GetAdminEmail() string
- func (x *Auth) GetAdminPassword() string
- func (x *Auth) GetExp() int32
- func (x *Auth) GetKey() string
- func (*Auth) ProtoMessage()
- func (x *Auth) ProtoReflect() protoreflect.Message
- func (x *Auth) Reset()
- func (x *Auth) String() string
- type Bootstrap
- func (*Bootstrap) Descriptor() ([]byte, []int)deprecated
- func (x *Bootstrap) GetAuth() *Auth
- func (x *Bootstrap) GetCluster() *ClusterConfig
- func (x *Bootstrap) GetData() *Database
- func (x *Bootstrap) GetLog() *Log
- func (x *Bootstrap) GetServer() *Server
- func (x *Bootstrap) GetServices() []*Service
- func (*Bootstrap) ProtoMessage()
- func (x *Bootstrap) ProtoReflect() protoreflect.Message
- func (x *Bootstrap) Reset()
- func (x *Bootstrap) String() string
- type ClusterConfig
- func (*ClusterConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ClusterConfig) GetEnv() Env
- func (x *ClusterConfig) GetName() string
- func (x *ClusterConfig) GetType() string
- func (*ClusterConfig) ProtoMessage()
- func (x *ClusterConfig) ProtoReflect() protoreflect.Message
- func (x *ClusterConfig) Reset()
- func (x *ClusterConfig) String() string
- type Database
- func (*Database) Descriptor() ([]byte, []int)deprecated
- func (x *Database) GetDatabase() string
- func (x *Database) GetHost() string
- func (x *Database) GetPassword() string
- func (x *Database) GetPort() int32
- func (x *Database) GetUsername() string
- func (*Database) ProtoMessage()
- func (x *Database) ProtoReflect() protoreflect.Message
- func (x *Database) Reset()
- func (x *Database) String() string
- type Env
- type GRPCServer
- func (*GRPCServer) Descriptor() ([]byte, []int)deprecated
- func (x *GRPCServer) GetAddr() string
- func (x *GRPCServer) GetNetwork() string
- func (x *GRPCServer) GetTimeout() int64
- func (*GRPCServer) ProtoMessage()
- func (x *GRPCServer) ProtoReflect() protoreflect.Message
- func (x *GRPCServer) Reset()
- func (x *GRPCServer) String() string
- type HTTPServer
- func (*HTTPServer) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPServer) GetAddr() string
- func (x *HTTPServer) GetNetwork() string
- func (x *HTTPServer) GetTimeout() int64
- func (*HTTPServer) ProtoMessage()
- func (x *HTTPServer) ProtoReflect() protoreflect.Message
- func (x *HTTPServer) Reset()
- func (x *HTTPServer) String() string
- type Log
- type Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetGrpc() *GRPCServer
- func (x *Server) GetHttp() *HTTPServer
- func (x *Server) GetName() string
- func (x *Server) GetVersion() string
- func (*Server) ProtoMessage()
- func (x *Server) ProtoReflect() protoreflect.Message
- func (x *Server) Reset()
- func (x *Server) String() string
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetAddr() string
- func (x *Service) GetName() string
- func (x *Service) GetPort() int32
- func (x *Service) GetTimeout() int64
- func (x *Service) GetVersion() string
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Env_name = map[int32]string{ 0: "EnvLocal", 1: "EnvBostionHost", 2: "EnvCluster", } Env_value = map[string]int32{ "EnvLocal": 0, "EnvBostionHost": 1, "EnvCluster": 2, } )
Enum value maps for Env.
View Source
var File_internal_conf_conf_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { Exp int32 `protobuf:"varint,1,opt,name=exp,proto3" json:"exp,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` AdminEmail string `protobuf:"bytes,3,opt,name=admin_email,json=adminEmail,proto3" json:"admin_email,omitempty"` AdminPassword string `protobuf:"bytes,4,opt,name=admin_password,json=adminPassword,proto3" json:"admin_password,omitempty"` // contains filtered or unexported fields }
func (*Auth) Descriptor
deprecated
func (*Auth) GetAdminEmail ¶
func (*Auth) GetAdminPassword ¶
func (*Auth) ProtoMessage ¶
func (*Auth) ProtoMessage()
func (*Auth) ProtoReflect ¶
func (x *Auth) ProtoReflect() protoreflect.Message
type Bootstrap ¶
type Bootstrap struct { Cluster *ClusterConfig `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` Server *Server `protobuf:"bytes,2,opt,name=server,proto3" json:"server,omitempty"` Services []*Service `protobuf:"bytes,3,rep,name=services,proto3" json:"services,omitempty"` Data *Database `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` Log *Log `protobuf:"bytes,5,opt,name=log,proto3" json:"log,omitempty"` Auth *Auth `protobuf:"bytes,6,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
func (*Bootstrap) Descriptor
deprecated
func (*Bootstrap) GetCluster ¶
func (x *Bootstrap) GetCluster() *ClusterConfig
func (*Bootstrap) GetServices ¶
func (*Bootstrap) ProtoMessage ¶
func (*Bootstrap) ProtoMessage()
func (*Bootstrap) ProtoReflect ¶
func (x *Bootstrap) ProtoReflect() protoreflect.Message
type ClusterConfig ¶
type ClusterConfig struct { Env Env `protobuf:"varint,1,opt,name=env,proto3,enum=Env" json:"env,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*ClusterConfig) Descriptor
deprecated
func (*ClusterConfig) Descriptor() ([]byte, []int)
Deprecated: Use ClusterConfig.ProtoReflect.Descriptor instead.
func (*ClusterConfig) GetEnv ¶
func (x *ClusterConfig) GetEnv() Env
func (*ClusterConfig) GetName ¶
func (x *ClusterConfig) GetName() string
func (*ClusterConfig) GetType ¶
func (x *ClusterConfig) GetType() string
func (*ClusterConfig) ProtoMessage ¶
func (*ClusterConfig) ProtoMessage()
func (*ClusterConfig) ProtoReflect ¶
func (x *ClusterConfig) ProtoReflect() protoreflect.Message
func (*ClusterConfig) Reset ¶
func (x *ClusterConfig) Reset()
func (*ClusterConfig) String ¶
func (x *ClusterConfig) String() string
type Database ¶
type Database struct { Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*Database) Descriptor
deprecated
func (*Database) GetDatabase ¶
func (*Database) GetPassword ¶
func (*Database) GetUsername ¶
func (*Database) ProtoMessage ¶
func (*Database) ProtoMessage()
func (*Database) ProtoReflect ¶
func (x *Database) 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 GRPCServer ¶
type GRPCServer 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 int64 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
func (*GRPCServer) Descriptor
deprecated
func (*GRPCServer) Descriptor() ([]byte, []int)
Deprecated: Use GRPCServer.ProtoReflect.Descriptor instead.
func (*GRPCServer) GetAddr ¶
func (x *GRPCServer) GetAddr() string
func (*GRPCServer) GetNetwork ¶
func (x *GRPCServer) GetNetwork() string
func (*GRPCServer) GetTimeout ¶
func (x *GRPCServer) GetTimeout() int64
func (*GRPCServer) ProtoMessage ¶
func (*GRPCServer) ProtoMessage()
func (*GRPCServer) ProtoReflect ¶
func (x *GRPCServer) ProtoReflect() protoreflect.Message
func (*GRPCServer) Reset ¶
func (x *GRPCServer) Reset()
func (*GRPCServer) String ¶
func (x *GRPCServer) String() string
type HTTPServer ¶
type HTTPServer 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 int64 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
func (*HTTPServer) Descriptor
deprecated
func (*HTTPServer) Descriptor() ([]byte, []int)
Deprecated: Use HTTPServer.ProtoReflect.Descriptor instead.
func (*HTTPServer) GetAddr ¶
func (x *HTTPServer) GetAddr() string
func (*HTTPServer) GetNetwork ¶
func (x *HTTPServer) GetNetwork() string
func (*HTTPServer) GetTimeout ¶
func (x *HTTPServer) GetTimeout() int64
func (*HTTPServer) ProtoMessage ¶
func (*HTTPServer) ProtoMessage()
func (*HTTPServer) ProtoReflect ¶
func (x *HTTPServer) ProtoReflect() protoreflect.Message
func (*HTTPServer) Reset ¶
func (x *HTTPServer) Reset()
func (*HTTPServer) String ¶
func (x *HTTPServer) String() string
type Log ¶
type Log struct { MaxSize int32 `protobuf:"varint,1,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"` MaxBackups int32 `protobuf:"varint,2,opt,name=max_backups,json=maxBackups,proto3" json:"max_backups,omitempty"` MaxAge int32 `protobuf:"varint,3,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"` // contains filtered or unexported fields }
func (*Log) Descriptor
deprecated
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 { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Http *HTTPServer `protobuf:"bytes,3,opt,name=http,proto3" json:"http,omitempty"` Grpc *GRPCServer `protobuf:"bytes,4,opt,name=grpc,proto3" json:"grpc,omitempty"` // contains filtered or unexported fields }
func (*Server) Descriptor
deprecated
func (*Server) GetGrpc ¶
func (x *Server) GetGrpc() *GRPCServer
func (*Server) GetHttp ¶
func (x *Server) GetHttp() *HTTPServer
func (*Server) GetVersion ¶
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
type Service ¶
type Service struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` Addr string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"` Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
func (*Service) Descriptor
deprecated
func (*Service) GetTimeout ¶
func (*Service) GetVersion ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.