Documentation
¶
Index ¶
- Variables
- type Admin
- func (*Admin) Descriptor() ([]byte, []int)
- func (this *Admin) Equal(that interface{}) bool
- func (m *Admin) GetBind() *common.Address
- func (this *Admin) GoString() string
- func (m *Admin) Marshal() (dAtA []byte, err error)
- func (m *Admin) MarshalJSON() ([]byte, error)
- func (m *Admin) MarshalTo(dAtA []byte) (int, error)
- func (m *Admin) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Admin) ProtoMessage()
- func (m *Admin) Reset()
- func (m *Admin) Size() (n int)
- func (m *Admin) String() string
- func (m *Admin) Unmarshal(dAtA []byte) error
- func (m *Admin) UnmarshalJSON(b []byte) error
- func (m *Admin) Validate() error
- func (this *Admin) VerboseEqual(that interface{}) error
- func (m *Admin) XXX_DiscardUnknown()
- func (m *Admin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Admin) XXX_Merge(src proto.Message)
- func (m *Admin) XXX_Size() int
- func (m *Admin) XXX_Unmarshal(b []byte) error
- type AdminValidationError
- type Bootstrap
- func (*Bootstrap) Descriptor() ([]byte, []int)
- func (this *Bootstrap) Equal(that interface{}) bool
- func (m *Bootstrap) GetAdmin() *Admin
- func (m *Bootstrap) GetDynamicSourceConfig() *ConfigSource
- func (m *Bootstrap) GetInstance() *common.Instance
- func (m *Bootstrap) GetLog() Log
- func (m *Bootstrap) GetStaticServices() []*StaticService
- func (m *Bootstrap) GetStats() Stats
- func (this *Bootstrap) GoString() string
- func (m *Bootstrap) Marshal() (dAtA []byte, err error)
- func (m *Bootstrap) MarshalJSON() ([]byte, error)
- func (m *Bootstrap) MarshalTo(dAtA []byte) (int, error)
- func (m *Bootstrap) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Bootstrap) ProtoMessage()
- func (m *Bootstrap) Reset()
- func (m *Bootstrap) Size() (n int)
- func (m *Bootstrap) String() string
- func (m *Bootstrap) Unmarshal(dAtA []byte) error
- func (m *Bootstrap) UnmarshalJSON(b []byte) error
- func (m *Bootstrap) Validate() error
- func (this *Bootstrap) VerboseEqual(that interface{}) error
- func (m *Bootstrap) XXX_DiscardUnknown()
- func (m *Bootstrap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bootstrap) XXX_Merge(src proto.Message)
- func (m *Bootstrap) XXX_Size() int
- func (m *Bootstrap) XXX_Unmarshal(b []byte) error
- type BootstrapValidationError
- type ConfigSource
- func (*ConfigSource) Descriptor() ([]byte, []int)
- func (this *ConfigSource) Equal(that interface{}) bool
- func (m *ConfigSource) GetEndpoint() string
- func (this *ConfigSource) GoString() string
- func (m *ConfigSource) Marshal() (dAtA []byte, err error)
- func (m *ConfigSource) MarshalJSON() ([]byte, error)
- func (m *ConfigSource) MarshalTo(dAtA []byte) (int, error)
- func (m *ConfigSource) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConfigSource) ProtoMessage()
- func (m *ConfigSource) Reset()
- func (m *ConfigSource) Size() (n int)
- func (m *ConfigSource) String() string
- func (m *ConfigSource) Unmarshal(dAtA []byte) error
- func (m *ConfigSource) UnmarshalJSON(b []byte) error
- func (m *ConfigSource) Validate() error
- func (this *ConfigSource) VerboseEqual(that interface{}) error
- func (m *ConfigSource) XXX_DiscardUnknown()
- func (m *ConfigSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigSource) XXX_Merge(src proto.Message)
- func (m *ConfigSource) XXX_Size() int
- func (m *ConfigSource) XXX_Unmarshal(b []byte) error
- type ConfigSourceValidationError
- func (e ConfigSourceValidationError) Cause() error
- func (e ConfigSourceValidationError) Error() string
- func (e ConfigSourceValidationError) ErrorName() string
- func (e ConfigSourceValidationError) Field() string
- func (e ConfigSourceValidationError) Key() bool
- func (e ConfigSourceValidationError) Reason() string
- type Log
- func (*Log) Descriptor() ([]byte, []int)
- func (this *Log) Equal(that interface{}) bool
- func (m *Log) GetLevel() Log_Level
- func (m *Log) GetOutput() Log_Output
- func (this *Log) GoString() string
- func (m *Log) Marshal() (dAtA []byte, err error)
- func (m *Log) MarshalJSON() ([]byte, error)
- func (m *Log) MarshalTo(dAtA []byte) (int, error)
- func (m *Log) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Log) ProtoMessage()
- func (m *Log) Reset()
- func (m *Log) Size() (n int)
- func (m *Log) String() string
- func (m *Log) Unmarshal(dAtA []byte) error
- func (m *Log) UnmarshalJSON(b []byte) error
- func (m *Log) Validate() error
- func (this *Log) VerboseEqual(that interface{}) error
- func (m *Log) XXX_DiscardUnknown()
- func (m *Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Log) XXX_Merge(src proto.Message)
- func (m *Log) XXX_Size() int
- func (m *Log) XXX_Unmarshal(b []byte) error
- type LogValidationError
- type Log_Level
- type Log_Output
- func (*Log_Output) Descriptor() ([]byte, []int)
- func (this *Log_Output) Equal(that interface{}) bool
- func (m *Log_Output) GetTarget() string
- func (m *Log_Output) GetType() Log_Output_Type
- func (this *Log_Output) GoString() string
- func (m *Log_Output) Marshal() (dAtA []byte, err error)
- func (m *Log_Output) MarshalJSON() ([]byte, error)
- func (m *Log_Output) MarshalTo(dAtA []byte) (int, error)
- func (m *Log_Output) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Log_Output) ProtoMessage()
- func (m *Log_Output) Reset()
- func (m *Log_Output) Size() (n int)
- func (m *Log_Output) String() string
- func (m *Log_Output) Unmarshal(dAtA []byte) error
- func (m *Log_Output) UnmarshalJSON(b []byte) error
- func (m *Log_Output) Validate() error
- func (this *Log_Output) VerboseEqual(that interface{}) error
- func (m *Log_Output) XXX_DiscardUnknown()
- func (m *Log_Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Log_Output) XXX_Merge(src proto.Message)
- func (m *Log_Output) XXX_Size() int
- func (m *Log_Output) XXX_Unmarshal(b []byte) error
- type Log_OutputValidationError
- type Log_Output_Type
- type Sink
- func (*Sink) Descriptor() ([]byte, []int)
- func (this *Sink) Equal(that interface{}) bool
- func (m *Sink) GetEndpoint() string
- func (m *Sink) GetType() Sink_Type
- func (this *Sink) GoString() string
- func (m *Sink) Marshal() (dAtA []byte, err error)
- func (m *Sink) MarshalJSON() ([]byte, error)
- func (m *Sink) MarshalTo(dAtA []byte) (int, error)
- func (m *Sink) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Sink) ProtoMessage()
- func (m *Sink) Reset()
- func (m *Sink) Size() (n int)
- func (m *Sink) String() string
- func (m *Sink) Unmarshal(dAtA []byte) error
- func (m *Sink) UnmarshalJSON(b []byte) error
- func (m *Sink) Validate() error
- func (this *Sink) VerboseEqual(that interface{}) error
- func (m *Sink) XXX_DiscardUnknown()
- func (m *Sink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Sink) XXX_Merge(src proto.Message)
- func (m *Sink) XXX_Size() int
- func (m *Sink) XXX_Unmarshal(b []byte) error
- type SinkValidationError
- type Sink_Type
- type StaticService
- func (*StaticService) Descriptor() ([]byte, []int)
- func (this *StaticService) Equal(that interface{}) bool
- func (m *StaticService) GetConfig() *service.Config
- func (m *StaticService) GetEndpoints() []*service.Endpoint
- func (m *StaticService) GetName() string
- func (this *StaticService) GoString() string
- func (m *StaticService) Marshal() (dAtA []byte, err error)
- func (m *StaticService) MarshalJSON() ([]byte, error)
- func (m *StaticService) MarshalTo(dAtA []byte) (int, error)
- func (m *StaticService) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StaticService) ProtoMessage()
- func (m *StaticService) Reset()
- func (m *StaticService) Size() (n int)
- func (m *StaticService) String() string
- func (m *StaticService) Unmarshal(dAtA []byte) error
- func (m *StaticService) UnmarshalJSON(b []byte) error
- func (m *StaticService) Validate() error
- func (this *StaticService) VerboseEqual(that interface{}) error
- func (m *StaticService) XXX_DiscardUnknown()
- func (m *StaticService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StaticService) XXX_Merge(src proto.Message)
- func (m *StaticService) XXX_Size() int
- func (m *StaticService) XXX_Unmarshal(b []byte) error
- type StaticServiceValidationError
- func (e StaticServiceValidationError) Cause() error
- func (e StaticServiceValidationError) Error() string
- func (e StaticServiceValidationError) ErrorName() string
- func (e StaticServiceValidationError) Field() string
- func (e StaticServiceValidationError) Key() bool
- func (e StaticServiceValidationError) Reason() string
- type Stats
- func (*Stats) Descriptor() ([]byte, []int)
- func (this *Stats) Equal(that interface{}) bool
- func (m *Stats) GetSinks() []*Sink
- func (this *Stats) GoString() string
- func (m *Stats) Marshal() (dAtA []byte, err error)
- func (m *Stats) MarshalJSON() ([]byte, error)
- func (m *Stats) MarshalTo(dAtA []byte) (int, error)
- func (m *Stats) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Stats) ProtoMessage()
- func (m *Stats) Reset()
- func (m *Stats) Size() (n int)
- func (m *Stats) String() string
- func (m *Stats) Unmarshal(dAtA []byte) error
- func (m *Stats) UnmarshalJSON(b []byte) error
- func (m *Stats) Validate() error
- func (this *Stats) VerboseEqual(that interface{}) error
- func (m *Stats) XXX_DiscardUnknown()
- func (m *Stats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Stats) XXX_Merge(src proto.Message)
- func (m *Stats) XXX_Size() int
- func (m *Stats) XXX_Unmarshal(b []byte) error
- type StatsValidationError
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthBootstrap = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBootstrap = fmt.Errorf("proto: integer overflow") )
var AdminJSONMarshaler = new(jsonpb.Marshaler)
AdminJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Admin. This struct is safe to replace or modify but should not be done so concurrently.
var AdminJSONUnmarshaler = new(jsonpb.Unmarshaler)
AdminJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Admin. This struct is safe to replace or modify but should not be done so concurrently.
var BootstrapJSONMarshaler = new(jsonpb.Marshaler)
BootstrapJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Bootstrap. This struct is safe to replace or modify but should not be done so concurrently.
var BootstrapJSONUnmarshaler = new(jsonpb.Unmarshaler)
BootstrapJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Bootstrap. This struct is safe to replace or modify but should not be done so concurrently.
var ConfigSourceJSONMarshaler = new(jsonpb.Marshaler)
ConfigSourceJSONMarshaler describes the default jsonpb.Marshaler used by all instances of ConfigSource. This struct is safe to replace or modify but should not be done so concurrently.
var ConfigSourceJSONUnmarshaler = new(jsonpb.Unmarshaler)
ConfigSourceJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of ConfigSource. This struct is safe to replace or modify but should not be done so concurrently.
var LogJSONMarshaler = new(jsonpb.Marshaler)
LogJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Log. This struct is safe to replace or modify but should not be done so concurrently.
var LogJSONUnmarshaler = new(jsonpb.Unmarshaler)
LogJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Log. This struct is safe to replace or modify but should not be done so concurrently.
var Log_Level_name = map[int32]string{
0: "INFO",
-1: "DEBUG",
1: "WARING",
2: "ERROR",
3: "QUIET",
}
var Log_Level_value = map[string]int32{
"INFO": 0,
"DEBUG": -1,
"WARING": 1,
"ERROR": 2,
"QUIET": 3,
}
var Log_OutputJSONMarshaler = new(jsonpb.Marshaler)
Log_OutputJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Log_Output. This struct is safe to replace or modify but should not be done so concurrently.
var Log_OutputJSONUnmarshaler = new(jsonpb.Unmarshaler)
Log_OutputJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Log_Output. This struct is safe to replace or modify but should not be done so concurrently.
var Log_Output_Type_name = map[int32]string{
0: "STDOUT",
1: "SYSLOG",
}
var Log_Output_Type_value = map[string]int32{
"STDOUT": 0,
"SYSLOG": 1,
}
var SinkJSONMarshaler = new(jsonpb.Marshaler)
SinkJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Sink. This struct is safe to replace or modify but should not be done so concurrently.
var SinkJSONUnmarshaler = new(jsonpb.Unmarshaler)
SinkJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Sink. This struct is safe to replace or modify but should not be done so concurrently.
var Sink_Type_name = map[int32]string{
0: "UNKNOWN",
1: "STATSD",
}
var Sink_Type_value = map[string]int32{
"UNKNOWN": 0,
"STATSD": 1,
}
var StaticServiceJSONMarshaler = new(jsonpb.Marshaler)
StaticServiceJSONMarshaler describes the default jsonpb.Marshaler used by all instances of StaticService. This struct is safe to replace or modify but should not be done so concurrently.
var StaticServiceJSONUnmarshaler = new(jsonpb.Unmarshaler)
StaticServiceJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of StaticService. This struct is safe to replace or modify but should not be done so concurrently.
var StatsJSONMarshaler = new(jsonpb.Marshaler)
StatsJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Stats. This struct is safe to replace or modify but should not be done so concurrently.
var StatsJSONUnmarshaler = new(jsonpb.Unmarshaler)
StatsJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Stats. This struct is safe to replace or modify but should not be done so concurrently.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct { // The TCP address that the administration server will listen on, not null. Bind *common.Address `protobuf:"bytes,1,opt,name=bind,proto3" json:"bind,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The admin message is required to configure the administration server.
func (*Admin) Descriptor ¶
func (*Admin) MarshalJSON ¶
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*Admin) ProtoMessage ¶
func (*Admin) ProtoMessage()
func (*Admin) UnmarshalJSON ¶
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*Admin) Validate ¶
Validate checks the field values on Admin with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Admin) VerboseEqual ¶
func (*Admin) XXX_DiscardUnknown ¶
func (m *Admin) XXX_DiscardUnknown()
func (*Admin) XXX_Marshal ¶
func (*Admin) XXX_Unmarshal ¶
type AdminValidationError ¶
type AdminValidationError struct {
// contains filtered or unexported fields
}
AdminValidationError is the validation error returned by Admin.Validate if the designated constraints aren't met.
func (AdminValidationError) Cause ¶
func (e AdminValidationError) Cause() error
Cause function returns cause value.
func (AdminValidationError) Error ¶
func (e AdminValidationError) Error() string
Error satisfies the builtin error interface
func (AdminValidationError) ErrorName ¶
func (e AdminValidationError) ErrorName() string
ErrorName returns error name.
func (AdminValidationError) Field ¶
func (e AdminValidationError) Field() string
Field function returns field value.
func (AdminValidationError) Key ¶
func (e AdminValidationError) Key() bool
Key function returns key value.
func (AdminValidationError) Reason ¶
func (e AdminValidationError) Reason() string
Reason function returns reason value.
type Bootstrap ¶
type Bootstrap struct { // The instance contains the meta information of the current instance. Instance *common.Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Configuration for log. Log Log `protobuf:"bytes,2,opt,name=log,proto3" json:"log"` // Configuration for stats. Stats Stats `protobuf:"bytes,3,opt,name=stats,proto3" json:"stats"` // Configuration for the local administration HTTP server. Admin *Admin `protobuf:"bytes,4,opt,name=admin,proto3" json:"admin,omitempty"` // Statically specified services. StaticServices []*StaticService `protobuf:"bytes,5,rep,name=static_services,json=staticServices,proto3" json:"static_services,omitempty"` // Configuration for dynamic source config. DynamicSourceConfig *ConfigSource `protobuf:"bytes,6,opt,name=dynamic_source_config,json=dynamicSourceConfig,proto3" json:"dynamic_source_config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
This message is supplied via '-config' cli flag and act as the root of configuration.
func (*Bootstrap) Descriptor ¶
func (*Bootstrap) GetDynamicSourceConfig ¶
func (m *Bootstrap) GetDynamicSourceConfig() *ConfigSource
func (*Bootstrap) GetInstance ¶
func (*Bootstrap) GetStaticServices ¶
func (m *Bootstrap) GetStaticServices() []*StaticService
func (*Bootstrap) MarshalJSON ¶
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*Bootstrap) MarshalToSizedBuffer ¶
func (*Bootstrap) ProtoMessage ¶
func (*Bootstrap) ProtoMessage()
func (*Bootstrap) UnmarshalJSON ¶
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*Bootstrap) Validate ¶
Validate checks the field values on Bootstrap with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Bootstrap) VerboseEqual ¶
func (*Bootstrap) XXX_DiscardUnknown ¶
func (m *Bootstrap) XXX_DiscardUnknown()
func (*Bootstrap) XXX_Marshal ¶
func (*Bootstrap) XXX_Unmarshal ¶
type BootstrapValidationError ¶
type BootstrapValidationError struct {
// contains filtered or unexported fields
}
BootstrapValidationError is the validation error returned by Bootstrap.Validate if the designated constraints aren't met.
func (BootstrapValidationError) Cause ¶
func (e BootstrapValidationError) Cause() error
Cause function returns cause value.
func (BootstrapValidationError) Error ¶
func (e BootstrapValidationError) Error() string
Error satisfies the builtin error interface
func (BootstrapValidationError) ErrorName ¶
func (e BootstrapValidationError) ErrorName() string
ErrorName returns error name.
func (BootstrapValidationError) Field ¶
func (e BootstrapValidationError) Field() string
Field function returns field value.
func (BootstrapValidationError) Key ¶
func (e BootstrapValidationError) Key() bool
Key function returns key value.
func (BootstrapValidationError) Reason ¶
func (e BootstrapValidationError) Reason() string
Reason function returns reason value.
type ConfigSource ¶
type ConfigSource struct { // The gRPC endpoint of dynamic source config service, not null. Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Configuration for dynamic source config.
func (*ConfigSource) Descriptor ¶
func (*ConfigSource) Descriptor() ([]byte, []int)
func (*ConfigSource) Equal ¶
func (this *ConfigSource) Equal(that interface{}) bool
func (*ConfigSource) GetEndpoint ¶
func (m *ConfigSource) GetEndpoint() string
func (*ConfigSource) GoString ¶
func (this *ConfigSource) GoString() string
func (*ConfigSource) Marshal ¶
func (m *ConfigSource) Marshal() (dAtA []byte, err error)
func (*ConfigSource) MarshalJSON ¶
func (m *ConfigSource) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*ConfigSource) MarshalToSizedBuffer ¶
func (m *ConfigSource) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConfigSource) ProtoMessage ¶
func (*ConfigSource) ProtoMessage()
func (*ConfigSource) Reset ¶
func (m *ConfigSource) Reset()
func (*ConfigSource) Size ¶
func (m *ConfigSource) Size() (n int)
func (*ConfigSource) String ¶
func (m *ConfigSource) String() string
func (*ConfigSource) Unmarshal ¶
func (m *ConfigSource) Unmarshal(dAtA []byte) error
func (*ConfigSource) UnmarshalJSON ¶
func (m *ConfigSource) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*ConfigSource) Validate ¶
func (m *ConfigSource) Validate() error
Validate checks the field values on ConfigSource with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ConfigSource) VerboseEqual ¶
func (this *ConfigSource) VerboseEqual(that interface{}) error
func (*ConfigSource) XXX_DiscardUnknown ¶
func (m *ConfigSource) XXX_DiscardUnknown()
func (*ConfigSource) XXX_Marshal ¶
func (m *ConfigSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigSource) XXX_Merge ¶
func (m *ConfigSource) XXX_Merge(src proto.Message)
func (*ConfigSource) XXX_Size ¶
func (m *ConfigSource) XXX_Size() int
func (*ConfigSource) XXX_Unmarshal ¶
func (m *ConfigSource) XXX_Unmarshal(b []byte) error
type ConfigSourceValidationError ¶
type ConfigSourceValidationError struct {
// contains filtered or unexported fields
}
ConfigSourceValidationError is the validation error returned by ConfigSource.Validate if the designated constraints aren't met.
func (ConfigSourceValidationError) Cause ¶
func (e ConfigSourceValidationError) Cause() error
Cause function returns cause value.
func (ConfigSourceValidationError) Error ¶
func (e ConfigSourceValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigSourceValidationError) ErrorName ¶
func (e ConfigSourceValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigSourceValidationError) Field ¶
func (e ConfigSourceValidationError) Field() string
Field function returns field value.
func (ConfigSourceValidationError) Key ¶
func (e ConfigSourceValidationError) Key() bool
Key function returns key value.
func (ConfigSourceValidationError) Reason ¶
func (e ConfigSourceValidationError) Reason() string
Reason function returns reason value.
type Log ¶
type Log struct { // Logging level Level Log_Level `protobuf:"varint,1,opt,name=level,proto3,enum=bootstrap.Log_Level" json:"level,omitempty"` // Output target configuration, // support send log to stdout or syslog, use stdout as default. Output Log_Output `protobuf:"bytes,2,opt,name=output,proto3" json:"output"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Log config.
func (*Log) Descriptor ¶
func (*Log) GetOutput ¶
func (m *Log) GetOutput() Log_Output
func (*Log) MarshalJSON ¶
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) UnmarshalJSON ¶
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*Log) Validate ¶
Validate checks the field values on Log with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Log) VerboseEqual ¶
func (*Log) XXX_DiscardUnknown ¶
func (m *Log) XXX_DiscardUnknown()
func (*Log) XXX_Unmarshal ¶
type LogValidationError ¶
type LogValidationError struct {
// contains filtered or unexported fields
}
LogValidationError is the validation error returned by Log.Validate if the designated constraints aren't met.
func (LogValidationError) Cause ¶
func (e LogValidationError) Cause() error
Cause function returns cause value.
func (LogValidationError) Error ¶
func (e LogValidationError) Error() string
Error satisfies the builtin error interface
func (LogValidationError) ErrorName ¶
func (e LogValidationError) ErrorName() string
ErrorName returns error name.
func (LogValidationError) Field ¶
func (e LogValidationError) Field() string
Field function returns field value.
func (LogValidationError) Key ¶
func (e LogValidationError) Key() bool
Key function returns key value.
func (LogValidationError) Reason ¶
func (e LogValidationError) Reason() string
Reason function returns reason value.
type Log_Level ¶
type Log_Level int32
const ( // Print base messages during running. This is in addition to warnings and // errors. INFO Log_Level = 0 // Print everything, including debugging information. DEBUG Log_Level = -1 // Print all warnings and errors. WARING Log_Level = 1 // Print all errors. ERROR Log_Level = 2 // Print nothing. QUIET Log_Level = 3 )
func (Log_Level) EnumDescriptor ¶
type Log_Output ¶
type Log_Output struct { // Type of output target. Type Log_Output_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bootstrap.Log_Output_Type" json:"type,omitempty"` // Address of server which is required when `SYSLOG` is selected. Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Log_Output) Descriptor ¶
func (*Log_Output) Descriptor() ([]byte, []int)
func (*Log_Output) Equal ¶
func (this *Log_Output) Equal(that interface{}) bool
func (*Log_Output) GetTarget ¶
func (m *Log_Output) GetTarget() string
func (*Log_Output) GetType ¶
func (m *Log_Output) GetType() Log_Output_Type
func (*Log_Output) GoString ¶
func (this *Log_Output) GoString() string
func (*Log_Output) Marshal ¶
func (m *Log_Output) Marshal() (dAtA []byte, err error)
func (*Log_Output) MarshalJSON ¶
func (m *Log_Output) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*Log_Output) MarshalToSizedBuffer ¶
func (m *Log_Output) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Log_Output) ProtoMessage ¶
func (*Log_Output) ProtoMessage()
func (*Log_Output) Reset ¶
func (m *Log_Output) Reset()
func (*Log_Output) Size ¶
func (m *Log_Output) Size() (n int)
func (*Log_Output) String ¶
func (m *Log_Output) String() string
func (*Log_Output) Unmarshal ¶
func (m *Log_Output) Unmarshal(dAtA []byte) error
func (*Log_Output) UnmarshalJSON ¶
func (m *Log_Output) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*Log_Output) Validate ¶
func (m *Log_Output) Validate() error
Validate checks the field values on Log_Output with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Log_Output) VerboseEqual ¶
func (this *Log_Output) VerboseEqual(that interface{}) error
func (*Log_Output) XXX_DiscardUnknown ¶
func (m *Log_Output) XXX_DiscardUnknown()
func (*Log_Output) XXX_Marshal ¶
func (m *Log_Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Log_Output) XXX_Merge ¶
func (m *Log_Output) XXX_Merge(src proto.Message)
func (*Log_Output) XXX_Size ¶
func (m *Log_Output) XXX_Size() int
func (*Log_Output) XXX_Unmarshal ¶
func (m *Log_Output) XXX_Unmarshal(b []byte) error
type Log_OutputValidationError ¶
type Log_OutputValidationError struct {
// contains filtered or unexported fields
}
Log_OutputValidationError is the validation error returned by Log_Output.Validate if the designated constraints aren't met.
func (Log_OutputValidationError) Cause ¶
func (e Log_OutputValidationError) Cause() error
Cause function returns cause value.
func (Log_OutputValidationError) Error ¶
func (e Log_OutputValidationError) Error() string
Error satisfies the builtin error interface
func (Log_OutputValidationError) ErrorName ¶
func (e Log_OutputValidationError) ErrorName() string
ErrorName returns error name.
func (Log_OutputValidationError) Field ¶
func (e Log_OutputValidationError) Field() string
Field function returns field value.
func (Log_OutputValidationError) Key ¶
func (e Log_OutputValidationError) Key() bool
Key function returns key value.
func (Log_OutputValidationError) Reason ¶
func (e Log_OutputValidationError) Reason() string
Reason function returns reason value.
type Log_Output_Type ¶
type Log_Output_Type int32
const ( STDOUT Log_Output_Type = 0 SYSLOG Log_Output_Type = 1 )
func (Log_Output_Type) EnumDescriptor ¶
func (Log_Output_Type) EnumDescriptor() ([]byte, []int)
func (Log_Output_Type) String ¶
func (x Log_Output_Type) String() string
type Sink ¶
type Sink struct { Type Sink_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bootstrap.Sink_Type" json:"type,omitempty"` // Sink endpoint, not empty. Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Sink is a sink for stats. Each Sink is responsible for writing stats to a backing store.
func (*Sink) Descriptor ¶
func (*Sink) GetEndpoint ¶
func (*Sink) MarshalJSON ¶
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*Sink) ProtoMessage ¶
func (*Sink) ProtoMessage()
func (*Sink) UnmarshalJSON ¶
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*Sink) Validate ¶
Validate checks the field values on Sink with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Sink) VerboseEqual ¶
func (*Sink) XXX_DiscardUnknown ¶
func (m *Sink) XXX_DiscardUnknown()
func (*Sink) XXX_Unmarshal ¶
type SinkValidationError ¶
type SinkValidationError struct {
// contains filtered or unexported fields
}
SinkValidationError is the validation error returned by Sink.Validate if the designated constraints aren't met.
func (SinkValidationError) Cause ¶
func (e SinkValidationError) Cause() error
Cause function returns cause value.
func (SinkValidationError) Error ¶
func (e SinkValidationError) Error() string
Error satisfies the builtin error interface
func (SinkValidationError) ErrorName ¶
func (e SinkValidationError) ErrorName() string
ErrorName returns error name.
func (SinkValidationError) Field ¶
func (e SinkValidationError) Field() string
Field function returns field value.
func (SinkValidationError) Key ¶
func (e SinkValidationError) Key() bool
Key function returns key value.
func (SinkValidationError) Reason ¶
func (e SinkValidationError) Reason() string
Reason function returns reason value.
type StaticService ¶
type StaticService struct { // The name of service. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The proxy strategy of service. Config *service.Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` // The endpoints of service. // Need at least one endpoint. Endpoints []*service.Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The wrapper of service config and endpoints.
func (*StaticService) Descriptor ¶
func (*StaticService) Descriptor() ([]byte, []int)
func (*StaticService) Equal ¶
func (this *StaticService) Equal(that interface{}) bool
func (*StaticService) GetConfig ¶
func (m *StaticService) GetConfig() *service.Config
func (*StaticService) GetEndpoints ¶
func (m *StaticService) GetEndpoints() []*service.Endpoint
func (*StaticService) GetName ¶
func (m *StaticService) GetName() string
func (*StaticService) GoString ¶
func (this *StaticService) GoString() string
func (*StaticService) Marshal ¶
func (m *StaticService) Marshal() (dAtA []byte, err error)
func (*StaticService) MarshalJSON ¶
func (m *StaticService) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*StaticService) MarshalToSizedBuffer ¶
func (m *StaticService) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StaticService) ProtoMessage ¶
func (*StaticService) ProtoMessage()
func (*StaticService) Reset ¶
func (m *StaticService) Reset()
func (*StaticService) Size ¶
func (m *StaticService) Size() (n int)
func (*StaticService) String ¶
func (m *StaticService) String() string
func (*StaticService) Unmarshal ¶
func (m *StaticService) Unmarshal(dAtA []byte) error
func (*StaticService) UnmarshalJSON ¶
func (m *StaticService) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*StaticService) Validate ¶
func (m *StaticService) Validate() error
Validate checks the field values on StaticService with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*StaticService) VerboseEqual ¶
func (this *StaticService) VerboseEqual(that interface{}) error
func (*StaticService) XXX_DiscardUnknown ¶
func (m *StaticService) XXX_DiscardUnknown()
func (*StaticService) XXX_Marshal ¶
func (m *StaticService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StaticService) XXX_Merge ¶
func (m *StaticService) XXX_Merge(src proto.Message)
func (*StaticService) XXX_Size ¶
func (m *StaticService) XXX_Size() int
func (*StaticService) XXX_Unmarshal ¶
func (m *StaticService) XXX_Unmarshal(b []byte) error
type StaticServiceValidationError ¶
type StaticServiceValidationError struct {
// contains filtered or unexported fields
}
StaticServiceValidationError is the validation error returned by StaticService.Validate if the designated constraints aren't met.
func (StaticServiceValidationError) Cause ¶
func (e StaticServiceValidationError) Cause() error
Cause function returns cause value.
func (StaticServiceValidationError) Error ¶
func (e StaticServiceValidationError) Error() string
Error satisfies the builtin error interface
func (StaticServiceValidationError) ErrorName ¶
func (e StaticServiceValidationError) ErrorName() string
ErrorName returns error name.
func (StaticServiceValidationError) Field ¶
func (e StaticServiceValidationError) Field() string
Field function returns field value.
func (StaticServiceValidationError) Key ¶
func (e StaticServiceValidationError) Key() bool
Key function returns key value.
func (StaticServiceValidationError) Reason ¶
func (e StaticServiceValidationError) Reason() string
Reason function returns reason value.
type Stats ¶
type Stats struct { // Optional set of stats sinks. Sinks []*Sink `protobuf:"bytes,1,rep,name=sinks,proto3" json:"sinks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Stats config.
func (*Stats) Descriptor ¶
func (*Stats) MarshalJSON ¶
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*Stats) ProtoMessage ¶
func (*Stats) ProtoMessage()
func (*Stats) UnmarshalJSON ¶
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*Stats) Validate ¶
Validate checks the field values on Stats with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Stats) VerboseEqual ¶
func (*Stats) XXX_DiscardUnknown ¶
func (m *Stats) XXX_DiscardUnknown()
func (*Stats) XXX_Marshal ¶
func (*Stats) XXX_Unmarshal ¶
type StatsValidationError ¶
type StatsValidationError struct {
// contains filtered or unexported fields
}
StatsValidationError is the validation error returned by Stats.Validate if the designated constraints aren't met.
func (StatsValidationError) Cause ¶
func (e StatsValidationError) Cause() error
Cause function returns cause value.
func (StatsValidationError) Error ¶
func (e StatsValidationError) Error() string
Error satisfies the builtin error interface
func (StatsValidationError) ErrorName ¶
func (e StatsValidationError) ErrorName() string
ErrorName returns error name.
func (StatsValidationError) Field ¶
func (e StatsValidationError) Field() string
Field function returns field value.
func (StatsValidationError) Key ¶
func (e StatsValidationError) Key() bool
Key function returns key value.
func (StatsValidationError) Reason ¶
func (e StatsValidationError) Reason() string
Reason function returns reason value.