config

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthConfig        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConfig          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupConfig = fmt.Errorf("proto: unexpected end of group")
)
View Source
var DatabaseDialect_name = map[int32]string{
	0: "Unspecified",
	1: "Postgre",
	2: "MySQL",
	3: "SQLite3",
}
View Source
var DatabaseDialect_value = map[string]int32{
	"Unspecified": 0,
	"Postgre":     1,
	"MySQL":       2,
	"SQLite3":     3,
}

Functions

func RegisterConfigServiceServer

func RegisterConfigServiceServer(s *grpc.Server, srv ConfigServiceServer)

Types

type ConfigServiceClient

type ConfigServiceClient interface {
	Get(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Configuration, error)
	Set(ctx context.Context, in *Configuration, opts ...grpc.CallOption) (*empty.Empty, error)
}

ConfigServiceClient is the client API for ConfigService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewConfigServiceClient

func NewConfigServiceClient(cc *grpc.ClientConn) ConfigServiceClient

type ConfigServiceServer

type ConfigServiceServer interface {
	Get(context.Context, *empty.Empty) (*Configuration, error)
	Set(context.Context, *Configuration) (*empty.Empty, error)
}

ConfigServiceServer is the server API for ConfigService service.

type Configuration

type Configuration struct {
	Database             *DatabaseConfiguration `protobuf:"bytes,3,opt,name=database,proto3" json:"database,omitempty"`
	Email                *EmailConfiguration    `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	Features             *Features              `protobuf:"bytes,5,opt,name=features,proto3" json:"features,omitempty"`
	Services             *Services              `protobuf:"bytes,6,opt,name=services,proto3" json:"services,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*Configuration) Descriptor

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

func (*Configuration) GetDatabase

func (m *Configuration) GetDatabase() *DatabaseConfiguration

func (*Configuration) GetEmail

func (m *Configuration) GetEmail() *EmailConfiguration

func (*Configuration) GetFeatures

func (m *Configuration) GetFeatures() *Features

func (*Configuration) GetServices

func (m *Configuration) GetServices() *Services

func (*Configuration) Marshal

func (m *Configuration) Marshal() (dAtA []byte, err error)

func (*Configuration) MarshalTo

func (m *Configuration) MarshalTo(dAtA []byte) (int, error)

func (*Configuration) MarshalToSizedBuffer

func (m *Configuration) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) Reset

func (m *Configuration) Reset()

func (*Configuration) Size

func (m *Configuration) Size() (n int)

func (*Configuration) String

func (m *Configuration) String() string

func (*Configuration) Unmarshal

func (m *Configuration) Unmarshal(dAtA []byte) error

func (*Configuration) Validate

func (m *Configuration) Validate() error

Validate is disabled for Configuration. This method will always return nil.

func (*Configuration) XXX_DiscardUnknown

func (m *Configuration) XXX_DiscardUnknown()

func (*Configuration) XXX_Marshal

func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Configuration) XXX_Merge

func (m *Configuration) XXX_Merge(src proto.Message)

func (*Configuration) XXX_Size

func (m *Configuration) XXX_Size() int

func (*Configuration) XXX_Unmarshal

func (m *Configuration) XXX_Unmarshal(b []byte) error

type ConfigurationValidationError

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

ConfigurationValidationError is the validation error returned by Configuration.Validate if the designated constraints aren't met.

func (ConfigurationValidationError) Cause

Cause function returns cause value.

func (ConfigurationValidationError) Error

Error satisfies the builtin error interface

func (ConfigurationValidationError) ErrorName

func (e ConfigurationValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigurationValidationError) Field

Field function returns field value.

func (ConfigurationValidationError) Key

Key function returns key value.

func (ConfigurationValidationError) Reason

Reason function returns reason value.

type DatabaseConfiguration

