common

package
v0.0.0-...-e89c34c Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HealthyStatus_name = map[int32]string{
		0: "HealthyStatusUNKNOWN",
		1: "HealthyStatusSERVING",
		2: "HealthyStatusNOTSERVING",
	}
	HealthyStatus_value = map[string]int32{
		"HealthyStatusUNKNOWN":    0,
		"HealthyStatusSERVING":    1,
		"HealthyStatusNOTSERVING": 2,
	}
)

Enum value maps for HealthyStatus.

View Source
var File_common_common_proto protoreflect.FileDescriptor
View Source
var File_common_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DataConfig

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

func (*DataConfig) Descriptor deprecated

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

Deprecated: Use DataConfig.ProtoReflect.Descriptor instead.

func (*DataConfig) GetDatabase

func (x *DataConfig) GetDatabase() *DataConfig_Database

func (*DataConfig) GetRedis

func (x *DataConfig) GetRedis() *DataConfig_Redis

func (*DataConfig) ProtoMessage

func (*DataConfig) ProtoMessage()

func (*DataConfig) ProtoReflect

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

func (*DataConfig) Reset

func (x *DataConfig) Reset()

func (*DataConfig) String

func (x *DataConfig) String() string

func (*DataConfig) Validate

func (m *DataConfig) Validate() error

Validate checks the field values on DataConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DataConfig) ValidateAll

func (m *DataConfig) ValidateAll() error

ValidateAll checks the field values on DataConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DataConfigMultiError, or nil if none found.

type DataConfigMultiError

type DataConfigMultiError []error

DataConfigMultiError is an error wrapping multiple validation errors returned by DataConfig.ValidateAll() if the designated constraints aren't met.

func (DataConfigMultiError) AllErrors

func (m DataConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DataConfigMultiError) Error

func (m DataConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DataConfigValidationError

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

DataConfigValidationError is the validation error returned by DataConfig.Validate if the designated constraints aren't met.

func (DataConfigValidationError) Cause

func (e DataConfigValidationError) Cause() error

Cause function returns cause value.

func (DataConfigValidationError) Error

Error satisfies the builtin error interface

func (DataConfigValidationError) ErrorName

func (e DataConfigValidationError) ErrorName() string

ErrorName returns error name.

func (DataConfigValidationError) Field

Field function returns field value.

func (DataConfigValidationError) Key

Key function returns key value.

func (DataConfigValidationError) Reason

func (e DataConfigValidationError) Reason() string

Reason function returns reason value.

type DataConfig_Database

type DataConfig_Database struct {
	Driver             string `protobuf:"bytes,1,opt,name=driver,json=driver,proto3" json:"driver"`
	Source             string `protobuf:"bytes,2,opt,name=source,json=source,proto3" json:"source"`
	Level              int32  `protobuf:"varint,3,opt,name=level,json=level,proto3" json:"level"`
	MaxOpen            int32  `protobuf:"varint,4,opt,name=max_open,json=maxOpen,proto3" json:"max_open"`
	MaxIdle            int32  `protobuf:"varint,5,opt,name=max_idle,json=maxIdle,proto3" json:"max_idle"`
	MaxLifeTimeSeconds int32  `protobuf:"varint,6,opt,name=max_life_time_seconds,json=maxLifeTimeSeconds,proto3" json:"max_life_time_seconds"`
	// contains filtered or unexported fields
}

func (*DataConfig_Database) Descriptor deprecated

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

Deprecated: Use DataConfig_Database.ProtoReflect.Descriptor instead.

func (*DataConfig_Database) GetDriver

func (x *DataConfig_Database) GetDriver() string

func (*DataConfig_Database) GetLevel

func (x *DataConfig_Database) GetLevel() int32

func (*DataConfig_Database) GetMaxIdle

func (x *DataConfig_Database) GetMaxIdle() int32

func (*DataConfig_Database) GetMaxLifeTimeSeconds

func (x *DataConfig_Database) GetMaxLifeTimeSeconds() int32

func (*DataConfig_Database) GetMaxOpen

func (x *DataConfig_Database) GetMaxOpen() int32

func (*DataConfig_Database) GetSource

func (x *DataConfig_Database) GetSource() string

func (*DataConfig_Database) ProtoMessage

func (*DataConfig_Database) ProtoMessage()

func (*DataConfig_Database) ProtoReflect

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

func (*DataConfig_Database) Reset

func (x *DataConfig_Database) Reset()

func (*DataConfig_Database) String

func (x *DataConfig_Database) String() string

func (*DataConfig_Database) Validate

func (m *DataConfig_Database) Validate() error

Validate checks the field values on DataConfig_Database with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DataConfig_Database) ValidateAll

