conf

package
v0.0.0-...-975283c Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_common_conf_auth_proto protoreflect.FileDescriptor
View Source
var File_common_conf_bootstrap_proto protoreflect.FileDescriptor
View Source
var File_common_conf_config_proto protoreflect.FileDescriptor
View Source
var File_common_conf_data_proto protoreflect.FileDescriptor
View Source
var File_common_conf_logger_proto protoreflect.FileDescriptor
View Source
var File_common_conf_registry_proto protoreflect.FileDescriptor
View Source
var File_common_conf_server_proto protoreflect.FileDescriptor
View Source
var File_common_conf_trace_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Auth

type Auth struct {
	ServiceKey string `protobuf:"bytes,1,opt,name=service_key,json=serviceKey,proto3" json:"service_key,omitempty"`
	ApiKey     string `protobuf:"bytes,2,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
	// contains filtered or unexported fields
}

func (*Auth) Descriptor deprecated

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

Deprecated: Use Auth.ProtoReflect.Descriptor instead.

func (*Auth) GetApiKey

func (x *Auth) GetApiKey() string

func (*Auth) GetServiceKey

func (x *Auth) GetServiceKey() 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"`
	Auth     *Auth         `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"`
	Trace    *Tracer       `protobuf:"bytes,4,opt,name=trace,proto3" json:"trace,omitempty"`
	Logger   *Logger       `protobuf:"bytes,5,opt,name=logger,proto3" json:"logger,omitempty"`
	Registry *Registry     `protobuf:"bytes,6,opt,name=registry,proto3" json:"registry,omitempty"`
	Config   *RemoteConfig `protobuf:"bytes,8,opt,name=config,proto3" json:"config,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) GetConfig

func (x *Bootstrap) GetConfig() *RemoteConfig

func (*Bootstrap) GetData

func (x *Bootstrap) GetData() *Data

func (*Bootstrap) GetLogger

func (x *Bootstrap) GetLogger() *Logger

func (*Bootstrap) GetRegistry

func (x *Bootstrap) GetRegistry() *Registry

func (*Bootstrap) GetServer

func (x *Bootstrap) GetServer() *Server

func (*Bootstrap) GetTrace

func (x *Bootstrap) GetTrace() *Tracer

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"`
	Etcd     *Data_Etcd     `protobuf:"bytes,3,opt,name=etcd,proto3" json:"etcd,omitempty"`
	Casbin   *Data_Casbin   `protobuf:"bytes,4,opt,name=casbin,proto3" json:"casbin,omitempty"`
	// contains filtered or unexported fields
}

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetCasbin

func (x *Data) GetCasbin() *Data_Casbin

func (*Data) GetDatabase

func (x *Data) GetDatabase() *Data_Database

func (*Data) GetEtcd

func (x *Data) GetEtcd() *Data_Etcd

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_Casbin

type Data_Casbin struct {
	ModelPath string `protobuf:"bytes,1,opt,name=model_path,json=modelPath,proto3" json:"model_path,omitempty"`
	// contains filtered or unexported fields
}

func (*Data_Casbin) Descriptor deprecated

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

Deprecated: Use Data_Casbin.ProtoReflect.Descriptor instead.

func (*Data_Casbin) GetModelPath

func (x *Data_Casbin) GetModelPath() string

func (*Data_Casbin) ProtoMessage

func (*Data_Casbin) ProtoMessage()

func (*Data_Casbin) ProtoReflect

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

func (*Data_Casbin) Reset

func (x *Data_Casbin) Reset()

func (*Data_Casbin) String

func (x *Data_Casbin) String() string

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"`
	Migrate bool   `protobuf:"varint,3,opt,name=migrate,proto3" json:"migrate,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) GetMigrate

func (x *Data_Database) GetMigrate() bool

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

type Data_Etcd

type Data_Etcd struct {
	Endpoints   []string             `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	DialTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*Data_Etcd) Descriptor deprecated

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

Deprecated: Use Data_Etcd.ProtoReflect.Descriptor instead.

func (*Data_Etcd) GetDialTimeout

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

