conf

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type CollectionConfig added in v0.2.0

type CollectionConfig struct {
	// contains filtered or unexported fields
}

func (*CollectionConfig) Descriptor deprecated added in v0.2.0

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

Deprecated: Use CollectionConfig.ProtoReflect.Descriptor instead.

func (*CollectionConfig) ProtoMessage added in v0.2.0

func (*CollectionConfig) ProtoMessage()

func (*CollectionConfig) ProtoReflect added in v0.2.0

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

func (*CollectionConfig) Reset added in v0.2.0

func (x *CollectionConfig) Reset()

func (*CollectionConfig) String added in v0.2.0

func (x *CollectionConfig) String() string

type CollectionServer added in v0.2.0

type CollectionServer struct {
	Server   *GrpcServerConfig     `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	Registry *Registry             `protobuf:"bytes,2,opt,name=registry,proto3" json:"registry,omitempty"`
	Database *DatabaseServerConfig `protobuf:"bytes,3,opt,name=database,proto3" json:"database,omitempty"`
	Config   *CollectionConfig     `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	Kafka    *KafkaConfig          `protobuf:"bytes,5,opt,name=kafka,proto3" json:"kafka,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectionServer) Descriptor deprecated added in v0.2.0

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

Deprecated: Use CollectionServer.ProtoReflect.Descriptor instead.

func (*CollectionServer) GetConfig added in v0.2.0

func (x *CollectionServer) GetConfig() *CollectionConfig

func (*CollectionServer) GetDatabase added in v0.2.0

func (x *CollectionServer) GetDatabase() *DatabaseServerConfig

func (*CollectionServer) GetKafka added in v0.2.0

func (x *CollectionServer) GetKafka() *KafkaConfig

func (*CollectionServer) GetRegistry added in v0.2.0

func (x *CollectionServer) GetRegistry() *Registry

func (*CollectionServer) GetServer added in v0.2.0

func (x *CollectionServer) GetServer() *GrpcServerConfig

func (*CollectionServer) ProtoMessage added in v0.2.0

func (*CollectionServer) ProtoMessage()

func (*CollectionServer) ProtoReflect added in v0.2.0

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

func (*CollectionServer) Reset added in v0.2.0

func (x *CollectionServer) Reset()

func (*CollectionServer) String added in v0.2.0

func (x *CollectionServer) String() string

type CollectorConfig

type CollectorConfig struct {
	DatabaseTls       bool   `protobuf:"varint,1,opt,name=database_tls,json=databaseTls,proto3" json:"database_tls,omitempty" env:"COLLECTOR_DATABASE_TLS"` // @gotags: env:"COLLECTOR_DATABASE_TLS"
	DatabaseJwtSecret string ``                                                                                                                             // @gotags: env:"COLLECTOR_DATABASE_JWT_SECRET"
	/* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CollectorConfig) Descriptor deprecated

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

Deprecated: Use CollectorConfig.ProtoReflect.Descriptor instead.

func (*CollectorConfig) GetDatabaseJwtSecret

func (x *CollectorConfig) GetDatabaseJwtSecret() string

func (*CollectorConfig) GetDatabaseTls

func (x *CollectorConfig) GetDatabaseTls() bool

func (*CollectorConfig) ProtoMessage

func (*CollectorConfig) ProtoMessage()

func (*CollectorConfig) ProtoReflect

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

func (*CollectorConfig) Reset

func (x *CollectorConfig) Reset()

func (*CollectorConfig) String

func (x *CollectorConfig) String() string

type CollectorServer

type CollectorServer struct {
	TcpServer  *TcpServer        `protobuf:"bytes,1,opt,name=tcp_server,json=tcpServer,proto3" json:"tcp_server,omitempty"`
	GrpcServer *GrpcServerConfig `protobuf:"bytes,2,opt,name=grpc_server,json=grpcServer,proto3" json:"grpc_server,omitempty"`
	Registry   *Registry         `protobuf:"bytes,3,opt,name=registry,proto3" json:"registry,omitempty"`
	Config     *CollectorConfig  `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	Kafka      *KafkaConfig      `protobuf:"bytes,5,opt,name=kafka,proto3" json:"kafka,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectorServer) Descriptor deprecated

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

Deprecated: Use CollectorServer.ProtoReflect.Descriptor instead.

func (*CollectorServer) GetConfig

func (x *CollectorServer) GetConfig() *CollectorConfig

func (*CollectorServer) GetGrpcServer

func (x *CollectorServer) GetGrpcServer() *GrpcServerConfig

func (*CollectorServer) GetKafka added in v0.1.1

func (x *CollectorServer) GetKafka() *KafkaConfig

func (*CollectorServer) GetRegistry

func (x *CollectorServer) GetRegistry() *Registry

func (*CollectorServer) GetTcpServer

func (x *CollectorServer) GetTcpServer() *TcpServer

func (*CollectorServer) ProtoMessage

func (*CollectorServer) ProtoMessage()

func (*CollectorServer) ProtoReflect

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

func (*CollectorServer) Reset

func (x *CollectorServer) Reset()

func (*CollectorServer) String

func (x *CollectorServer) String() string

type DatabaseServerConfig added in v0.2.0

type DatabaseServerConfig struct {
	Host        string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty" env:"DATABASE_HOST"`                                          // @gotags: env:"DATABASE_HOST"
	Port        uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty" env:"DATABASE_PORT"`                                         // @gotags: env:"DATABASE_PORT"
	User        string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" env:"DATABASE_USER"`                                          // @gotags: env:"DATABASE_USER"
	Password    string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty" env:"DATABASE_PASSWORD"`                              // @gotags: env:"DATABASE_PASSWORD"
	Name        string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty" env:"DATABASE_NAME"`                                          // @gotags: env:"DATABASE_NAME"
	SslMode     string `protobuf:"bytes,6,opt,name=ssl_mode,json=sslMode,proto3" json:"ssl_mode,omitempty" env:"DATABASE_SSLMODE"`                  // @gotags: env:"DATABASE_SSLMODE"
	AutoMigrate bool   `protobuf:"varint,7,opt,name=auto_migrate,json=autoMigrate,proto3" json:"auto_migrate,omitempty" env:"DATABASE_AUTOMIGRATE"` // @gotags: env:"DATABASE_AUTOMIGRATE"
	// contains filtered or unexported fields
}