func (m *DataConfig_Database) ValidateAll() error

ValidateAll checks the field values on DataConfig_Database with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DataConfig_DatabaseMultiError, or nil if none found.

type DataConfig_DatabaseMultiError

type DataConfig_DatabaseMultiError []error

DataConfig_DatabaseMultiError is an error wrapping multiple validation errors returned by DataConfig_Database.ValidateAll() if the designated constraints aren't met.

func (DataConfig_DatabaseMultiError) AllErrors

func (m DataConfig_DatabaseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DataConfig_DatabaseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DataConfig_DatabaseValidationError

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

DataConfig_DatabaseValidationError is the validation error returned by DataConfig_Database.Validate if the designated constraints aren't met.

func (DataConfig_DatabaseValidationError) Cause

Cause function returns cause value.

func (DataConfig_DatabaseValidationError) Error

Error satisfies the builtin error interface

func (DataConfig_DatabaseValidationError) ErrorName

ErrorName returns error name.

func (DataConfig_DatabaseValidationError) Field

Field function returns field value.

func (DataConfig_DatabaseValidationError) Key

Key function returns key value.

func (DataConfig_DatabaseValidationError) Reason

Reason function returns reason value.

type DataConfig_Redis

type DataConfig_Redis struct {
	Address             string `protobuf:"bytes,1,opt,name=address,json=address,proto3" json:"address"`
	Password            string `protobuf:"bytes,2,opt,name=password,json=password,proto3" json:"password"`
	Db                  int32  `protobuf:"varint,3,opt,name=db,json=db,proto3" json:"db"`
	MaxIdle             int32  `protobuf:"varint,4,opt,name=max_idle,json=maxIdle,proto3" json:"max_idle"`
	ReadTimeoutSeconds  int64  `protobuf:"varint,5,opt,name=read_timeout_seconds,json=readTimeoutSeconds,proto3" json:"read_timeout_seconds"`
	WriteTimeoutSeconds int64  `protobuf:"varint,6,opt,name=write_timeout_seconds,json=writeTimeoutSeconds,proto3" json:"write_timeout_seconds"`
	// contains filtered or unexported fields
}

func (*DataConfig_Redis) Descriptor deprecated

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

Deprecated: Use DataConfig_Redis.ProtoReflect.Descriptor instead.

func (*DataConfig_Redis) GetAddress

func (x *DataConfig_Redis) GetAddress() string

func (*DataConfig_Redis) GetDb

func (x *DataConfig_Redis) GetDb() int32

func (*DataConfig_Redis) GetMaxIdle

func (x *DataConfig_Redis) GetMaxIdle() int32

func (*DataConfig_Redis) GetPassword

func (x *DataConfig_Redis) GetPassword() string

func (*DataConfig_Redis) GetReadTimeoutSeconds

func (x *DataConfig_Redis) GetReadTimeoutSeconds() int64

func (*DataConfig_Redis) GetWriteTimeoutSeconds

func (x *DataConfig_Redis) GetWriteTimeoutSeconds() int64

func (*DataConfig_Redis) ProtoMessage

func (*DataConfig_Redis) ProtoMessage()

func (*DataConfig_Redis) ProtoReflect

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

func (*DataConfig_Redis) Reset

func (x *DataConfig_Redis) Reset()

func (*DataConfig_Redis) String

func (x *DataConfig_Redis) String() string

func (*DataConfig_Redis) Validate

func (m *DataConfig_Redis) Validate() error

Validate checks the field values on DataConfig_Redis with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DataConfig_Redis) ValidateAll

func (m *DataConfig_Redis) ValidateAll() error

ValidateAll checks the field values on DataConfig_Redis with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DataConfig_RedisMultiError, or nil if none found.

