conf

package
v0.0.0-...-db98cbe Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_conf_conf_proto protoreflect.FileDescriptor

ProviderSet is config providers.

Functions

This section is empty.

Types

type Apollo

type Apollo struct {
	AppId     string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	Cluster   string `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"`
	EndPoint  string `protobuf:"bytes,3,opt,name=end_point,json=endPoint,proto3" json:"end_point,omitempty"`
	Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Secret    string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

func (*Apollo) Descriptor deprecated

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

Deprecated: Use Apollo.ProtoReflect.Descriptor instead.

func (*Apollo) GetAppId

func (x *Apollo) GetAppId() string

func (*Apollo) GetCluster

func (x *Apollo) GetCluster() string

func (*Apollo) GetEndPoint

func (x *Apollo) GetEndPoint() string

func (*Apollo) GetNamespace

func (x *Apollo) GetNamespace() string

func (*Apollo) GetSecret

func (x *Apollo) GetSecret() string

func (*Apollo) ProtoMessage

func (*Apollo) ProtoMessage()

func (*Apollo) ProtoReflect

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

func (*Apollo) Reset

func (x *Apollo) Reset()

func (*Apollo) String

func (x *Apollo) 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"`
	Apollo *Apollo `protobuf:"bytes,3,opt,name=apollo,proto3" json:"apollo,omitempty"`
	// contains filtered or unexported fields
}

func (*Bootstrap) Descriptor deprecated

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

Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.

func (*Bootstrap) GetApollo

func (x *Bootstrap) GetApollo() *Apollo

func (*Bootstrap) GetData

func (x *Bootstrap) GetData() *Data

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 *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"`
	Hive     *Data_Hive     `protobuf:"bytes,3,opt,name=hive,proto3" json:"hive,omitempty"`
	Kafka    *Data_Kafka    `protobuf:"bytes,4,opt,name=kafka,proto3" json:"kafka,omitempty"`
	// contains filtered or unexported fields
}

func NewDataConfig

func NewDataConfig(logger log.Logger) (*Data, func())

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetDatabase

func (x *Data) GetDatabase() *Data_Database

func (*Data) GetHive

func (x *Data) GetHive() *Data_Hive

func (*Data) GetKafka

func (x *Data) GetKafka() *Data_Kafka

func (*Data) GetRedis

func (x *Data) GetRedis() *Data_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 Data_Database

type Data_Database struct {
	Realworld string `protobuf:"bytes,1,opt,name=realworld,proto3" json:"realworld,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) GetRealworld

func (x *Data_Database) GetRealworld() 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_Hive

type Data_Hive struct {
	Host          string                   `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Port          int32                    `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	Auth          string                   `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"`
	Configuration *Data_Hive_Configuration `protobuf:"bytes,4,opt,name=configuration,proto3" json:"configuration,omitempty"`
	// contains filtered or unexported fields
}

func (*Data_Hive) Descriptor deprecated

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

Deprecated: Use Data_Hive.ProtoReflect.Descriptor instead.

func (*Data_Hive) GetAuth

func (x *Data_Hive) GetAuth() string

func (*Data_Hive) GetConfiguration

func (x *Data_Hive) GetConfiguration() *Data_Hive_Configuration

func (*Data_Hive) GetHost

func (x *Data_Hive) GetHost() string

func (*Data_Hive) GetPort

func (x *Data_Hive) GetPort() int32

func (*Data_Hive) ProtoMessage

func (*Data_Hive) ProtoMessage()

func (*Data_Hive) ProtoReflect

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

func (*Data_Hive) Reset

func (x *Data_Hive) Reset()

func (*Data_Hive) String

func (x *Data_Hive) String() string

type Data_Hive_Configuration

type Data_Hive_Configuration struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Database string `protobuf:"bytes,3,opt,name=database,proto3" json:"database,omitempty"`
	// contains filtered or unexported fields
}

func (*Data_Hive_Configuration) Descriptor deprecated

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

Deprecated: Use Data_Hive_Configuration.ProtoReflect.Descriptor instead.

func (*Data_Hive_Configuration) GetDatabase

func (x *Data_Hive_Configuration) GetDatabase() string

func (*Data_Hive_Configuration) GetPassword

func (x *Data_Hive_Configuration) GetPassword() string

func (*Data_Hive_Configuration) GetUsername

func (x *Data_Hive_Configuration) GetUsername() string

func (*Data_Hive_Configuration) ProtoMessage

func (*Data_Hive_Configuration) ProtoMessage()

func (*Data_Hive_Configuration) ProtoReflect

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

func (*Data_Hive_Configuration) Reset

func (x *Data_Hive_Configuration) Reset()

func (*Data_Hive_Configuration) String

func (x *Data_Hive_Configuration) String() string

type Data_Kafka

type Data_Kafka struct {
	Address   []string   `protobuf:"bytes,1,rep,name=address,proto3" json:"address,omitempty"`
	Topic     string     `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
	Partition *anypb.Any `protobuf:"bytes,3,opt,name=partition,proto3" json:"partition,omitempty"`
	Network   *anypb.Any `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"`
	// contains filtered or unexported fields
}

func (*Data_Kafka) Descriptor deprecated

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

Deprecated: Use Data_Kafka.ProtoReflect.Descriptor instead.

func (*Data_Kafka) GetAddress

func (x *Data_Kafka) GetAddress() []string

func (*Data_Kafka) GetNetwork

func (x *Data_Kafka) GetNetwork() *anypb.Any

func (*Data_Kafka) GetPartition

func (x *Data_Kafka) GetPartition() *anypb.Any

func (*Data_Kafka) GetTopic

func (x *Data_Kafka) GetTopic() string

func (*Data_Kafka) ProtoMessage

func (*Data_Kafka) ProtoMessage()

func (*Data_Kafka) ProtoReflect

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

func (*Data_Kafka) Reset

func (x *Data_Kafka) Reset()

func (*Data_Kafka) String

func (x *Data_Kafka) 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"`
	// 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) GetNetwork

func (x *Data_Redis) GetNetwork() 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 Server

type Server struct {
	Env  string       `protobuf:"bytes,1,opt,name=env,proto3" json:"env,omitempty"`
	Name string       `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Http *Server_HTTP `protobuf:"bytes,3,opt,name=http,proto3" json:"http,omitempty"`
	Grpc *Server_GRPC `protobuf:"bytes,4,opt,name=grpc,proto3" json:"grpc,omitempty"`
	// contains filtered or unexported fields
}

func NewServerConfig

func NewServerConfig(logger log.Logger) (*Server, func())

func (*Server) Descriptor deprecated

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

Deprecated: Use Server.ProtoReflect.Descriptor instead.

func (*Server) GetEnv

func (x *Server) GetEnv() string

func (*Server) GetGrpc

func (x *Server) GetGrpc() *Server_GRPC

func (*Server) GetHttp

func (x *Server) GetHttp() *Server_HTTP

func (*Server) GetName

func (x *Server) GetName() 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 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

Jump to

Keyboard shortcuts

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