func (*DatabaseServerConfig) Descriptor deprecated added in v0.2.0

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

Deprecated: Use DatabaseServerConfig.ProtoReflect.Descriptor instead.

func (*DatabaseServerConfig) GetAutoMigrate added in v0.2.0

func (x *DatabaseServerConfig) GetAutoMigrate() bool

func (*DatabaseServerConfig) GetHost added in v0.2.0

func (x *DatabaseServerConfig) GetHost() string

func (*DatabaseServerConfig) GetName added in v0.2.0

func (x *DatabaseServerConfig) GetName() string

func (*DatabaseServerConfig) GetPassword added in v0.2.0

func (x *DatabaseServerConfig) GetPassword() string

func (*DatabaseServerConfig) GetPort added in v0.2.0

func (x *DatabaseServerConfig) GetPort() uint32

func (*DatabaseServerConfig) GetSslMode added in v0.2.0

func (x *DatabaseServerConfig) GetSslMode() string

func (*DatabaseServerConfig) GetUser added in v0.2.0

func (x *DatabaseServerConfig) GetUser() string

func (*DatabaseServerConfig) ProtoMessage added in v0.2.0

func (*DatabaseServerConfig) ProtoMessage()

func (*DatabaseServerConfig) ProtoReflect added in v0.2.0

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

func (*DatabaseServerConfig) Reset added in v0.2.0

func (x *DatabaseServerConfig) Reset()

func (*DatabaseServerConfig) String added in v0.2.0

func (x *DatabaseServerConfig) String() string

type DeviceConfig added in v0.2.0

type DeviceConfig struct {
	// contains filtered or unexported fields
}

func (*DeviceConfig) Descriptor deprecated added in v0.2.0

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

Deprecated: Use DeviceConfig.ProtoReflect.Descriptor instead.

func (*DeviceConfig) ProtoMessage added in v0.2.0

func (*DeviceConfig) ProtoMessage()

func (*DeviceConfig) ProtoReflect added in v0.2.0

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

func (*DeviceConfig) Reset added in v0.2.0

func (x *DeviceConfig) Reset()

func (*DeviceConfig) String added in v0.2.0

func (x *DeviceConfig) String() string

type DeviceServer added in v0.2.0

