conf

package
v0.0.0-...-c9f961e Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_uuid_internal_conf_conf_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type App

type App struct {
	Uuid *App_UUID `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*App) Descriptor deprecated

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

Deprecated: Use App.ProtoReflect.Descriptor instead.

func (*App) GetUuid

func (x *App) GetUuid() *App_UUID

func (*App) ProtoMessage

func (*App) ProtoMessage()

func (*App) ProtoReflect

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

func (*App) Reset

func (x *App) Reset()

func (*App) String

func (x *App) String() string

func (*App) Validate

func (m *App) Validate() error

Validate checks the field values on App with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type AppValidationError

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

AppValidationError is the validation error returned by App.Validate if the designated constraints aren't met.

func (AppValidationError) Cause

func (e AppValidationError) Cause() error

Cause function returns cause value.

func (AppValidationError) Error

func (e AppValidationError) Error() string

Error satisfies the builtin error interface

func (AppValidationError) ErrorName

func (e AppValidationError) ErrorName() string

ErrorName returns error name.

func (AppValidationError) Field

func (e AppValidationError) Field() string

Field function returns field value.

func (AppValidationError) Key

func (e AppValidationError) Key() bool

Key function returns key value.

func (AppValidationError) Reason

func (e AppValidationError) Reason() string

Reason function returns reason value.

type App_UUID

type App_UUID struct {
	MachineId uint32 `protobuf:"varint,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"`
	// contains filtered or unexported fields
}

func (*App_UUID) Descriptor deprecated

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

Deprecated: Use App_UUID.ProtoReflect.Descriptor instead.

func (*App_UUID) GetMachineId

func (x *App_UUID) GetMachineId() uint32

func (*App_UUID) ProtoMessage

func (*App_UUID) ProtoMessage()

func (*App_UUID) ProtoReflect

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

func (*App_UUID) Reset

func (x *App_UUID) Reset()

func (*App_UUID) String

func (x *App_UUID) String() string

func (*App_UUID) Validate

func (m *App_UUID) Validate() error

Validate checks the field values on App_UUID with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type App_UUIDValidationError

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

App_UUIDValidationError is the validation error returned by App_UUID.Validate if the designated constraints aren't met.

func (App_UUIDValidationError) Cause

func (e App_UUIDValidationError) Cause() error

Cause function returns cause value.

func (App_UUIDValidationError) Error

func (e App_UUIDValidationError) Error() string

Error satisfies the builtin error interface

func (App_UUIDValidationError) ErrorName

func (e App_UUIDValidationError) ErrorName() string

ErrorName returns error name.

func (App_UUIDValidationError) Field

func (e App_UUIDValidationError) Field() string

Field function returns field value.

func (App_UUIDValidationError) Key

func (e App_UUIDValidationError) Key() bool

Key function returns key value.

func (App_UUIDValidationError) Reason

func (e App_UUIDValidationError) Reason() string

Reason function returns reason value.

type Bootstrap

type Bootstrap struct {
	Service *Service       `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	Server  *Server        `protobuf:"bytes,2,opt,name=server,proto3" json:"server,omitempty"`
	Data    *Data          `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	Reg     *registry.Conf `protobuf:"bytes,4,opt,name=reg,proto3" json:"reg,omitempty"`
	Trace   *tracing.Conf  `protobuf:"bytes,6,opt,name=trace,proto3" json:"trace,omitempty"`
	Logger  *log.Conf      `protobuf:"bytes,7,opt,name=logger,proto3" json:"logger,omitempty"`
	App     *App           `protobuf:"bytes,8,opt,name=app,proto3" json:"app,omitempty"`
	// contains filtered or unexported fields
}

func (*Bootstrap) Descriptor deprecated

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

Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.

func (*Bootstrap) GetApp

func (x *Bootstrap) GetApp() *App

func (*Bootstrap) GetData

func (x *Bootstrap) GetData() *Data

func (*Bootstrap) GetLogger

func (x *Bootstrap) GetLogger() *log.Conf

func (*Bootstrap) GetReg

func (x *Bootstrap) GetReg() *registry.Conf

func (*Bootstrap) GetServer

func (x *Bootstrap) GetServer() *Server

func (*Bootstrap) GetService

func (x *Bootstrap) GetService() *Service

func (*Bootstrap) GetTrace

func (x *Bootstrap) GetTrace() *tracing.Conf

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

func (*Bootstrap) Validate

func (m *Bootstrap) Validate() error

Validate checks the field values on Bootstrap with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type BootstrapValidationError

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

BootstrapValidationError is the validation error returned by Bootstrap.Validate if the designated constraints aren't met.

func (BootstrapValidationError) Cause

func (e BootstrapValidationError) Cause() error

Cause function returns cause value.

func (BootstrapValidationError) Error

func (e BootstrapValidationError) Error() string

Error satisfies the builtin error interface

func (BootstrapValidationError) ErrorName

func (e BootstrapValidationError) ErrorName() string

ErrorName returns error name.

func (BootstrapValidationError) Field

func (e BootstrapValidationError) Field() string

Field function returns field value.

func (BootstrapValidationError) Key

Key function returns key value.

func (BootstrapValidationError) Reason

func (e BootstrapValidationError) Reason() string

Reason function returns reason value.

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"`
	Migrate  *Data_Migrate  `protobuf:"bytes,3,opt,name=migrate,proto3" json:"migrate,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() *Data_Database

func (*Data) GetMigrate

func (x *Data) GetMigrate() *Data_Migrate

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

func (*Data) Validate

func (m *Data) Validate() error

Validate checks the field values on Data with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DataValidationError

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

DataValidationError is the validation error returned by Data.Validate if the designated constraints aren't met.

func (DataValidationError) Cause

func (e DataValidationError) Cause() error

Cause function returns cause value.

func (DataValidationError) Error

func (e DataValidationError) Error() string

Error satisfies the builtin error interface

func (DataValidationError) ErrorName

func (e DataValidationError) ErrorName() string

ErrorName returns error name.

func (DataValidationError) Field

func (e DataValidationError) Field() string

Field function returns field value.

func (DataValidationError) Key

func (e DataValidationError) Key() bool

Key function returns key value.

func (DataValidationError) Reason

func (e DataValidationError) Reason() string

Reason function returns reason value.

type Data_Database

type Data_Database struct {
	Driver   string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
	Source   string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	LogLevel int32  `protobuf:"varint,3,opt,name=logLevel,proto3" json:"logLevel,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) GetDriver

func (x *Data_Database) GetDriver() string

func (*Data_Database) GetLogLevel

func (x *Data_Database) GetLogLevel() int32

func (*Data_Database) GetSource

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

func (*Data_Database) Validate

func (m *Data_Database) Validate() error

Validate checks the field values on Data_Database with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type Data_DatabaseValidationError

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

Data_DatabaseValidationError is the validation error returned by Data_Database.Validate if the designated constraints aren't met.

func (Data_DatabaseValidationError) Cause

Cause function returns cause value.

func (Data_DatabaseValidationError) Error

Error satisfies the builtin error interface

func (Data_DatabaseValidationError) ErrorName

func (e Data_DatabaseValidationError) ErrorName() string

ErrorName returns error name.

func (Data_DatabaseValidationError) Field

Field function returns field value.

func (Data_DatabaseValidationError) Key

Key function returns key value.

func (Data_DatabaseValidationError) Reason

Reason function returns reason value.

type Data_Migrate

type Data_Migrate struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*Data_Migrate) Descriptor deprecated

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

