conf

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_conf_conf_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Alisms

type Alisms struct {
	AccessKeyID     string `protobuf:"bytes,1,opt,name=accessKeyID,proto3" json:"accessKeyID,omitempty"`
	AccessKeySecret string `protobuf:"bytes,2,opt,name=accessKeySecret,proto3" json:"accessKeySecret,omitempty"`
	RegionId        string `protobuf:"bytes,3,opt,name=regionId,proto3" json:"regionId,omitempty"`
	// contains filtered or unexported fields
}

func (*Alisms) Descriptor deprecated

func (*Alisms) Descriptor() ([]byte, []int)

Deprecated: Use Alisms.ProtoReflect.Descriptor instead.

func (*Alisms) GetAccessKeyID

func (x *Alisms) GetAccessKeyID() string

func (*Alisms) GetAccessKeySecret

func (x *Alisms) GetAccessKeySecret() string

func (*Alisms) GetRegionId

func (x *Alisms) GetRegionId() string

func (*Alisms) ProtoMessage

func (*Alisms) ProtoMessage()

func (*Alisms) ProtoReflect

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

func (*Alisms) Reset

func (x *Alisms) Reset()

func (*Alisms) String

func (x *Alisms) String() string

type Auth

type Auth struct {
	NeedToken bool   `protobuf:"varint,1,opt,name=needToken,proto3" json:"needToken,omitempty"`
	PostURL   string `protobuf:"bytes,2,opt,name=postURL,proto3" json:"postURL,omitempty"`
	// contains filtered or unexported fields
}

func (*Auth) Descriptor deprecated

func (*Auth) Descriptor() ([]byte, []int)

Deprecated: Use Auth.ProtoReflect.Descriptor instead.

func (*Auth) GetNeedToken

func (x *Auth) GetNeedToken() bool

func (*Auth) GetPostURL

func (x *Auth) GetPostURL() 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 {
	Server *Server       `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	Data   *Data         `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Alisms *Alisms       `protobuf:"bytes,3,opt,name=alisms,proto3" json:"alisms,omitempty"`
	Debug  bool          `protobuf:"varint,4,opt,name=debug,proto3" json:"debug,omitempty"`
	File   *FileSettings `protobuf:"bytes,5,opt,name=file,proto3" json:"file,omitempty"` // file不是存在oss就是存在本地文件夹
	// contains filtered or unexported fields
}

func (*Bootstrap) Descriptor deprecated

func (*Bootstrap) Descriptor() ([]byte, []int)

Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.

func (*Bootstrap) GetData

func (x *Bootstrap) GetData() *Data

func (*Bootstrap) GetDebug

func (x *Bootstrap) GetDebug() bool

func (*Bootstrap) GetFile

func (x *Bootstrap) GetFile() *FileSettings

func (*Bootstrap) GetServer

func (x *Bootstrap) GetServer() *Server

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 Data

type Data struct {
	Database *Database `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
	Redis    *Redis    `protobuf:"bytes,2,opt,name=redis,proto3" json:"redis,omitempty"`
	// contains filtered or unexported fields
}

func (*Data) Descriptor deprecated

func (*Data) Descriptor() ([]byte, []int)

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetDatabase

func (x *Data) GetDatabase() *Database

func (*Data) GetRedis

func (x *Data) GetRedis() *Redis

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

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

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

type Database

type Database struct {
	Host     string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Port     int64  `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	UserName string `protobuf:"bytes,3,opt,name=userName,proto3" json:"userName,omitempty"`
	Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	DbName   string `protobuf:"bytes,5,opt,name=dbName,proto3" json:"dbName,omitempty"`
	// contains filtered or unexported fields
}

func (*Database) Descriptor deprecated

func (*Database) Descriptor() ([]byte, []int)

Deprecated: Use Database.ProtoReflect.Descriptor instead.

func (*Database) GetDbName

func (x *Database) GetDbName() string

func (*Database) GetHost

func (x *Database) GetHost() string

func (*Database) GetPassword

func (x *Database) GetPassword() string

func (*Database) GetPort

func (x *Database) GetPort() int64

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 FileSettings

type FileSettings struct {
	Oss          *OSS   `protobuf:"bytes,1,opt,name=oss,proto3" json:"oss,omitempty"`
	SaveType     string `protobuf:"bytes,2,opt,name=saveType,proto3" json:"saveType,omitempty"`
	FileSavePath string `protobuf:"bytes,3,opt,name=fileSavePath,proto3" json:"fileSavePath,omitempty"`
	TmpPath      string `protobuf:"bytes,4,opt,name=tmpPath,proto3" json:"tmpPath,omitempty"`
	// contains filtered or unexported fields
}