type DeviceServer struct {
	Server   *GrpcServerConfig     `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	Registry *Registry             `protobuf:"bytes,2,opt,name=registry,proto3" json:"registry,omitempty"`
	Database *DatabaseServerConfig `protobuf:"bytes,3,opt,name=database,proto3" json:"database,omitempty"`
	Config   *DeviceConfig         `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	Redis    *RedisConfig          `protobuf:"bytes,5,opt,name=redis,proto3" json:"redis,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceServer) Descriptor deprecated added in v0.2.0

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

Deprecated: Use DeviceServer.ProtoReflect.Descriptor instead.

func (*DeviceServer) GetConfig added in v0.2.0

func (x *DeviceServer) GetConfig() *DeviceConfig

func (*DeviceServer) GetDatabase added in v0.2.0

func (x *DeviceServer) GetDatabase() *DatabaseServerConfig

func (*DeviceServer) GetRedis added in v0.2.1

func (x *DeviceServer) GetRedis() *RedisConfig

func (*DeviceServer) GetRegistry added in v0.2.0

func (x *DeviceServer) GetRegistry() *Registry

func (*DeviceServer) GetServer added in v0.2.0

func (x *DeviceServer) GetServer() *GrpcServerConfig

func (*DeviceServer) ProtoMessage added in v0.2.0

func (*DeviceServer) ProtoMessage()

func (*DeviceServer) ProtoReflect added in v0.2.0

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

func (*DeviceServer) Reset added in v0.2.0

func (x *DeviceServer) Reset()

func (*DeviceServer) String added in v0.2.0

func (x *DeviceServer) String() string

type GatewayConfig

type GatewayConfig struct {
	// contains filtered or unexported fields
}

func (*GatewayConfig) Descriptor deprecated

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

Deprecated: Use GatewayConfig.ProtoReflect.Descriptor instead.

func (*GatewayConfig) ProtoMessage

func (*GatewayConfig) ProtoMessage()

func (*GatewayConfig) ProtoReflect

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

func (*GatewayConfig) Reset

func (x *GatewayConfig) Reset()

func (*GatewayConfig) String

func (x *GatewayConfig) String() string

type GatewayServer

type GatewayServer struct {
	Server   *TcpServer     `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	Registry *Registry      `protobuf:"bytes,2,opt,name=registry,proto3" json:"registry,omitempty"`
	Config   *GatewayConfig `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*GatewayServer) Descriptor deprecated

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

Deprecated: Use GatewayServer.ProtoReflect.Descriptor instead.

func (*GatewayServer) GetConfig

func (x *GatewayServer) GetConfig() *GatewayConfig

func (*GatewayServer) GetRegistry

func (x *GatewayServer) GetRegistry() *Registry

func (*GatewayServer) GetServer

func (x *GatewayServer) GetServer() *TcpServer

func (*GatewayServer) ProtoMessage

func (*GatewayServer) ProtoMessage()

func (*GatewayServer) ProtoReflect

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

func (*GatewayServer) Reset

func (x *GatewayServer) Reset()

func (*GatewayServer) String

func (x *GatewayServer) String() string

type GrpcServerConfig added in v0.2.0

type GrpcServerConfig struct {
	Addr           string                `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty" env:"GRPC_ADDR"` // @gotags: env:"GRPC_ADDR"
	Tls            *GrpcServerConfig_TLS `protobuf:"bytes,2,opt,name=tls,proto3" json:"tls,omitempty"`
	CustomEndpoint string                `` // @gotags: env:"GRPC_CUSTOM_ENDPOINT"
	/* 130-byte string literal not displayed */
	Timeout   *durationpb.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty" env:"GRPC_SERVER_TIMEOUT"`                         // @gotags: env:"GRPC_SERVER_TIMEOUT"
	JwtSecret string               `protobuf:"bytes,5,opt,name=jwt_secret,json=jwtSecret,proto3" json:"jwt_secret,omitempty" env:"GRPC_SERVER_JWT_SECRET"` // @gotags: env:"GRPC_SERVER_JWT_SECRET"
	// contains filtered or unexported fields
}

func DefaultGrpcServer

func DefaultGrpcServer() *GrpcServerConfig

func (*GrpcServerConfig) Descriptor deprecated added in v0.2.0

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

Deprecated: Use GrpcServerConfig.ProtoReflect.Descriptor instead.

func (*GrpcServerConfig) GetAddr added in v0.2.0

func (x *GrpcServerConfig) GetAddr() string

func (*GrpcServerConfig) GetCustomEndpoint added in v0.2.0

func (x *GrpcServerConfig) GetCustomEndpoint() string

