conf

package
v0.0.0-...-5b5d069 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

Deprecated: Use Auth.ProtoReflect.Descriptor instead.

func (*Auth) GetAdminEmail

func (x *Auth) GetAdminEmail() string

func (*Auth) GetAdminPassword

func (x *Auth) GetAdminPassword() string

func (*Auth) GetExp

func (x *Auth) GetExp() int32

func (*Auth) GetKey

func (x *Auth) GetKey() string

func (*Auth) ProtoMessage

func (*Auth) ProtoMessage()

func (*Auth) ProtoReflect

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

func (*Auth) Reset

func (x *Auth) Reset()

func (*Auth) String

func (x *Auth) String() string

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

Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.

func (*Bootstrap) GetAuth

func (x *Bootstrap) GetAuth() *Auth

func (*Bootstrap) GetCluster

func (x *Bootstrap) GetCluster() *ClusterConfig

func (*Bootstrap) GetData

func (x *Bootstrap) GetData() *Database

func (*Bootstrap) GetLog

func (x *Bootstrap) GetLog() *Log

func (*Bootstrap) GetServer

func (x *Bootstrap) GetServer() *Server

func (*Bootstrap) GetServices

func (x *Bootstrap) GetServices() []*Service

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

Deprecated: Use Database.ProtoReflect.Descriptor instead.

func (*Database) GetDatabase

func (x *Database) GetDatabase() string

func (*Database) GetHost

func (x *Database) GetHost() string

func (*Database) GetPassword

func (x *Database) GetPassword() string

func (*Database) GetPort

func (x *Database) GetPort() int32

func (*Database) GetUsername

func (x *Database) GetUsername() string

func (*Database) ProtoMessage

func (*Database) ProtoMessage()

func (*Database) ProtoReflect

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

func (*Database) Reset

func (x *Database) Reset()

func (*Database) String

func (x *Database) String() string

type Env

type Env int32
const (
	Env_EnvLocal       Env = 0
	Env_EnvBostionHost Env = 1
	Env_EnvCluster     Env = 2
)

func (Env) Descriptor

func (Env) Descriptor() protoreflect.EnumDescriptor

func (Env) Enum

func (x Env) Enum() *Env

func (Env) EnumDescriptor deprecated

func (Env) EnumDescriptor() ([]byte, []int)

Deprecated: Use Env.Descriptor instead.

func (Env) Number

func (x Env) Number() protoreflect.EnumNumber

func (Env) String

func (x Env) String() string

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

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetMaxAge

func (x *Log) GetMaxAge() int32

func (*Log) GetMaxBackups

func (x *Log) GetMaxBackups() int32

func (*Log) GetMaxSize

func (x *Log) GetMaxSize() int32

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

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

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

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

Deprecated: Use Server.ProtoReflect.Descriptor instead.

func (*Server) GetGrpc

func (x *Server) GetGrpc() *GRPCServer

func (*Server) GetHttp

func (x *Server) GetHttp() *HTTPServer

func (*Server) GetName

func (x *Server) GetName() string

func (*Server) GetVersion

func (x *Server) GetVersion() string

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetAddr

func (x *Service) GetAddr() string

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) GetPort

func (x *Service) GetPort() int32

func (*Service) GetTimeout

func (x *Service) GetTimeout() int64

func (*Service) GetVersion

func (x *Service) GetVersion() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

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

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

Jump to

Keyboard shortcuts

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