func (*FileSettings) Descriptor deprecated

func (*FileSettings) Descriptor() ([]byte, []int)

Deprecated: Use FileSettings.ProtoReflect.Descriptor instead.

func (*FileSettings) GetFileSavePath

func (x *FileSettings) GetFileSavePath() string

func (*FileSettings) GetOss

func (x *FileSettings) GetOss() *OSS

func (*FileSettings) GetSaveType

func (x *FileSettings) GetSaveType() string

func (*FileSettings) GetTmpPath

func (x *FileSettings) GetTmpPath() string

func (*FileSettings) ProtoMessage

func (*FileSettings) ProtoMessage()

func (*FileSettings) ProtoReflect

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

func (*FileSettings) Reset

func (x *FileSettings) Reset()

func (*FileSettings) String

func (x *FileSettings) String() string

type GRPC

type 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 (*GRPC) Descriptor deprecated

func (*GRPC) Descriptor() ([]byte, []int)

Deprecated: Use GRPC.ProtoReflect.Descriptor instead.

func (*GRPC) GetAddr

func (x *GRPC) GetAddr() string

func (*GRPC) GetNetwork

func (x *GRPC) GetNetwork() string

func (*GRPC) GetTimeout

func (x *GRPC) GetTimeout() *durationpb.Duration

func (*GRPC) ProtoMessage

func (*GRPC) ProtoMessage()

func (*GRPC) ProtoReflect

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

func (*GRPC) Reset

func (x *GRPC) Reset()

func (*GRPC) String

func (x *GRPC) String() string

type OSS

type OSS struct {
	Key        string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Secret     string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
	Endpoint   string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	BucketName string `protobuf:"bytes,4,opt,name=bucketName,proto3" json:"bucketName,omitempty"`
	// contains filtered or unexported fields
}

func (*OSS) Descriptor deprecated

func (*OSS) Descriptor() ([]byte, []int)

Deprecated: Use OSS.ProtoReflect.Descriptor instead.

func (*OSS) GetBucketName

func (x *OSS) GetBucketName() string

func (*OSS) GetEndpoint

func (x *OSS) GetEndpoint() string

func (*OSS) GetKey

func (x *OSS) GetKey() string

func (*OSS) GetSecret

func (x *OSS) GetSecret() string

func (*OSS) ProtoMessage

func (*OSS) ProtoMessage()

func (*OSS) ProtoReflect

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

func (*OSS) Reset

func (x *OSS) Reset()

func (*OSS) String

func (x *OSS) String() string

type Redis

type 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"`
	Password     string               `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"`
	Db           int64                `protobuf:"varint,6,opt,name=db,proto3" json:"db,omitempty"`
	// contains filtered or unexported fields
}

func (*Redis) Descriptor deprecated

func (*Redis) Descriptor() ([]byte, []int)

Deprecated: Use Redis.ProtoReflect.Descriptor instead.

func (*Redis) GetAddr

func (x *Redis) GetAddr() string

func (*Redis) GetDb

func (x *Redis) GetDb() int64

func (*Redis) GetNetwork

func (x *Redis) GetNetwork() string

func (*Redis) GetPassword

func (x *Redis) GetPassword() string

func (*Redis) GetReadTimeout

func (x *Redis) GetReadTimeout() *durationpb.Duration

func (*Redis) GetWriteTimeout

func (x *Redis) GetWriteTimeout() *durationpb.Duration

func (*Redis) ProtoMessage

func (*Redis) ProtoMessage()

func (*Redis) ProtoReflect

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

func (*Redis) Reset

func (x *Redis) Reset()

func (*Redis) String

func (x *Redis) String() string

type Server

type Server struct {
	Http *Server_HTTP `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"`
	Grpc *GRPC        `protobuf:"bytes,2,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() *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

func (*Server) Reset

func (x *Server) Reset()

func (*Server) String

func (x *Server) 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"`
	Auth    *Auth                `protobuf:"bytes,4,opt,name=auth,proto3" json:"auth,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) GetAuth

func (x *Server_HTTP) GetAuth() *Auth

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

Jump to

Keyboard shortcuts

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