func (*GrpcServerConfig) GetJwtSecret added in v0.2.0

func (x *GrpcServerConfig) GetJwtSecret() string

func (*GrpcServerConfig) GetTimeout added in v0.2.0

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

func (*GrpcServerConfig) GetTls added in v0.2.0

func (*GrpcServerConfig) ProtoMessage added in v0.2.0

func (*GrpcServerConfig) ProtoMessage()

func (*GrpcServerConfig) ProtoReflect added in v0.2.0

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

func (*GrpcServerConfig) Reset added in v0.2.0

func (x *GrpcServerConfig) Reset()

func (*GrpcServerConfig) String added in v0.2.0

func (x *GrpcServerConfig) String() string

type GrpcServerConfig_TLS added in v0.2.0

type GrpcServerConfig_TLS struct {
	CertFile string `protobuf:"bytes,1,opt,name=cert_file,json=certFile,proto3" json:"cert_file,omitempty" env:"GRPC_CERT_FILE"` // @gotags: env:"GRPC_CERT_FILE"
	KeyFile  string `protobuf:"bytes,2,opt,name=key_file,json=keyFile,proto3" json:"key_file,omitempty" env:"GRPC_KEY_FILE"`     // @gotags: env:"GRPC_KEY_FILE"
	CaFile   string `protobuf:"bytes,3,opt,name=ca_file,json=caFile,proto3" json:"ca_file,omitempty" env:"GRPC_CA_FILE"`         // @gotags: env:"GRPC_CA_FILE"
	// contains filtered or unexported fields
}

func (*GrpcServerConfig_TLS) Descriptor deprecated added in v0.2.0

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

Deprecated: Use GrpcServerConfig_TLS.ProtoReflect.Descriptor instead.

func (*GrpcServerConfig_TLS) GetCaFile added in v0.2.0

func (x *GrpcServerConfig_TLS) GetCaFile() string

func (*GrpcServerConfig_TLS) GetCertFile added in v0.2.0

func (x *GrpcServerConfig_TLS) GetCertFile() string

func (*GrpcServerConfig_TLS) GetKeyFile added in v0.2.0

func (x *GrpcServerConfig_TLS) GetKeyFile() string

func (*GrpcServerConfig_TLS) ProtoMessage added in v0.2.0

func (*GrpcServerConfig_TLS) ProtoMessage()

func (*GrpcServerConfig_TLS) ProtoReflect added in v0.2.0

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

func (*GrpcServerConfig_TLS) Reset added in v0.2.0

func (x *GrpcServerConfig_TLS) Reset()

func (*GrpcServerConfig_TLS) String added in v0.2.0

func (x *GrpcServerConfig_TLS) String() string

type KafkaConfig added in v0.1.1

type KafkaConfig struct {
	Brokers  string `protobuf:"bytes,1,opt,name=brokers,proto3" json:"brokers,omitempty" env:"KAFKA_BROKERS"`    // @gotags: env:"KAFKA_BROKERS"
	User     string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty" env:"KAFKA_USER"`             // @gotags: env:"KAFKA_USER"
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty" env:"KAFKA_PASSWORD"` // @gotags: env:"KAFKA_PASSWORD"
	// contains filtered or unexported fields
}

func DefaultKafka added in v0.1.1

func DefaultKafka() *KafkaConfig

func (*KafkaConfig) Descriptor deprecated added in v0.1.1

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

Deprecated: Use KafkaConfig.ProtoReflect.Descriptor instead.

func (*KafkaConfig) GetBrokers added in v0.1.1

func (x *KafkaConfig) GetBrokers() string

func (*KafkaConfig) GetPassword added in v0.1.1

func (x *KafkaConfig) GetPassword() string

func (*KafkaConfig) GetUser added in v0.1.1

func (x *KafkaConfig) GetUser() string

func (*KafkaConfig) ProtoMessage added in v0.1.1

func (*KafkaConfig) ProtoMessage()

func (*KafkaConfig) ProtoReflect added in v0.1.1

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

func (*KafkaConfig) Reset added in v0.1.1

func (x *KafkaConfig) Reset()

func (*KafkaConfig) String added in v0.1.1

func (x *KafkaConfig) String() string

type LogConfig added in v0.2.0

type LogConfig struct {
	// contains filtered or unexported fields
}

func (*LogConfig) Descriptor deprecated added in v0.2.0

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

Deprecated: Use LogConfig.ProtoReflect.Descriptor instead.