func (*Data_Etcd) GetEndpoints

func (x *Data_Etcd) GetEndpoints() []string

func (*Data_Etcd) ProtoMessage

func (*Data_Etcd) ProtoMessage()

func (*Data_Etcd) ProtoReflect

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

func (*Data_Etcd) Reset

func (x *Data_Etcd) Reset()

func (*Data_Etcd) String

func (x *Data_Etcd) String() string

type Data_Redis

type Data_Redis struct {
	Addr         string               `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Password     string               `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Db           int32                `protobuf:"varint,3,opt,name=db,proto3" json:"db,omitempty"`
	DialTimeout  *durationpb.Duration `protobuf:"bytes,4,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"`
	ReadTimeout  *durationpb.Duration `protobuf:"bytes,5,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"`
	WriteTimeout *durationpb.Duration `protobuf:"bytes,6,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) GetDb

func (x *Data_Redis) GetDb() int32

func (*Data_Redis) GetDialTimeout

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

func (*Data_Redis) GetPassword

func (x *Data_Redis) GetPassword() 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 Logger

type Logger struct {
	Type   string         `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Zap    *Logger_Zap    `protobuf:"bytes,2,opt,name=zap,proto3" json:"zap,omitempty"`
	Logrus *Logger_Logrus `protobuf:"bytes,3,opt,name=logrus,proto3" json:"logrus,omitempty"`
	// contains filtered or unexported fields
}

func (*Logger) Descriptor deprecated

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

Deprecated: Use Logger.ProtoReflect.Descriptor instead.

func (*Logger) GetLogrus

func (x *Logger) GetLogrus() *Logger_Logrus

func (*Logger) GetType

func (x *Logger) GetType() string

func (*Logger) GetZap

func (x *Logger) GetZap() *Logger_Zap

func (*Logger) ProtoMessage

func (*Logger) ProtoMessage()

func (*Logger) ProtoReflect

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

func (*Logger) Reset

func (x *Logger) Reset()

func (*Logger) String

func (x *Logger) String() string

type Logger_Logrus

type Logger_Logrus struct {
	Level            string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"`                                                // log level
	Formatter        string `protobuf:"bytes,2,opt,name=formatter,proto3" json:"formatter,omitempty"`                                        // output format:text, json.
	TimestampFormat  string `protobuf:"bytes,3,opt,name=timestamp_format,json=timestampFormat,proto3" json:"timestamp_format,omitempty"`     // define the timestamp format, e.g. "2006-01-02 15:04:05"
	DisableColors    bool   `protobuf:"varint,4,opt,name=disable_colors,json=disableColors,proto3" json:"disable_colors,omitempty"`          // no need for colored logs
	DisableTimestamp bool   `protobuf:"varint,5,opt,name=disable_timestamp,json=disableTimestamp,proto3" json:"disable_timestamp,omitempty"` // no timestamp required
	// contains filtered or unexported fields
}

func (*Logger_Logrus) Descriptor deprecated

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

Deprecated: Use Logger_Logrus.ProtoReflect.Descriptor instead.

func (*Logger_Logrus) GetDisableColors

func (x *Logger_Logrus) GetDisableColors() bool

func (*Logger_Logrus) GetDisableTimestamp

func (x *Logger_Logrus) GetDisableTimestamp() bool

func (*Logger_Logrus) GetFormatter

func (x *Logger_Logrus) GetFormatter() string

func (*Logger_Logrus) GetLevel

func (x *Logger_Logrus) GetLevel() string

func (*Logger_Logrus) GetTimestampFormat

func (x *Logger_Logrus) GetTimestampFormat() string

func (*Logger_Logrus) ProtoMessage

func (*Logger_Logrus) ProtoMessage()

func (*Logger_Logrus) ProtoReflect

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

func (*Logger_Logrus) Reset

func (x *Logger_Logrus) Reset()

func (*Logger_Logrus) String

func (x *Logger_Logrus) String() string

type Logger_Zap