type DatabaseConfiguration struct {
	Dialect              DatabaseDialect `` /* 175-byte string literal not displayed */
	Host                 string          `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty" yaml:",omitempty" valid:"host"`
	Port                 uint32          `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty" yaml:",omitempty" default:"5432" valid:"port"`
	Username             string          `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty" valid:"alphanum,required"`
	Password             string          `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty" valid:"alphanum,required"`
	Database             string          `protobuf:"bytes,6,opt,name=database,proto3" json:"database,omitempty" valid:"type(string),required"`
	Charset              string          `protobuf:"bytes,7,opt,name=charset,proto3" json:"charset,omitempty" yaml:",omitempty" default:"utf8"`
	Utc                  bool            `protobuf:"varint,8,opt,name=utc,proto3" json:"utc,omitempty" yaml:",omitempty" default:"true"`
	Logging              bool            `protobuf:"varint,9,opt,name=logging,proto3" json:"logging,omitempty" yaml:",omitempty" default:"false"`
	Singularize          bool            `protobuf:"varint,10,opt,name=singularize,proto3" json:"singularize,omitempty" yaml:",omitempty" default:"false"`
	MaxOpenConns         uint32          `` /* 145-byte string literal not displayed */
	MaxIdleConns         uint32          `` /* 145-byte string literal not displayed */
	ConnMaxLifetime      *time.Duration  `` /* 169-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*DatabaseConfiguration) Descriptor

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

func (*DatabaseConfiguration) GetCharset

func (m *DatabaseConfiguration) GetCharset() string

func (*DatabaseConfiguration) GetConnMaxLifetime

func (m *DatabaseConfiguration) GetConnMaxLifetime() *time.Duration

func (*DatabaseConfiguration) GetDatabase

func (m *DatabaseConfiguration) GetDatabase() string

func (*DatabaseConfiguration) GetDialect

func (m *DatabaseConfiguration) GetDialect() DatabaseDialect

func (*DatabaseConfiguration) GetHost

func (m *DatabaseConfiguration) GetHost() string

func (*DatabaseConfiguration) GetLogging

func (m *DatabaseConfiguration) GetLogging() bool

func (*DatabaseConfiguration) GetMaxIdleConns

func (m *DatabaseConfiguration) GetMaxIdleConns() uint32

func (*DatabaseConfiguration) GetMaxOpenConns

func (m *DatabaseConfiguration) GetMaxOpenConns() uint32

func (*DatabaseConfiguration) GetPassword

func (m *DatabaseConfiguration) GetPassword() string

func (*DatabaseConfiguration) GetPort

func (m *DatabaseConfiguration) GetPort() uint32

func (*DatabaseConfiguration) GetSingularize

func (m *DatabaseConfiguration) GetSingularize() bool

func (*DatabaseConfiguration) GetUsername

func (m *DatabaseConfiguration) GetUsername() string

func (*DatabaseConfiguration) GetUtc

func (m *DatabaseConfiguration) GetUtc() bool

func (*DatabaseConfiguration) Marshal

func (m *DatabaseConfiguration) Marshal() (dAtA []byte, err error)

func (*DatabaseConfiguration) MarshalTo

func (m *DatabaseConfiguration) MarshalTo(dAtA []byte) (int, error)

func (*DatabaseConfiguration) MarshalToSizedBuffer

func (m *DatabaseConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DatabaseConfiguration) ProtoMessage

func (*DatabaseConfiguration) ProtoMessage()

func (*DatabaseConfiguration) Reset

func (m *DatabaseConfiguration) Reset()

func (*DatabaseConfiguration) Size

func (m *DatabaseConfiguration) Size() (n int)

func (*DatabaseConfiguration) String

func (m *DatabaseConfiguration) String() string

func (*DatabaseConfiguration) URL

func (d *DatabaseConfiguration) URL() (url string, err error)

URL returns a connection string for the database.

func (*DatabaseConfiguration) Unmarshal

func (m *DatabaseConfiguration) Unmarshal(dAtA []byte) error

func (*DatabaseConfiguration) Validate

func (m *DatabaseConfiguration) Validate() error

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

func (*DatabaseConfiguration) XXX_DiscardUnknown

func (m *DatabaseConfiguration) XXX_DiscardUnknown()

func (*DatabaseConfiguration) XXX_Marshal

func (m *DatabaseConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DatabaseConfiguration) XXX_Merge

func (m *DatabaseConfiguration) XXX_Merge(src proto.Message)

func (*DatabaseConfiguration) XXX_Size

func (m *DatabaseConfiguration) XXX_Size() int

func (*DatabaseConfiguration) XXX_Unmarshal

func (m *DatabaseConfiguration) XXX_Unmarshal(b []byte) error

type DatabaseConfigurationValidationError

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

DatabaseConfigurationValidationError is the validation error returned by DatabaseConfiguration.Validate if the designated constraints aren't met.

func (DatabaseConfigurationValidationError) Cause

Cause function returns cause value.

func (DatabaseConfigurationValidationError) Error

Error satisfies the builtin error interface

func (DatabaseConfigurationValidationError) ErrorName

ErrorName returns error name.

func (DatabaseConfigurationValidationError) Field

Field function returns field value.

func (DatabaseConfigurationValidationError) Key

Key function returns key value.

func (DatabaseConfigurationValidationError) Reason

Reason function returns reason value.

type DatabaseDialect

type DatabaseDialect int32
const (
	DatabaseDialect_Unspecified DatabaseDialect = 0
	DatabaseDialect_Postgre     DatabaseDialect = 1
	DatabaseDialect_MySQL       DatabaseDialect = 2
	DatabaseDialect_SQLite3     DatabaseDialect = 3
)

func (DatabaseDialect) EnumDescriptor

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

func (DatabaseDialect) String

func (x DatabaseDialect) String() string

type EmailConfiguration

type EmailConfiguration struct {
	Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" yaml:"username"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	EmailServer          string   `protobuf:"bytes,3,opt,name=email_server,json=emailServer,proto3" json:"email_server,omitempty" yaml:"email_server"`
	Port                 uint32   `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty" yaml:",omitempty" default:"587" valid:"port"`
	From                 string   `protobuf:"bytes,5,opt,name=from,proto3" json:"from,omitempty" valid:"email,optional"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EmailConfiguration) Descriptor

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

func (*EmailConfiguration) GetEmailServer

func (m *EmailConfiguration) GetEmailServer() string

func (*EmailConfiguration) GetFrom

func (m *EmailConfiguration) GetFrom() string

func (*EmailConfiguration) GetPassword

func (m *EmailConfiguration) GetPassword() string

func (*EmailConfiguration) GetPort

func (m *EmailConfiguration) GetPort() uint32

func (*EmailConfiguration) GetUsername

func (m *EmailConfiguration) GetUsername() string

func (*EmailConfiguration) Marshal

func (m *EmailConfiguration) Marshal() (dAtA []byte, err error)

func (*EmailConfiguration) MarshalTo

func (m *EmailConfiguration) MarshalTo(dAtA []byte) (int, error)

func (*EmailConfiguration) MarshalToSizedBuffer

func (m *EmailConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EmailConfiguration) ProtoMessage

func (*EmailConfiguration) ProtoMessage()

func (*EmailConfiguration) Reset

func (m *EmailConfiguration) Reset()

func (*EmailConfiguration) Size

func (m *EmailConfiguration) Size() (n int)

func (*EmailConfiguration) String

func (m *EmailConfiguration) String() string

func (*EmailConfiguration) Unmarshal

func (m *EmailConfiguration) Unmarshal(dAtA []byte) error

func (*EmailConfiguration) Validate

func (m *EmailConfiguration) Validate() error

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

func (*EmailConfiguration) XXX_DiscardUnknown

func (m *EmailConfiguration) XXX_DiscardUnknown()

func (*EmailConfiguration) XXX_Marshal

func (m *EmailConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EmailConfiguration) XXX_Merge

func (m *EmailConfiguration) XXX_Merge(src proto.Message)

func (*EmailConfiguration) XXX_Size

func (m *EmailConfiguration) XXX_Size() int

func (*EmailConfiguration) XXX_Unmarshal

func (m *EmailConfiguration) XXX_Unmarshal(b []byte) error

type EmailConfigurationValidationError

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

EmailConfigurationValidationError is the validation error returned by EmailConfiguration.Validate if the designated constraints aren't met.

func (EmailConfigurationValidationError) Cause

Cause function returns cause value.

func (EmailConfigurationValidationError) Error

Error satisfies the builtin error interface

func (EmailConfigurationValidationError) ErrorName

ErrorName returns error name.

func (EmailConfigurationValidationError) Field

Field function returns field value.

func (EmailConfigurationValidationError) Key

Key function returns key value.

func (EmailConfigurationValidationError) Reason

Reason function returns reason value.

type Features

type Features struct {
	Metrics              *Features_Metrics   `protobuf:"bytes,1,opt,name=metrics,proto3" json:"metrics,omitempty"`
	Tracing              *Features_Tracing   `protobuf:"bytes,2,opt,name=tracing,proto3" json:"tracing,omitempty"`
	Tls                  *Features_TLS       `protobuf:"bytes,3,opt,name=tls,proto3" json:"tls,omitempty"`
	Validator            *Features_Validator `protobuf:"bytes,4,opt,name=validator,proto3" json:"validator,omitempty"`
	Reqlogs              *Features_Reqlogs   `protobuf:"bytes,5,opt,name=reqlogs,proto3" json:"reqlogs,omitempty"`
	Translogs            *Features_Translogs `protobuf:"bytes,6,opt,name=translogs,proto3" json:"translogs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*Features) Descriptor

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

func (*Features) GetMetrics

func (m *Features) GetMetrics() *Features_Metrics

func (*Features) GetReqlogs

func (m *Features) GetReqlogs() *Features_Reqlogs

func (*Features) GetTls

func (m *Features) GetTls() *Features_TLS

func (*Features) GetTracing

func (m *Features) GetTracing() *Features_Tracing

func (*Features) GetTranslogs

func (m *Features) GetTranslogs() *Features_Translogs

func (*Features) GetValidator

func (m *Features) GetValidator() *Features_Validator

func (*Features) Marshal

func (m *Features) Marshal() (dAtA []byte, err error)

func (*Features) MarshalTo

func (m *Features) MarshalTo(dAtA []byte) (int, error)

func (*Features) MarshalToSizedBuffer

func (m *Features) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Features) ProtoMessage

func (*Features) ProtoMessage()

func (*Features) Reset

func (m *Features) Reset()

func (*Features) Size

func (m *Features) Size() (n int)

func (*Features) String

func (m *Features) String() string

func (*Features) Unmarshal

func (m *Features) Unmarshal(dAtA []byte) error

func (*Features) Validate

func (m *Features) Validate() error

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

func (*Features) XXX_DiscardUnknown

func (m *Features) XXX_DiscardUnknown()

func (*Features) XXX_Marshal

func (m *Features) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Features) XXX_Merge

func (m *Features) XXX_Merge(src proto.Message)

func (*Features) XXX_Size

func (m *Features) XXX_Size() int

func (*Features) XXX_Unmarshal

func (m *Features) XXX_Unmarshal(b []byte) error

type FeaturesValidationError

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

FeaturesValidationError is the validation error returned by Features.Validate if the designated constraints aren't met.

func (FeaturesValidationError) Cause

func (e FeaturesValidationError) Cause() error

Cause function returns cause value.

func (FeaturesValidationError) Error

func (e FeaturesValidationError) Error() string

Error satisfies the builtin error interface

func (FeaturesValidationError) ErrorName

func (e FeaturesValidationError) ErrorName() string

ErrorName returns error name.

func (FeaturesValidationError) Field

func (e FeaturesValidationError) Field() string

Field function returns field value.

func (FeaturesValidationError) Key

func (e FeaturesValidationError) Key() bool

Key function returns key value.

func (FeaturesValidationError) Reason

func (e FeaturesValidationError) Reason() string

Reason function returns reason value.

type Features_Metrics

type Features_Metrics struct {
	Enabled              bool     `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty" yaml:",omitempty" default:"false"`
	Address              string   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	FlushInterval        uint64   `` /* 152-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Features_Metrics) Descriptor

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

func (*Features_Metrics) GetAddress

func (m *Features_Metrics) GetAddress() string

func (*Features_Metrics) GetEnabled

func (m *Features_Metrics) GetEnabled() bool

func (*Features_Metrics) GetFlushInterval

func (m *Features_Metrics) GetFlushInterval() uint64

func (*Features_Metrics) Marshal

func (m *Features_Metrics) Marshal() (dAtA []byte, err error)

func (*Features_Metrics) MarshalTo

func (m *Features_Metrics) MarshalTo(dAtA []byte) (int, error)

func (*Features_Metrics) MarshalToSizedBuffer

func (m *Features_Metrics) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Features_Metrics) ProtoMessage

func (*Features_Metrics) ProtoMessage()

func (*Features_Metrics) Reset

func (m *Features_Metrics) Reset()

func (*Features_Metrics) Size

func (m *Features_Metrics) Size() (n int)

func (*Features_Metrics) String

func (m *Features_Metrics) String() string

func (*Features_Metrics) Unmarshal

func (m *Features_Metrics) Unmarshal(dAtA []byte) error

func (*Features_Metrics) Validate

func (m *Features_Metrics) Validate() error

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

func (*Features_Metrics) XXX_DiscardUnknown

func (m *Features_Metrics) XXX_DiscardUnknown()

func (*Features_Metrics) XXX_Marshal

func (m *Features_Metrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Features_Metrics) XXX_Merge

func (m *Features_Metrics) XXX_Merge(src proto.Message)

func (*Features_Metrics) XXX_Size

func (m *Features_Metrics) XXX_Size() int

func (*Features_Metrics) XXX_Unmarshal

func (m *Features_Metrics) XXX_Unmarshal(b []byte) error

type Features_MetricsValidationError

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

Features_MetricsValidationError is the validation error returned by Features_Metrics.Validate if the designated constraints aren't met.

func (Features_MetricsValidationError) Cause

Cause function returns cause value.

func (Features_MetricsValidationError) Error

Error satisfies the builtin error interface

func (Features_MetricsValidationError) ErrorName

ErrorName returns error name.

func (Features_MetricsValidationError) Field

Field function returns field value.

func (Features_MetricsValidationError) Key

Key function returns key value.

func (Features_MetricsValidationError) Reason

Reason function returns reason value.

type Features_Reqlogs

type Features_Reqlogs struct {
	Enabled              bool     `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty" yaml:",omitempty" default:"false"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Features_Reqlogs) Descriptor

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

func (*Features_Reqlogs) GetEnabled

func (m *Features_Reqlogs) GetEnabled() bool

func (*Features_Reqlogs) Marshal

func (m *Features_Reqlogs) Marshal() (dAtA []byte, err error)

func (*Features_Reqlogs) MarshalTo

func (m *Features_Reqlogs) MarshalTo(dAtA []byte) (int, error)

func (*Features_Reqlogs) MarshalToSizedBuffer

func (m *Features_Reqlogs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Features_Reqlogs) ProtoMessage

func (*Features_Reqlogs) ProtoMessage()

func (*Features_Reqlogs) Reset

func (m *Features_Reqlogs) Reset()

func (*Features_Reqlogs) Size

func (m *Features_Reqlogs) Size() (n int)

func (*Features_Reqlogs) String

func (m *Features_Reqlogs) String() string

func (*Features_Reqlogs) Unmarshal

func (m *Features_Reqlogs) Unmarshal(dAtA []byte) error

func (*Features_Reqlogs) Validate

func (m *Features_Reqlogs) Validate() error

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

func (*Features_Reqlogs) XXX_DiscardUnknown

func (m *Features_Reqlogs) XXX_DiscardUnknown()

func (*Features_Reqlogs) XXX_Marshal

func (m *Features_Reqlogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Features_Reqlogs) XXX_Merge

func (m *Features_Reqlogs) XXX_Merge(src proto.Message)

func (*Features_Reqlogs) XXX_Size

func (m *Features_Reqlogs) XXX_Size() int

func (*Features_Reqlogs) XXX_Unmarshal

func (m *Features_Reqlogs) XXX_Unmarshal(b []byte) error

type Features_ReqlogsValidationError

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

Features_ReqlogsValidationError is the validation error returned by Features_Reqlogs.Validate if the designated constraints aren't met.

func (Features_ReqlogsValidationError) Cause

Cause function returns cause value.

func (Features_ReqlogsValidationError) Error

Error satisfies the builtin error interface

func (Features_ReqlogsValidationError) ErrorName

ErrorName returns error name.

func (Features_ReqlogsValidationError) Field

Field function returns field value.

func (Features_ReqlogsValidationError) Key

Key function returns key value.

func (Features_ReqlogsValidationError) Reason

Reason function returns reason value.

type Features_TLS

type Features_TLS struct {
	Enabled              bool     `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty" yaml:",omitempty" default:"false"`
	CertFile             string   `` /* 132-byte string literal not displayed */
	KeyFile              string   `` /* 128-byte string literal not displayed */
	CaFile               string   `protobuf:"bytes,4,opt,name=ca_file,json=caFile,proto3" json:"ca_file,omitempty" yaml:"ca_file" valid:"type(string),required"`
	Servername           string   `protobuf:"bytes,5,opt,name=servername,proto3" json:"servername,omitempty" yaml:",omitempty" default:"'*'"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Features_TLS) Descriptor

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

func (*Features_TLS) GetCaFile

func (m *Features_TLS) GetCaFile() string

func (*Features_TLS) GetCertFile

func (m *Features_TLS) GetCertFile() string

func (*Features_TLS) GetEnabled

func (m *Features_TLS) GetEnabled() bool

func (*Features_TLS) GetKeyFile

func (m *Features_TLS) GetKeyFile() string

func (*Features_TLS) GetServername

func (m *Features_TLS) GetServername() string

func (*Features_TLS) Marshal

func (m *Features_TLS) Marshal() (dAtA []byte, err error)

func (*Features_TLS) MarshalTo

func (m *Features_TLS) MarshalTo(dAtA []byte) (int, error)

func (*Features_TLS) MarshalToSizedBuffer

func (m *Features_TLS) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Features_TLS) ProtoMessage

func (*Features_TLS) ProtoMessage()

func (*Features_TLS) Reset

func (m *Features_TLS) Reset()

func (*Features_TLS) Size

func (m *Features_TLS) Size() (n int)

func (*Features_TLS) String

func (m *Features_TLS) String() string

func (*Features_TLS) Unmarshal

func (m *Features_TLS) Unmarshal(dAtA []byte) error

func (*Features_TLS) Validate

func (m *Features_TLS) Validate() error

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

func (*Features_TLS) XXX_DiscardUnknown

func (m *Features_TLS) XXX_DiscardUnknown()

func (*Features_TLS) XXX_Marshal

func (m *Features_TLS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Features_TLS) XXX_Merge

func (m *Features_TLS) XXX_Merge(src proto.Message)

func (*Features_TLS) XXX_Size

func (m *Features_TLS) XXX_Size() int

func (*Features_TLS) XXX_Unmarshal

func (m *Features_TLS) XXX_Unmarshal(b []byte) error

type Features_TLSValidationError

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

Features_TLSValidationError is the validation error returned by Features_TLS.Validate if the designated constraints aren't met.

func (Features_TLSValidationError) Cause

Cause function returns cause value.

func (Features_TLSValidationError) Error

Error satisfies the builtin error interface

func (Features_TLSValidationError) ErrorName

func (e Features_TLSValidationError) ErrorName() string

ErrorName returns error name.

func (Features_TLSValidationError) Field

Field function returns field value.

func (Features_TLSValidationError) Key

Key function returns key value.

func (Features_TLSValidationError) Reason

Reason function returns reason value.

type Features_Tracing

type Features_Tracing struct {
	Enabled              bool     `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty" yaml:",omitempty" default:"false"`
	Address              string   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	FlushInterval        uint64   `` /* 152-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Features_Tracing) Descriptor

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

func (*Features_Tracing) GetAddress

func (m *Features_Tracing) GetAddress() string

func (*Features_Tracing) GetEnabled

func (m *Features_Tracing) GetEnabled() bool

func (*Features_Tracing) GetFlushInterval

func (m *Features_Tracing) GetFlushInterval() uint64

func (*Features_Tracing) Marshal

func (m *Features_Tracing) Marshal() (dAtA []byte, err error)

func (*Features_Tracing) MarshalTo

func (m *Features_Tracing) MarshalTo(dAtA []byte) (int, error)

func (*Features_Tracing) MarshalToSizedBuffer

func (m *Features_Tracing) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Features_Tracing) ProtoMessage

func (*Features_Tracing) ProtoMessage()

func (*Features_Tracing) Reset

func (m *Features_Tracing) Reset()

func (*Features_Tracing) Size

func (m *Features_Tracing) Size() (n int)

func (*Features_Tracing) String

func (m *Features_Tracing) String() string

func (*Features_Tracing) Unmarshal

func (m *Features_Tracing) Unmarshal(dAtA []byte) error

func (*Features_Tracing) Validate

func (m *Features_Tracing) Validate() error

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

func (*Features_Tracing) XXX_DiscardUnknown

func (m *Features_Tracing) XXX_DiscardUnknown()

func (*Features_Tracing) XXX_Marshal

func (m *Features_Tracing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Features_Tracing) XXX_Merge

func (m *Features_Tracing) XXX_Merge(src proto.Message)

func (*Features_Tracing) XXX_Size

func (m *Features_Tracing) XXX_Size() int

func (*Features_Tracing) XXX_Unmarshal

func (m *Features_Tracing) XXX_Unmarshal(b []byte) error

type Features_TracingValidationError

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

Features_TracingValidationError is the validation error returned by Features_Tracing.Validate if the designated constraints aren't met.

func (Features_TracingValidationError) Cause

Cause function returns cause value.

func (Features_TracingValidationError) Error

Error satisfies the builtin error interface

func (Features_TracingValidationError) ErrorName

ErrorName returns error name.

func (Features_TracingValidationError) Field

Field function returns field value.

func (Features_TracingValidationError) Key

Key function returns key value.

func (Features_TracingValidationError) Reason

Reason function returns reason value.

type Features_Translogs

type Features_Translogs struct {
	Enabled              bool     `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty" yaml:",omitempty" default:"false"`
	Topic                string   `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Features_Translogs) Descriptor

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

func (*Features_Translogs) GetEnabled

func (m *Features_Translogs) GetEnabled() bool

func (*Features_Translogs) GetTopic

func (m *Features_Translogs) GetTopic() string

func (*Features_Translogs) Marshal

func (m *Features_Translogs) Marshal() (dAtA []byte, err error)

func (*Features_Translogs) MarshalTo

func (m *Features_Translogs) MarshalTo(dAtA []byte) (int, error)

func (*Features_Translogs) MarshalToSizedBuffer

func (m *Features_Translogs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Features_Translogs) ProtoMessage

func (*Features_Translogs) ProtoMessage()

func (*Features_Translogs) Reset

func (m *Features_Translogs) Reset()

func (*Features_Translogs) Size

func (m *Features_Translogs) Size() (n int)

func (*Features_Translogs) String

func (m *Features_Translogs) String() string

func (*Features_Translogs) Unmarshal

func (m *Features_Translogs) Unmarshal(dAtA []byte) error

func (*Features_Translogs) Validate

func (m *Features_Translogs) Validate() error

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

func (*Features_Translogs) XXX_DiscardUnknown

func (m *Features_Translogs) XXX_DiscardUnknown()

func (*Features_Translogs) XXX_Marshal

func (m *Features_Translogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Features_Translogs) XXX_Merge

func (m *Features_Translogs) XXX_Merge(src proto.Message)

func (*Features_Translogs) XXX_Size

func (m *Features_Translogs) XXX_Size() int

func (*Features_Translogs) XXX_Unmarshal

func (m *Features_Translogs) XXX_Unmarshal(b []byte) error

type Features_TranslogsValidationError

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

Features_TranslogsValidationError is the validation error returned by Features_Translogs.Validate if the designated constraints aren't met.

func (Features_TranslogsValidationError) Cause

Cause function returns cause value.

func (Features_TranslogsValidationError) Error

Error satisfies the builtin error interface

func (Features_TranslogsValidationError) ErrorName

ErrorName returns error name.

func (Features_TranslogsValidationError) Field

Field function returns field value.

func (Features_TranslogsValidationError) Key

Key function returns key value.

func (Features_TranslogsValidationError) Reason

Reason function returns reason value.

type Features_Validator

type Features_Validator struct {
	Enabled              bool     `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty" yaml:",omitempty" default:"false"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Features_Validator) Descriptor

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

func (*Features_Validator) GetEnabled

func (m *Features_Validator) GetEnabled() bool

func (*Features_Validator) Marshal

func (m *Features_Validator) Marshal() (dAtA []byte, err error)

func (*Features_Validator) MarshalTo

func (m *Features_Validator) MarshalTo(dAtA []byte) (int, error)

func (*Features_Validator) MarshalToSizedBuffer

func (m *Features_Validator) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Features_Validator) ProtoMessage

func (*Features_Validator) ProtoMessage()

func (*Features_Validator) Reset

func (m *Features_Validator) Reset()

func (*Features_Validator) Size

func (m *Features_Validator) Size() (n int)

func (*Features_Validator) String

func (m *Features_Validator) String() string

func (*Features_Validator) Unmarshal

func (m *Features_Validator) Unmarshal(dAtA []byte) error

func (*Features_Validator) Validate

func (m *Features_Validator) Validate() error

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

func (*Features_Validator) XXX_DiscardUnknown

func (m *Features_Validator) XXX_DiscardUnknown()

func (*Features_Validator) XXX_Marshal

func (m *Features_Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Features_Validator) XXX_Merge

func (m *Features_Validator) XXX_Merge(src proto.Message)

func (*Features_Validator) XXX_Size

func (m *Features_Validator) XXX_Size() int

func (*Features_Validator) XXX_Unmarshal

func (m *Features_Validator) XXX_Unmarshal(b []byte) error

type Features_ValidatorValidationError

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

Features_ValidatorValidationError is the validation error returned by Features_Validator.Validate if the designated constraints aren't met.

func (Features_ValidatorValidationError) Cause

Cause function returns cause value.

func (Features_ValidatorValidationError) Error

Error satisfies the builtin error interface

func (Features_ValidatorValidationError) ErrorName

ErrorName returns error name.

func (Features_ValidatorValidationError) Field

Field function returns field value.

func (Features_ValidatorValidationError) Key

Key function returns key value.

func (Features_ValidatorValidationError) Reason

Reason function returns reason value.

type Service

type Service struct {
	Endpoint             string   `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty" yaml:"endpoint" required:"true"`
	Version              string   `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty" yaml:"version" default:"v0.1.0"`
	Deadline             uint32   `protobuf:"varint,3,opt,name=deadline,proto3" json:"deadline,omitempty" yaml:",omitempty" default:"10"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Service) Descriptor

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

func (*Service) GetDeadline

func (m *Service) GetDeadline() uint32

func (*Service) GetEndpoint

func (m *Service) GetEndpoint() string

func (*Service) GetVersion

func (m *Service) GetVersion() string

func (*Service) Marshal

func (m *Service) Marshal() (dAtA []byte, err error)

func (*Service) MarshalTo

func (m *Service) MarshalTo(dAtA []byte) (int, error)

func (*Service) MarshalToSizedBuffer

func (m *Service) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) Reset

func (m *Service) Reset()

func (*Service) Size

func (m *Service) Size() (n int)

func (*Service) String

func (m *Service) String() string

func (*Service) Unmarshal

func (m *Service) Unmarshal(dAtA []byte) error

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.

func (*Service) XXX_DiscardUnknown

func (m *Service) XXX_DiscardUnknown()

func (*Service) XXX_Marshal

func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Service) XXX_Merge

func (m *Service) XXX_Merge(src proto.Message)

func (*Service) XXX_Size

func (m *Service) XXX_Size() int

func (*Service) XXX_Unmarshal

func (m *Service) XXX_Unmarshal(b []byte) error

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.

type Services

type Services struct {
	Account              *Service `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Greeter              *Service `protobuf:"bytes,2,opt,name=greeter,proto3" json:"greeter,omitempty"`
	Emailer              *Service `protobuf:"bytes,3,opt,name=emailer,proto3" json:"emailer,omitempty"`
	Recorder             *Service `protobuf:"bytes,4,opt,name=recorder,proto3" json:"recorder,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Services) Descriptor

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

func (*Services) GetAccount

func (m *Services) GetAccount() *Service

func (*Services) GetEmailer

func (m *Services) GetEmailer() *Service

func (*Services) GetGreeter

func (m *Services) GetGreeter() *Service

func (*Services) GetRecorder

func (m *Services) GetRecorder() *Service

func (*Services) Marshal

func (m *Services) Marshal() (dAtA []byte, err error)

func (*Services) MarshalTo

func (m *Services) MarshalTo(dAtA []byte) (int, error)

func (*Services) MarshalToSizedBuffer

func (m *Services) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Services) ProtoMessage

func (*Services) ProtoMessage()

func (*Services) Reset

func (m *Services) Reset()

func (*Services) Size

func (m *Services) Size() (n int)

func (*Services) String

func (m *Services) String() string

func (*Services) Unmarshal

func (m *Services) Unmarshal(dAtA []byte) error

func (*Services) Validate

func (m *Services) Validate() error

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

func (*Services) XXX_DiscardUnknown

func (m *Services) XXX_DiscardUnknown()

func (*Services) XXX_Marshal

func (m *Services) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Services) XXX_Merge

func (m *Services) XXX_Merge(src proto.Message)

func (*Services) XXX_Size

func (m *Services) XXX_Size() int

func (*Services) XXX_Unmarshal

func (m *Services) XXX_Unmarshal(b []byte) error

type ServicesValidationError

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

ServicesValidationError is the validation error returned by Services.Validate if the designated constraints aren't met.

func (ServicesValidationError) Cause

func (e ServicesValidationError) Cause() error

Cause function returns cause value.

func (ServicesValidationError) Error

func (e ServicesValidationError) Error() string

Error satisfies the builtin error interface

func (ServicesValidationError) ErrorName

func (e ServicesValidationError) ErrorName() string

ErrorName returns error name.

func (ServicesValidationError) Field

func (e ServicesValidationError) Field() string

Field function returns field value.

func (ServicesValidationError) Key

func (e ServicesValidationError) Key() bool

Key function returns key value.

func (ServicesValidationError) Reason

func (e ServicesValidationError) Reason() string

Reason function returns reason value.

type UnimplementedConfigServiceServer

type UnimplementedConfigServiceServer struct {
}

UnimplementedConfigServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedConfigServiceServer) Get

func (*UnimplementedConfigServiceServer) Set

Jump to

Keyboard shortcuts

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