func (*LogConfig) ProtoMessage added in v0.2.0

func (*LogConfig) ProtoMessage()

func (*LogConfig) ProtoReflect added in v0.2.0

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

func (*LogConfig) Reset added in v0.2.0

func (x *LogConfig) Reset()

func (*LogConfig) String added in v0.2.0

func (x *LogConfig) String() string

type LogServer added in v0.2.0

type LogServer struct {
	Server   *GrpcServerConfig     `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	Registry *Registry             `protobuf:"bytes,2,opt,name=registry,proto3" json:"registry,omitempty"`
	Database *DatabaseServerConfig `protobuf:"bytes,3,opt,name=database,proto3" json:"database,omitempty"`
	Config   *LogConfig            `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	Kafka    *KafkaConfig          `protobuf:"bytes,5,opt,name=kafka,proto3" json:"kafka,omitempty"`
	// contains filtered or unexported fields
}

func (*LogServer) Descriptor deprecated added in v0.2.0

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

Deprecated: Use LogServer.ProtoReflect.Descriptor instead.

func (*LogServer) GetConfig added in v0.2.0

func (x *LogServer) GetConfig() *LogConfig

func (*LogServer) GetDatabase added in v0.2.0

func (x *LogServer) GetDatabase() *DatabaseServerConfig

func (*LogServer) GetKafka added in v0.2.0

func (x *LogServer) GetKafka() *KafkaConfig

func (*LogServer) GetRegistry added in v0.2.0

func (x *LogServer) GetRegistry() *Registry

func (*LogServer) GetServer added in v0.2.0

func (x *LogServer) GetServer() *GrpcServerConfig

func (*LogServer) ProtoMessage added in v0.2.0

func (*LogServer) ProtoMessage()

func (*LogServer) ProtoReflect added in v0.2.0

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

func (*LogServer) Reset added in v0.2.0

func (x *LogServer) Reset()

func (*LogServer) String added in v0.2.0

func (x *LogServer) String() string

type RedisConfig added in v0.2.0

type RedisConfig struct {
	Addr     string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty" env:"REDIS_ADDR"`             // @gotags: env:"REDIS_ADDR"
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty" env:"REDIS_USERNAME"` // @gotags: env:"REDIS_USERNAME"
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty" env:"REDIS_PASSWORD"` // @gotags: env:"REDIS_PASSWORD"
	Db       int32  `protobuf:"varint,4,opt,name=db,proto3" json:"db,omitempty" env:"REDIS_DB"`                  // @gotags: env:"REDIS_DB"
	// contains filtered or unexported fields
}

func (*RedisConfig) Descriptor deprecated added in v0.2.0

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

Deprecated: Use RedisConfig.ProtoReflect.Descriptor instead.

func (*RedisConfig) GetAddr added in v0.2.0

func (x *RedisConfig) GetAddr() string

func (*RedisConfig) GetDb added in v0.2.0

func (x *RedisConfig) GetDb() int32

func (*RedisConfig) GetPassword added in v0.2.0

func (x *RedisConfig) GetPassword() string

func (*RedisConfig) GetUsername added in v0.2.0

func (x *RedisConfig) GetUsername() string

func (*RedisConfig) ProtoMessage added in v0.2.0

func (*RedisConfig) ProtoMessage()

func (*RedisConfig) ProtoReflect added in v0.2.0

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

func (*RedisConfig) Reset added in v0.2.0

func (x *RedisConfig) Reset()

func (*RedisConfig) String added in v0.2.0

func (x *RedisConfig) String() string

type Registry

type Registry struct {
	Etcd *Registry_Etcd `protobuf:"bytes,2,opt,name=etcd,proto3" json:"etcd,omitempty"`
	// contains filtered or unexported fields
}

func DefaultRegistry

func DefaultRegistry() *Registry

func (*Registry) Descriptor deprecated

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

Deprecated: Use Registry.ProtoReflect.Descriptor instead.

func (*Registry) GetEtcd

func (x *Registry) GetEtcd() *Registry_Etcd

func (*Registry) ProtoMessage

func (*Registry) ProtoMessage()

func (*Registry) ProtoReflect

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

func (*Registry) Reset

func (x *Registry) Reset()

func (*Registry) String

func (x *Registry) String() string

type Registry_Etcd