type DataConfig_RedisMultiError

type DataConfig_RedisMultiError []error

DataConfig_RedisMultiError is an error wrapping multiple validation errors returned by DataConfig_Redis.ValidateAll() if the designated constraints aren't met.

func (DataConfig_RedisMultiError) AllErrors

func (m DataConfig_RedisMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DataConfig_RedisMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DataConfig_RedisValidationError

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

DataConfig_RedisValidationError is the validation error returned by DataConfig_Redis.Validate if the designated constraints aren't met.

func (DataConfig_RedisValidationError) Cause

Cause function returns cause value.

func (DataConfig_RedisValidationError) Error

Error satisfies the builtin error interface

func (DataConfig_RedisValidationError) ErrorName

ErrorName returns error name.

func (DataConfig_RedisValidationError) Field

Field function returns field value.

func (DataConfig_RedisValidationError) Key

Key function returns key value.

func (DataConfig_RedisValidationError) Reason

Reason function returns reason value.

type EmptyReply

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

func (*EmptyReply) Descriptor deprecated

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

Deprecated: Use EmptyReply.ProtoReflect.Descriptor instead.

func (*EmptyReply) ProtoMessage

func (*EmptyReply) ProtoMessage()

func (*EmptyReply) ProtoReflect

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

func (*EmptyReply) Reset

func (x *EmptyReply) Reset()

func (*EmptyReply) String

func (x *EmptyReply) String() string

func (*EmptyReply) Validate

func (m *EmptyReply) Validate() error

Validate checks the field values on EmptyReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*EmptyReply) ValidateAll

func (m *EmptyReply) ValidateAll() error

ValidateAll checks the field values on EmptyReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EmptyReplyMultiError, or nil if none found.

type EmptyReplyMultiError

type EmptyReplyMultiError []error

EmptyReplyMultiError is an error wrapping multiple validation errors returned by EmptyReply.ValidateAll() if the designated constraints aren't met.

func (EmptyReplyMultiError) AllErrors

func (m EmptyReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EmptyReplyMultiError) Error

func (m EmptyReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EmptyReplyValidationError

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

EmptyReplyValidationError is the validation error returned by EmptyReply.Validate if the designated constraints aren't met.

func (EmptyReplyValidationError) Cause

func (e EmptyReplyValidationError) Cause() error

Cause function returns cause value.

func (EmptyReplyValidationError) Error

Error satisfies the builtin error interface

func (EmptyReplyValidationError) ErrorName

func (e EmptyReplyValidationError) ErrorName() string

ErrorName returns error name.

func (EmptyReplyValidationError) Field

Field function returns field value.

func (EmptyReplyValidationError) Key

Key function returns key value.

func (EmptyReplyValidationError) Reason

func (e EmptyReplyValidationError) Reason() string

Reason function returns reason value.

type EmptyRequest

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

------ 空请求/空返回

func (*EmptyRequest) Descriptor deprecated

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

Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.

func (*EmptyRequest) ProtoMessage

func (*EmptyRequest) ProtoMessage()

func (*EmptyRequest) ProtoReflect

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

func (*EmptyRequest) Reset

func (x *EmptyRequest) Reset()

func (*EmptyRequest) String

func (x *EmptyRequest) String() string

func (*EmptyRequest) Validate

func (m *EmptyRequest) Validate() error

Validate checks the field values on EmptyRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*EmptyRequest) ValidateAll

func (m *EmptyRequest) ValidateAll() error

ValidateAll checks the field values on EmptyRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EmptyRequestMultiError, or nil if none found.

type EmptyRequestMultiError

type EmptyRequestMultiError []error

EmptyRequestMultiError is an error wrapping multiple validation errors returned by EmptyRequest.ValidateAll() if the designated constraints aren't met.

func (EmptyRequestMultiError) AllErrors

func (m EmptyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EmptyRequestMultiError) Error