Deprecated: Use Data_Migrate.ProtoReflect.Descriptor instead.

func (*Data_Migrate) GetPath

func (x *Data_Migrate) GetPath() string

func (*Data_Migrate) ProtoMessage

func (*Data_Migrate) ProtoMessage()

func (*Data_Migrate) ProtoReflect

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

func (*Data_Migrate) Reset

func (x *Data_Migrate) Reset()

func (*Data_Migrate) String

func (x *Data_Migrate) String() string

func (*Data_Migrate) Validate

func (m *Data_Migrate) Validate() error

Validate checks the field values on Data_Migrate with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type Data_MigrateValidationError

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

Data_MigrateValidationError is the validation error returned by Data_Migrate.Validate if the designated constraints aren't met.

func (Data_MigrateValidationError) Cause

Cause function returns cause value.

func (Data_MigrateValidationError) Error

Error satisfies the builtin error interface

func (Data_MigrateValidationError) ErrorName

func (e Data_MigrateValidationError) ErrorName() string

ErrorName returns error name.

func (Data_MigrateValidationError) Field

Field function returns field value.

func (Data_MigrateValidationError) Key

Key function returns key value.

func (Data_MigrateValidationError) Reason

Reason function returns reason value.

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"`
	DialTimeout  *durationpb.Duration `protobuf:"bytes,5,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"`
	Username     string               `protobuf:"bytes,7,opt,name=username,proto3" json:"username,omitempty"`
	Password     string               `protobuf:"bytes,8,opt,name=password,proto3" json:"password,omitempty"`
	Db           int32                `protobuf:"varint,9,opt,name=db,proto3" json:"db,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) GetDb

func (x *Data_Redis) GetDb() int32

func (*Data_Redis) GetDialTimeout

func (x *Data_Redis) GetDialTimeout() *durationpb.Duration

func (*Data_Redis) GetNetwork

func (x *Data_Redis) GetNetwork() string

func (*Data_Redis) GetPassword

func (x *Data_Redis) GetPassword() string

func (*Data_Redis) GetReadTimeout

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

func (*Data_Redis) GetUsername

func (x *Data_Redis) GetUsername() string

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

func (*Data_Redis) Validate

func (m *Data_Redis) Validate() error

Validate checks the field values on Data_Redis with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type Data_RedisValidationError

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

Data_RedisValidationError is the validation error returned by Data_Redis.Validate if the designated constraints aren't met.

func (Data_RedisValidationError) Cause

func (e Data_RedisValidationError) Cause() error

Cause function returns cause value.

func (Data_RedisValidationError) Error

Error satisfies the builtin error interface

func (Data_RedisValidationError) ErrorName

func (e Data_RedisValidationError) ErrorName() string

ErrorName returns error name.

func (Data_RedisValidationError) Field

Field function returns field value.

func (Data_RedisValidationError) Key

Key function returns key value.

func (Data_RedisValidationError) Reason

func (e Data_RedisValidationError) Reason() string

Reason function returns reason value.

type Server

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

func (*Server) GetHttp

func (x *Server) GetHttp() *rest.Conf

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

func (*Server) Validate

func (m *Server) Validate() error

Validate checks the field values on Server with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ServerValidationError

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

ServerValidationError is the validation error returned by Server.Validate if the designated constraints aren't met.

func (ServerValidationError) Cause

func (e ServerValidationError) Cause() error

Cause function returns cause value.

func (ServerValidationError) Error

func (e ServerValidationError) Error() string

Error satisfies the builtin error interface

func (ServerValidationError) ErrorName

func (e ServerValidationError) ErrorName() string

ErrorName returns error name.

func (ServerValidationError) Field

func (e ServerValidationError) Field() string

Field function returns field value.

func (ServerValidationError) Key

func (e ServerValidationError) Key() bool

Key function returns key value.

func (ServerValidationError) Reason

func (e ServerValidationError) Reason() string

Reason function returns reason value.

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"`
	// contains filtered or unexported fields
}

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetName

func (x *Service) GetName() string

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

func (*Service) Validate

func (m *Service) Validate() error

Validate checks the field values on Service with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ServiceValidationError

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

ServiceValidationError is the validation error returned by Service.Validate if the designated constraints aren't met.

func (ServiceValidationError) Cause

func (e ServiceValidationError) Cause() error

Cause function returns cause value.

func (ServiceValidationError) Error

func (e ServiceValidationError) Error() string

Error satisfies the builtin error interface

func (ServiceValidationError) ErrorName

func (e ServiceValidationError) ErrorName() string

ErrorName returns error name.

func (ServiceValidationError) Field

func (e ServiceValidationError) Field() string

Field function returns field value.

func (ServiceValidationError) Key

func (e ServiceValidationError) Key() bool

Key function returns key value.

func (ServiceValidationError) Reason

func (e ServiceValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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