type Registry_Etcd struct {
	Endpoint string               `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty" env:"ETCD_ENDPOINT"` // @gotags: env:"ETCD_ENDPOINT"
	Username string               `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty" env:"ETCD_USERNAME"` // @gotags: env:"ETCD_USERNAME"
	Password string               `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty" env:"ETCD_PASSWORD"` // @gotags: env:"ETCD_PASSWORD"
	Timeout  *durationpb.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty" env:"ETCD_TIMEOUT"`    // @gotags: env:"ETCD_TIMEOUT"
	// contains filtered or unexported fields
}

func (*Registry_Etcd) Descriptor deprecated

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

Deprecated: Use Registry_Etcd.ProtoReflect.Descriptor instead.

func (*Registry_Etcd) GetEndpoint

func (x *Registry_Etcd) GetEndpoint() string

func (*Registry_Etcd) GetPassword

func (x *Registry_Etcd) GetPassword() string

func (*Registry_Etcd) GetTimeout

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

func (*Registry_Etcd) GetUsername

func (x *Registry_Etcd) GetUsername() string

func (*Registry_Etcd) ProtoMessage

func (*Registry_Etcd) ProtoMessage()

func (*Registry_Etcd) ProtoReflect

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

func (*Registry_Etcd) Reset

func (x *Registry_Etcd) Reset()

func (*Registry_Etcd) String

func (x *Registry_Etcd) String() string

type TcpServer

type TcpServer struct {
	Addr           string         `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty" env:"TCP_ADDR"` // @gotags: env:"TCP_ADDR"
	Tls            *TcpServer_TLS `protobuf:"bytes,2,opt,name=tls,proto3" json:"tls,omitempty"`
	CustomEndpoint string         `` // @gotags: env:"TCP_CUSTOM_ENDPOINT"
	/* 129-byte string literal not displayed */
	Timeout *durationpb.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty" env:"TCP_SERVER_TIMEOUT"` // @gotags: env:"TCP_SERVER_TIMEOUT"
	// contains filtered or unexported fields
}

func DefaultTcpServer

func DefaultTcpServer() *TcpServer

func (*TcpServer) Descriptor deprecated

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

Deprecated: Use TcpServer.ProtoReflect.Descriptor instead.

func (*TcpServer) GetAddr

func (x *TcpServer) GetAddr() string

func (*TcpServer) GetCustomEndpoint

func (x *TcpServer) GetCustomEndpoint() string

func (*TcpServer) GetTimeout

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

func (*TcpServer) GetTls

func (x *TcpServer) GetTls() *TcpServer_TLS

func (*TcpServer) ProtoMessage

func (*TcpServer) ProtoMessage()

func (*TcpServer) ProtoReflect

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

func (*TcpServer) Reset

func (x *TcpServer) Reset()

func (*TcpServer) String

func (x *TcpServer) String() string

type TcpServer_TLS

type TcpServer_TLS struct {
	CertFile string `protobuf:"bytes,1,opt,name=cert_file,json=certFile,proto3" json:"cert_file,omitempty" env:"TCP_CERT_FILE"` // @gotags: env:"TCP_CERT_FILE"
	KeyFile  string `protobuf:"bytes,2,opt,name=key_file,json=keyFile,proto3" json:"key_file,omitempty" env:"TCP_KEY_FILE"`     // @gotags: env:"TCP_KEY_FILE"
	CaFile   string `protobuf:"bytes,3,opt,name=ca_file,json=caFile,proto3" json:"ca_file,omitempty" env:"TCP_CA_FILE"`         // @gotags: env:"TCP_CA_FILE"
	// contains filtered or unexported fields
}

func (*TcpServer_TLS) Descriptor deprecated

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

Deprecated: Use TcpServer_TLS.ProtoReflect.Descriptor instead.

func (*TcpServer_TLS) GetCaFile

func (x *TcpServer_TLS) GetCaFile() string

func (*TcpServer_TLS) GetCertFile

func (x *TcpServer_TLS) GetCertFile() string

func (*TcpServer_TLS) GetKeyFile

func (x *TcpServer_TLS) GetKeyFile() string

func (*TcpServer_TLS) ProtoMessage

func (*TcpServer_TLS) ProtoMessage()

func (*TcpServer_TLS) ProtoReflect

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

func (*TcpServer_TLS) Reset

func (x *TcpServer_TLS) Reset()

func (*TcpServer_TLS) String

func (x *TcpServer_TLS) String() string

type UserConfig added in v0.2.0