func (m EmptyRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EmptyRequestValidationError

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

EmptyRequestValidationError is the validation error returned by EmptyRequest.Validate if the designated constraints aren't met.

func (EmptyRequestValidationError) Cause

Cause function returns cause value.

func (EmptyRequestValidationError) Error

Error satisfies the builtin error interface

func (EmptyRequestValidationError) ErrorName

func (e EmptyRequestValidationError) ErrorName() string

ErrorName returns error name.

func (EmptyRequestValidationError) Field

Field function returns field value.

func (EmptyRequestValidationError) Key

Key function returns key value.

func (EmptyRequestValidationError) Reason

Reason function returns reason value.

type ErrorReply

type ErrorReply struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,json=code,proto3" json:"code"`
	Reason  string `protobuf:"bytes,2,opt,name=reason,json=reason,proto3" json:"reason"`
	Message string `protobuf:"bytes,3,opt,name=message,json=message,proto3" json:"message"`
	Time    int64  `protobuf:"varint,4,opt,name=time,json=time,proto3" json:"time"`
	// contains filtered or unexported fields
}

------ 错误返回

func (*ErrorReply) Descriptor deprecated

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

Deprecated: Use ErrorReply.ProtoReflect.Descriptor instead.

func (*ErrorReply) GetCode

func (x *ErrorReply) GetCode() int32

func (*ErrorReply) GetMessage

func (x *ErrorReply) GetMessage() string

func (*ErrorReply) GetReason

func (x *ErrorReply) GetReason() string

func (*ErrorReply) GetTime

func (x *ErrorReply) GetTime() int64

func (*ErrorReply) ProtoMessage

func (*ErrorReply) ProtoMessage()

func (*ErrorReply) ProtoReflect

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

func (*ErrorReply) Reset

func (x *ErrorReply) Reset()

func (*ErrorReply) String

func (x *ErrorReply) String() string

func (*ErrorReply) Validate

func (m *ErrorReply) Validate() error

Validate checks the field values on ErrorReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ErrorReply) ValidateAll

func (m *ErrorReply) ValidateAll() error

ValidateAll checks the field values on ErrorReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ErrorReplyMultiError, or nil if none found.

type ErrorReplyMultiError

type ErrorReplyMultiError []error

ErrorReplyMultiError is an error wrapping multiple validation errors returned by ErrorReply.ValidateAll() if the designated constraints aren't met.

func (ErrorReplyMultiError) AllErrors

func (m ErrorReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ErrorReplyMultiError) Error

func (m ErrorReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ErrorReplyValidationError

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

ErrorReplyValidationError is the validation error returned by ErrorReply.Validate if the designated constraints aren't met.

func (ErrorReplyValidationError) Cause

func (e ErrorReplyValidationError) Cause() error

Cause function returns cause value.

func (ErrorReplyValidationError) Error

Error satisfies the builtin error interface

func (ErrorReplyValidationError) ErrorName

func (e ErrorReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ErrorReplyValidationError) Field

Field function returns field value.

func (ErrorReplyValidationError) Key

Key function returns key value.

func (ErrorReplyValidationError) Reason

func (e ErrorReplyValidationError) Reason() string

Reason function returns reason value.

type GRPCClient

type GRPCClient struct {
	Endpoint       string `protobuf:"bytes,1,opt,name=endpoint,json=endpoint,proto3" json:"endpoint"`
	TimeoutSeconds int64  `protobuf:"varint,2,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds"`
	// contains filtered or unexported fields
}

func (*GRPCClient) Descriptor deprecated

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

Deprecated: Use GRPCClient.ProtoReflect.Descriptor instead.

func (*GRPCClient) GetEndpoint

func (x *GRPCClient) GetEndpoint() string

func (*GRPCClient) GetTimeoutSeconds

func (x *GRPCClient) GetTimeoutSeconds() int64

func (*GRPCClient) ProtoMessage

func (*GRPCClient) ProtoMessage()

func (*GRPCClient) ProtoReflect

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

func (*GRPCClient) Reset

func (x *GRPCClient) Reset()

func (*GRPCClient) String

func (x *GRPCClient) String() string

func (*GRPCClient) Validate

func (m *GRPCClient) Validate() error

Validate checks the field values on GRPCClient with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GRPCClient) ValidateAll

func (m *GRPCClient) ValidateAll() error

ValidateAll checks the field values on GRPCClient with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GRPCClientMultiError, or nil if none found.