type Logger_Zap struct {
	Filename   string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	Level      string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`
	MaxSize    int32  `protobuf:"varint,3,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"`
	MaxAge     int32  `protobuf:"varint,4,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
	MaxBackups int32  `protobuf:"varint,5,opt,name=max_backups,json=maxBackups,proto3" json:"max_backups,omitempty"`
	// contains filtered or unexported fields
}

func (*Logger_Zap) Descriptor deprecated

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

Deprecated: Use Logger_Zap.ProtoReflect.Descriptor instead.

func (*Logger_Zap) GetFilename

func (x *Logger_Zap) GetFilename() string

func (*Logger_Zap) GetLevel

func (x *Logger_Zap) GetLevel() string

func (*Logger_Zap) GetMaxAge

func (x *Logger_Zap) GetMaxAge() int32

func (*Logger_Zap) GetMaxBackups

func (x *Logger_Zap) GetMaxBackups() int32

func (*Logger_Zap) GetMaxSize

func (x *Logger_Zap) GetMaxSize() int32

func (*Logger_Zap) ProtoMessage

func (*Logger_Zap) ProtoMessage()

func (*Logger_Zap) ProtoReflect

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

func (*Logger_Zap) Reset

func (x *Logger_Zap) Reset()

func (*Logger_Zap) String

func (x *Logger_Zap) String() string

type Registry

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

func (*Registry) Descriptor deprecated

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

Deprecated: Use Registry.ProtoReflect.Descriptor instead.

func (*Registry) GetConsul

func (x *Registry) GetConsul() *Registry_Consul

func (*Registry) GetEtcd

func (x *Registry) GetEtcd() *Registry_Etcd

func (*Registry) GetType

func (x *Registry) GetType() string

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_Consul

type Registry_Consul struct {
	Scheme      string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"`
	Address     string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	HealthCheck bool   `protobuf:"varint,3,opt,name=health_check,json=healthCheck,proto3" json:"health_check,omitempty"`
	// contains filtered or unexported fields
}

Consul

func (*Registry_Consul) Descriptor deprecated

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

Deprecated: Use Registry_Consul.ProtoReflect.Descriptor instead.

func (*Registry_Consul) GetAddress

func (x *Registry_Consul) GetAddress() string

func (*Registry_Consul) GetHealthCheck

func (x *Registry_Consul) GetHealthCheck() bool

func (*Registry_Consul) GetScheme

func (x *Registry_Consul) GetScheme() string

func (*Registry_Consul) ProtoMessage

func (*Registry_Consul) ProtoMessage()

func (*Registry_Consul) ProtoReflect

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

func (*Registry_Consul) Reset

func (x *Registry_Consul) Reset()

func (*Registry_Consul) String

func (x *Registry_Consul) String() string

type Registry_Etcd

type Registry_Etcd struct {
	Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	// contains filtered or unexported fields
}

Etcd

func (*Registry_Etcd) Descriptor deprecated

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

Deprecated: Use Registry_Etcd.ProtoReflect.Descriptor instead.

func (*Registry_Etcd) GetEndpoints

func (x *Registry_Etcd) GetEndpoints() []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 RemoteConfig