type UserConfig struct {
	// contains filtered or unexported fields
}

func (*UserConfig) Descriptor deprecated added in v0.2.0

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

Deprecated: Use UserConfig.ProtoReflect.Descriptor instead.

func (*UserConfig) ProtoMessage added in v0.2.0

func (*UserConfig) ProtoMessage()

func (*UserConfig) ProtoReflect added in v0.2.0

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

func (*UserConfig) Reset added in v0.2.0

func (x *UserConfig) Reset()

func (*UserConfig) String added in v0.2.0

func (x *UserConfig) String() string

type UserServer added in v0.2.0

type UserServer struct {
	Server   *GrpcServerConfig     `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	Registry *Registry             `protobuf:"bytes,2,opt,name=registry,proto3" json:"registry,omitempty"`
	Database *DatabaseServerConfig `protobuf:"bytes,3,opt,name=database,proto3" json:"database,omitempty"`
	Config   *UserConfig           `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	Redis    *RedisConfig          `protobuf:"bytes,5,opt,name=redis,proto3" json:"redis,omitempty"`
	// contains filtered or unexported fields
}

func (*UserServer) Descriptor deprecated added in v0.2.0

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

Deprecated: Use UserServer.ProtoReflect.Descriptor instead.

func (*UserServer) GetConfig added in v0.2.0

func (x *UserServer) GetConfig() *UserConfig

func (*UserServer) GetDatabase added in v0.2.0

func (x *UserServer) GetDatabase() *DatabaseServerConfig

func (*UserServer) GetRedis added in v0.2.0

func (x *UserServer) GetRedis() *RedisConfig

func (*UserServer) GetRegistry added in v0.2.0

func (x *UserServer) GetRegistry() *Registry

func (*UserServer) GetServer added in v0.2.0

func (x *UserServer) GetServer() *GrpcServerConfig

func (*UserServer) ProtoMessage added in v0.2.0

func (*UserServer) ProtoMessage()

func (*UserServer) ProtoReflect added in v0.2.0

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

func (*UserServer) Reset added in v0.2.0

func (x *UserServer) Reset()

func (*UserServer) String added in v0.2.0

func (x *UserServer) String() string

type WebConfig added in v0.2.0

type WebConfig struct {
	Jwt *WebConfig_JWT `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"`
	// contains filtered or unexported fields
}

func (*WebConfig) Descriptor deprecated added in v0.2.0

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

Deprecated: Use WebConfig.ProtoReflect.Descriptor instead.

func (*WebConfig) GetJwt added in v0.2.0

func (x *WebConfig) GetJwt() *WebConfig_JWT

func (*WebConfig) ProtoMessage added in v0.2.0

func (*WebConfig) ProtoMessage()

func (*WebConfig) ProtoReflect added in v0.2.0

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

func (*WebConfig) Reset added in v0.2.0

func (x *WebConfig) Reset()

func (*WebConfig) String added in v0.2.0

func (x *WebConfig) String() string

type WebConfig_JWT added in v0.2.0

type WebConfig_JWT struct {
	Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty" env:"WEB_JWT_SECRET"` // @gotags: env:"WEB_JWT_SECRET"
	Expire string `protobuf:"bytes,2,opt,name=expire,proto3" json:"expire,omitempty" env:"WEB_JWT_EXPIRE"` // @gotags: env:"WEB_JWT_EXPIRE"
	// contains filtered or unexported fields
}

func (*WebConfig_JWT) Descriptor deprecated added in v0.2.0

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

Deprecated: Use WebConfig_JWT.ProtoReflect.Descriptor instead.

func (*WebConfig_JWT) GetExpire added in v0.2.0

func (x *WebConfig_JWT) GetExpire() string

func (*WebConfig_JWT) GetSecret added in v0.2.0

func (x *WebConfig_JWT) GetSecret() string

func (*WebConfig_JWT) ProtoMessage added in v0.2.0

func (*WebConfig_JWT) ProtoMessage()

func (*WebConfig_JWT) ProtoReflect added in v0.2.0

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

func (*WebConfig_JWT) Reset added in v0.2.0

func (x *WebConfig_JWT) Reset()

func (*WebConfig_JWT) String added in v0.2.0

func (x *WebConfig_JWT) String() string

type WebServer