type GRPCClientMultiError

type GRPCClientMultiError []error

GRPCClientMultiError is an error wrapping multiple validation errors returned by GRPCClient.ValidateAll() if the designated constraints aren't met.

func (GRPCClientMultiError) AllErrors

func (m GRPCClientMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GRPCClientMultiError) Error

func (m GRPCClientMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GRPCClientValidationError

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

GRPCClientValidationError is the validation error returned by GRPCClient.Validate if the designated constraints aren't met.

func (GRPCClientValidationError) Cause

func (e GRPCClientValidationError) Cause() error

Cause function returns cause value.

func (GRPCClientValidationError) Error

Error satisfies the builtin error interface

func (GRPCClientValidationError) ErrorName

func (e GRPCClientValidationError) ErrorName() string

ErrorName returns error name.

func (GRPCClientValidationError) Field

Field function returns field value.

func (GRPCClientValidationError) Key

Key function returns key value.

func (GRPCClientValidationError) Reason

func (e GRPCClientValidationError) Reason() string

Reason function returns reason value.

type HealthyReply

type HealthyReply struct {
	Status HealthyStatus `protobuf:"varint,1,opt,name=status,json=status,proto3,enum=common.HealthyStatus" json:"status"`
	// contains filtered or unexported fields
}

func (*HealthyReply) Descriptor deprecated

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

Deprecated: Use HealthyReply.ProtoReflect.Descriptor instead.

func (*HealthyReply) GetStatus

func (x *HealthyReply) GetStatus() HealthyStatus

func (*HealthyReply) ProtoMessage

func (*HealthyReply) ProtoMessage()

func (*HealthyReply) ProtoReflect

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

func (*HealthyReply) Reset

func (x *HealthyReply) Reset()

func (*HealthyReply) String

func (x *HealthyReply) String() string

func (*HealthyReply) Validate

func (m *HealthyReply) Validate() error

Validate checks the field values on HealthyReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*HealthyReply) ValidateAll

func (m *HealthyReply) ValidateAll() error

ValidateAll checks the field values on HealthyReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HealthyReplyMultiError, or nil if none found.

type HealthyReplyMultiError

type HealthyReplyMultiError []error

HealthyReplyMultiError is an error wrapping multiple validation errors returned by HealthyReply.ValidateAll() if the designated constraints aren't met.

func (HealthyReplyMultiError) AllErrors

func (m HealthyReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HealthyReplyMultiError) Error