type RemoteConfig struct {
	Type   string               `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Consul *RemoteConfig_Consul `protobuf:"bytes,2,opt,name=consul,proto3" json:"consul,omitempty"`
	Etcd   *RemoteConfig_Etcd   `protobuf:"bytes,3,opt,name=etcd,proto3" json:"etcd,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoteConfig) Descriptor deprecated

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

Deprecated: Use RemoteConfig.ProtoReflect.Descriptor instead.

func (*RemoteConfig) GetConsul

func (x *RemoteConfig) GetConsul() *RemoteConfig_Consul

func (*RemoteConfig) GetEtcd

func (x *RemoteConfig) GetEtcd() *RemoteConfig_Etcd

func (*RemoteConfig) GetType

func (x *RemoteConfig) GetType() string

func (*RemoteConfig) ProtoMessage

func (*RemoteConfig) ProtoMessage()

func (*RemoteConfig) ProtoReflect

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

func (*RemoteConfig) Reset

func (x *RemoteConfig) Reset()

func (*RemoteConfig) String

func (x *RemoteConfig) String() string

type RemoteConfig_Consul

type RemoteConfig_Consul struct {
	Scheme  string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Key     string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoteConfig_Consul) Descriptor deprecated

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

Deprecated: Use RemoteConfig_Consul.ProtoReflect.Descriptor instead.

func (*RemoteConfig_Consul) GetAddress

func (x *RemoteConfig_Consul) GetAddress() string

func (*RemoteConfig_Consul) GetKey

func (x *RemoteConfig_Consul) GetKey() string

func (*RemoteConfig_Consul) GetScheme

func (x *RemoteConfig_Consul) GetScheme() string

func (*RemoteConfig_Consul) ProtoMessage

func (*RemoteConfig_Consul) ProtoMessage()

func (*RemoteConfig_Consul) ProtoReflect

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

func (*RemoteConfig_Consul) Reset

func (x *RemoteConfig_Consul) Reset()

func (*RemoteConfig_Consul) String

func (x *RemoteConfig_Consul) String() string

type RemoteConfig_Etcd

type RemoteConfig_Etcd struct {
	Endpoints []string             `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	Timeout   *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
	Key       string               `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoteConfig_Etcd) Descriptor deprecated

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

Deprecated: Use RemoteConfig_Etcd.ProtoReflect.Descriptor instead.

func (*RemoteConfig_Etcd) GetEndpoints

func (x *RemoteConfig_Etcd) GetEndpoints() []string

func (*RemoteConfig_Etcd) GetKey

func (x *RemoteConfig_Etcd) GetKey() string

func (*RemoteConfig_Etcd) GetTimeout

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

func (*RemoteConfig_Etcd) ProtoMessage

func (*RemoteConfig_Etcd) ProtoMessage()

func (*RemoteConfig_Etcd) ProtoReflect

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

func (*RemoteConfig_Etcd) Reset

func (x *RemoteConfig_Etcd) Reset()

func (*RemoteConfig_Etcd) String

func (x *RemoteConfig_Etcd) String() string

type Server

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

gPRC

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"`
	Headers []string             `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty"`
	Methods []string             `protobuf:"bytes,5,rep,name=methods,proto3" json:"methods,omitempty"`
	Origins []string             `protobuf:"bytes,6,rep,name=origins,proto3" json:"origins,omitempty"`
	// contains filtered or unexported fields
}

HTTP

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) GetHeaders

func (x *Server_HTTP) GetHeaders() []string

func (*Server_HTTP) GetMethods

func (x *Server_HTTP) GetMethods() []string

func (*Server_HTTP) GetNetwork

func (x *Server_HTTP) GetNetwork() string

func (*Server_HTTP) GetOrigins

func (x *Server_HTTP) GetOrigins() []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

type Tracer

type Tracer struct {
	Batcher  string  `protobuf:"bytes,1,opt,name=batcher,proto3" json:"batcher,omitempty"`   // jaeger or zipkin
	Endpoint string  `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // host port
	Sampler  float64 `protobuf:"fixed64,3,opt,name=sampler,proto3" json:"sampler,omitempty"` // sampling rate, default: 1.0
	Env      string  `protobuf:"bytes,4,opt,name=env,proto3" json:"env,omitempty"`           // operating environment:dev,debug, product
	// contains filtered or unexported fields
}

func (*Tracer) Descriptor deprecated

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

Deprecated: Use Tracer.ProtoReflect.Descriptor instead.

func (*Tracer) GetBatcher

func (x *Tracer) GetBatcher() string

func (*Tracer) GetEndpoint

func (x *Tracer) GetEndpoint() string

func (*Tracer) GetEnv

func (x *Tracer) GetEnv() string

func (*Tracer) GetSampler

func (x *Tracer) GetSampler() float64

func (*Tracer) ProtoMessage

func (*Tracer) ProtoMessage()

func (*Tracer) ProtoReflect

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

func (*Tracer) Reset

func (x *Tracer) Reset()

func (*Tracer) String

func (x *Tracer) String() string

Jump to

Keyboard shortcuts

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