type WebServer struct {
	Server   *WebServerConfig `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	Registry *Registry        `protobuf:"bytes,2,opt,name=registry,proto3" json:"registry,omitempty"`
	Config   *WebConfig       `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	Redis    *RedisConfig     `protobuf:"bytes,4,opt,name=redis,proto3" json:"redis,omitempty"`
	// contains filtered or unexported fields
}

func (*WebServer) Descriptor deprecated

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

Deprecated: Use WebServer.ProtoReflect.Descriptor instead.

func (*WebServer) GetConfig added in v0.2.0

func (x *WebServer) GetConfig() *WebConfig

func (*WebServer) GetRedis added in v0.2.0

func (x *WebServer) GetRedis() *RedisConfig

func (*WebServer) GetRegistry added in v0.2.0

func (x *WebServer) GetRegistry() *Registry

func (*WebServer) GetServer added in v0.2.0

func (x *WebServer) GetServer() *WebServerConfig

func (*WebServer) ProtoMessage

func (*WebServer) ProtoMessage()

func (*WebServer) ProtoReflect

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

func (*WebServer) Reset

func (x *WebServer) Reset()

func (*WebServer) String

func (x *WebServer) String() string

type WebServerConfig added in v0.2.0

type WebServerConfig struct {
	Addr           string               `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty" env:"WEB_ADDR"` // @gotags: env:"WEB_ADDR"
	Tls            *WebServerConfig_TLS `protobuf:"bytes,2,opt,name=tls,proto3" json:"tls,omitempty"`
	CustomEndpoint string               `` // @gotags: env:"WEB_CUSTOM_ENDPOINT"
	/* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func DefaultWebServer added in v0.2.0

func DefaultWebServer() *WebServerConfig

func (*WebServerConfig) Descriptor deprecated added in v0.2.0

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

Deprecated: Use WebServerConfig.ProtoReflect.Descriptor instead.

func (*WebServerConfig) GetAddr added in v0.2.0

func (x *WebServerConfig) GetAddr() string

func (*WebServerConfig) GetCustomEndpoint added in v0.2.0

func (x *WebServerConfig) GetCustomEndpoint() string

func (*WebServerConfig) GetTls added in v0.2.0

func (x *WebServerConfig) GetTls() *WebServerConfig_TLS

func (*WebServerConfig) ProtoMessage added in v0.2.0

func (*WebServerConfig) ProtoMessage()

func (*WebServerConfig) ProtoReflect added in v0.2.0

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

func (*WebServerConfig) Reset added in v0.2.0

func (x *WebServerConfig) Reset()

func (*WebServerConfig) String added in v0.2.0

func (x *WebServerConfig) String() string

type WebServerConfig_TLS added in v0.2.0

type WebServerConfig_TLS struct {
	CertFile string `protobuf:"bytes,1,opt,name=cert_file,json=certFile,proto3" json:"cert_file,omitempty" env:"WEB_CERT_FILE"` // @gotags: env:"WEB_CERT_FILE"
	KeyFile  string `protobuf:"bytes,2,opt,name=key_file,json=keyFile,proto3" json:"key_file,omitempty" env:"WEB_KEY_FILE"`     // @gotags: env:"WEB_KEY_FILE"
	CaFile   string `protobuf:"bytes,3,opt,name=ca_file,json=caFile,proto3" json:"ca_file,omitempty" env:"WEB_CA_FILE"`         // @gotags: env:"WEB_CA_FILE"
	// contains filtered or unexported fields
}

func (*WebServerConfig_TLS) Descriptor deprecated added in v0.2.0

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

Deprecated: Use WebServerConfig_TLS.ProtoReflect.Descriptor instead.

func (*WebServerConfig_TLS) GetCaFile added in v0.2.0

func (x *WebServerConfig_TLS) GetCaFile() string

func (*WebServerConfig_TLS) GetCertFile added in v0.2.0

func (x *WebServerConfig_TLS) GetCertFile() string

func (*WebServerConfig_TLS) GetKeyFile added in v0.2.0

func (x *WebServerConfig_TLS) GetKeyFile() string

func (*WebServerConfig_TLS) ProtoMessage added in v0.2.0

func (*WebServerConfig_TLS) ProtoMessage()

func (*WebServerConfig_TLS) ProtoReflect added in v0.2.0

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

func (*WebServerConfig_TLS) Reset added in v0.2.0

func (x *WebServerConfig_TLS) Reset()

func (*WebServerConfig_TLS) String added in v0.2.0

func (x *WebServerConfig_TLS) String() string

Jump to

Keyboard shortcuts

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