func (m HealthyReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type HealthyReplyValidationError

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

HealthyReplyValidationError is the validation error returned by HealthyReply.Validate if the designated constraints aren't met.

func (HealthyReplyValidationError) Cause

Cause function returns cause value.

func (HealthyReplyValidationError) Error

Error satisfies the builtin error interface

func (HealthyReplyValidationError) ErrorName

func (e HealthyReplyValidationError) ErrorName() string

ErrorName returns error name.

func (HealthyReplyValidationError) Field

Field function returns field value.

func (HealthyReplyValidationError) Key

Key function returns key value.

func (HealthyReplyValidationError) Reason

Reason function returns reason value.

type HealthyStatus

type HealthyStatus int32

------ 健康检查

const (
	HealthyStatus_HealthyStatusUNKNOWN    HealthyStatus = 0
	HealthyStatus_HealthyStatusSERVING    HealthyStatus = 1
	HealthyStatus_HealthyStatusNOTSERVING HealthyStatus = 2
)

func (HealthyStatus) Descriptor

func (HealthyStatus) Enum

func (x HealthyStatus) Enum() *HealthyStatus

func (HealthyStatus) EnumDescriptor deprecated

func (HealthyStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use HealthyStatus.Descriptor instead.

func (HealthyStatus) Number

func (HealthyStatus) String

func (x HealthyStatus) String() string

func (HealthyStatus) Type

type ServerConfig

type ServerConfig struct {
	Http      *ServerConfig_HTTP  `protobuf:"bytes,1,opt,name=http,json=http,proto3" json:"http"`                  // http信息
	Grpc      *ServerConfig_GRPC  `protobuf:"bytes,2,opt,name=grpc,json=grpc,proto3" json:"grpc"`                  // grpc信息
	Trace     *ServerConfig_Trace `protobuf:"bytes,3,opt,name=trace,json=trace,proto3" json:"trace"`               // 链路追踪信息
	OssDomain string              `protobuf:"bytes,4,opt,name=oss_domain,json=ossDomain,proto3" json:"oss_domain"` // 对象存储domain
	// contains filtered or unexported fields
}

func (*ServerConfig) Descriptor deprecated

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

Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.

func (*ServerConfig) GetGrpc

func (x *ServerConfig) GetGrpc() *ServerConfig_GRPC

func (*ServerConfig) GetHttp

func (x *ServerConfig) GetHttp() *ServerConfig_HTTP

func (*ServerConfig) GetOssDomain

func (x *ServerConfig) GetOssDomain() string

func (*ServerConfig) GetTrace

func (x *ServerConfig) GetTrace() *ServerConfig_Trace

func (*ServerConfig) ProtoMessage

func (*ServerConfig) ProtoMessage()

func (*ServerConfig) ProtoReflect

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

func (*ServerConfig) Reset

func (x *ServerConfig) Reset()

func (*ServerConfig) String

func (x *ServerConfig) String() string

func (*ServerConfig) Validate

func (m *ServerConfig) Validate() error

Validate checks the field values on ServerConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ServerConfig) ValidateAll

func (m *ServerConfig) ValidateAll() error

ValidateAll checks the field values on ServerConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServerConfigMultiError, or nil if none found.

type ServerConfigMultiError

type ServerConfigMultiError []error

ServerConfigMultiError is an error wrapping multiple validation errors returned by ServerConfig.ValidateAll() if the designated constraints aren't met.

func (ServerConfigMultiError) AllErrors

func (m ServerConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ServerConfigMultiError) Error

func (m ServerConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ServerConfigValidationError

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

ServerConfigValidationError is the validation error returned by ServerConfig.Validate if the designated constraints aren't met.

func (ServerConfigValidationError) Cause

Cause function returns cause value.

func (ServerConfigValidationError) Error

Error satisfies the builtin error interface

func (ServerConfigValidationError) ErrorName

func (e ServerConfigValidationError) ErrorName() string

ErrorName returns error name.

func (ServerConfigValidationError) Field

Field function returns field value.

func (ServerConfigValidationError) Key

Key function returns key value.

func (ServerConfigValidationError) Reason

Reason function returns reason value.

type ServerConfig_GRPC

type ServerConfig_GRPC struct {
	Network        string `protobuf:"bytes,1,opt,name=network,json=network,proto3" json:"network"`
	Addr           string `protobuf:"bytes,2,opt,name=addr,json=addr,proto3" json:"addr"`
	TimeoutSeconds int64  `protobuf:"varint,3,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds"`
	// contains filtered or unexported fields
}

func (*ServerConfig_GRPC) Descriptor deprecated

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

Deprecated: Use ServerConfig_GRPC.ProtoReflect.Descriptor instead.

func (*ServerConfig_GRPC) GetAddr

func (x *ServerConfig_GRPC) GetAddr() string

func (*ServerConfig_GRPC) GetNetwork

func (x *ServerConfig_GRPC) GetNetwork() string

func (*ServerConfig_GRPC) GetTimeoutSeconds

func (x *ServerConfig_GRPC) GetTimeoutSeconds() int64

func (*ServerConfig_GRPC) ProtoMessage

func (*ServerConfig_GRPC) ProtoMessage()

func (*ServerConfig_GRPC) ProtoReflect

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

func (*ServerConfig_GRPC) Reset

func (x *ServerConfig_GRPC) Reset()

func (*ServerConfig_GRPC) String

func (x *ServerConfig_GRPC) String() string

func (*ServerConfig_GRPC) Validate

func (m *ServerConfig_GRPC) Validate() error

Validate checks the field values on ServerConfig_GRPC with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ServerConfig_GRPC) ValidateAll

func (m *ServerConfig_GRPC) ValidateAll() error

ValidateAll checks the field values on ServerConfig_GRPC with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServerConfig_GRPCMultiError, or nil if none found.

type ServerConfig_GRPCMultiError

type ServerConfig_GRPCMultiError []error

ServerConfig_GRPCMultiError is an error wrapping multiple validation errors returned by ServerConfig_GRPC.ValidateAll() if the designated constraints aren't met.

func (ServerConfig_GRPCMultiError) AllErrors

func (m ServerConfig_GRPCMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ServerConfig_GRPCMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ServerConfig_GRPCValidationError

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

ServerConfig_GRPCValidationError is the validation error returned by ServerConfig_GRPC.Validate if the designated constraints aren't met.

func (ServerConfig_GRPCValidationError) Cause

Cause function returns cause value.

func (ServerConfig_GRPCValidationError) Error

Error satisfies the builtin error interface

func (ServerConfig_GRPCValidationError) ErrorName

ErrorName returns error name.

func (ServerConfig_GRPCValidationError) Field

Field function returns field value.

func (ServerConfig_GRPCValidationError) Key

Key function returns key value.

func (ServerConfig_GRPCValidationError) Reason

Reason function returns reason value.

type ServerConfig_HTTP

type ServerConfig_HTTP struct {
	Network        string `protobuf:"bytes,1,opt,name=network,json=network,proto3" json:"network"`
	Addr           string `protobuf:"bytes,2,opt,name=addr,json=addr,proto3" json:"addr"`
	TimeoutSeconds int64  `protobuf:"varint,3,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds"`
	// contains filtered or unexported fields
}

func (*ServerConfig_HTTP) Descriptor deprecated

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

Deprecated: Use ServerConfig_HTTP.ProtoReflect.Descriptor instead.

func (*ServerConfig_HTTP) GetAddr

func (x *ServerConfig_HTTP) GetAddr() string

func (*ServerConfig_HTTP) GetNetwork

func (x *ServerConfig_HTTP) GetNetwork() string

func (*ServerConfig_HTTP) GetTimeoutSeconds

func (x *ServerConfig_HTTP) GetTimeoutSeconds() int64

func (*ServerConfig_HTTP) ProtoMessage

func (*ServerConfig_HTTP) ProtoMessage()

func (*ServerConfig_HTTP) ProtoReflect

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

func (*ServerConfig_HTTP) Reset

func (x *ServerConfig_HTTP) Reset()

func (*ServerConfig_HTTP) String

func (x *ServerConfig_HTTP) String() string

func (*ServerConfig_HTTP) Validate

func (m *ServerConfig_HTTP) Validate() error

Validate checks the field values on ServerConfig_HTTP with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ServerConfig_HTTP) ValidateAll

func (m *ServerConfig_HTTP) ValidateAll() error

ValidateAll checks the field values on ServerConfig_HTTP with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServerConfig_HTTPMultiError, or nil if none found.

type ServerConfig_HTTPMultiError

type ServerConfig_HTTPMultiError []error

ServerConfig_HTTPMultiError is an error wrapping multiple validation errors returned by ServerConfig_HTTP.ValidateAll() if the designated constraints aren't met.

func (ServerConfig_HTTPMultiError) AllErrors

func (m ServerConfig_HTTPMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ServerConfig_HTTPMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ServerConfig_HTTPValidationError

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

ServerConfig_HTTPValidationError is the validation error returned by ServerConfig_HTTP.Validate if the designated constraints aren't met.

func (ServerConfig_HTTPValidationError) Cause

Cause function returns cause value.

func (ServerConfig_HTTPValidationError) Error

Error satisfies the builtin error interface

func (ServerConfig_HTTPValidationError) ErrorName

ErrorName returns error name.

func (ServerConfig_HTTPValidationError) Field

Field function returns field value.

func (ServerConfig_HTTPValidationError) Key

Key function returns key value.

func (ServerConfig_HTTPValidationError) Reason

Reason function returns reason value.

type ServerConfig_Trace

type ServerConfig_Trace struct {
	Kind     string `protobuf:"bytes,1,opt,name=kind,json=kind,proto3" json:"kind"`
	Endpoint string `protobuf:"bytes,2,opt,name=endpoint,json=endpoint,proto3" json:"endpoint"`
	Fraction string `protobuf:"bytes,3,opt,name=fraction,json=fraction,proto3" json:"fraction"`
	// contains filtered or unexported fields
}

func (*ServerConfig_Trace) Descriptor deprecated

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

Deprecated: Use ServerConfig_Trace.ProtoReflect.Descriptor instead.

func (*ServerConfig_Trace) GetEndpoint

func (x *ServerConfig_Trace) GetEndpoint() string

func (*ServerConfig_Trace) GetFraction

func (x *ServerConfig_Trace) GetFraction() string

func (*ServerConfig_Trace) GetKind

func (x *ServerConfig_Trace) GetKind() string

func (*ServerConfig_Trace) ProtoMessage

func (*ServerConfig_Trace) ProtoMessage()

func (*ServerConfig_Trace) ProtoReflect

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

func (*ServerConfig_Trace) Reset

func (x *ServerConfig_Trace) Reset()

func (*ServerConfig_Trace) String

func (x *ServerConfig_Trace) String() string

func (*ServerConfig_Trace) Validate

func (m *ServerConfig_Trace) Validate() error

Validate checks the field values on ServerConfig_Trace with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ServerConfig_Trace) ValidateAll

func (m *ServerConfig_Trace) ValidateAll() error

ValidateAll checks the field values on ServerConfig_Trace with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServerConfig_TraceMultiError, or nil if none found.

type ServerConfig_TraceMultiError

type ServerConfig_TraceMultiError []error

ServerConfig_TraceMultiError is an error wrapping multiple validation errors returned by ServerConfig_Trace.ValidateAll() if the designated constraints aren't met.

func (ServerConfig_TraceMultiError) AllErrors

func (m ServerConfig_TraceMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ServerConfig_TraceMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ServerConfig_TraceValidationError

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

ServerConfig_TraceValidationError is the validation error returned by ServerConfig_Trace.Validate if the designated constraints aren't met.

func (ServerConfig_TraceValidationError) Cause

Cause function returns cause value.

func (ServerConfig_TraceValidationError) Error

Error satisfies the builtin error interface

func (ServerConfig_TraceValidationError) ErrorName

ErrorName returns error name.

func (ServerConfig_TraceValidationError) Field

Field function returns field value.

func (ServerConfig_TraceValidationError) Key

Key function returns key value.

func (ServerConfig_TraceValidationError) Reason

Reason function returns reason value.

type StringReply

type StringReply struct {
	Body string `protobuf:"bytes,1,opt,name=body,json=body,proto3" json:"body"`
	// contains filtered or unexported fields
}

------ 只返回字符串,用户三方回调

func (*StringReply) Descriptor deprecated

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

Deprecated: Use StringReply.ProtoReflect.Descriptor instead.

func (*StringReply) GetBody

func (x *StringReply) GetBody() string

func (*StringReply) ProtoMessage

func (*StringReply) ProtoMessage()

func (*StringReply) ProtoReflect

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

func (*StringReply) Reset

func (x *StringReply) Reset()

func (*StringReply) String

func (x *StringReply) String() string

func (*StringReply) StringReply

func (s *StringReply) StringReply() string

func (*StringReply) Validate

func (m *StringReply) Validate() error

Validate checks the field values on StringReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*StringReply) ValidateAll

func (m *StringReply) ValidateAll() error

ValidateAll checks the field values on StringReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StringReplyMultiError, or nil if none found.

type StringReplyMultiError

type StringReplyMultiError []error

StringReplyMultiError is an error wrapping multiple validation errors returned by StringReply.ValidateAll() if the designated constraints aren't met.

func (StringReplyMultiError) AllErrors

func (m StringReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StringReplyMultiError) Error

func (m StringReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StringReplyValidationError

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

StringReplyValidationError is the validation error returned by StringReply.Validate if the designated constraints aren't met.

func (StringReplyValidationError) Cause

Cause function returns cause value.

func (StringReplyValidationError) Error

Error satisfies the builtin error interface

func (StringReplyValidationError) ErrorName

func (e StringReplyValidationError) ErrorName() string

ErrorName returns error name.

func (StringReplyValidationError) Field

Field function returns field value.

func (StringReplyValidationError) Key

Key function returns key value.

func (StringReplyValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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