bootstrap

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthBootstrap = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBootstrap   = fmt.Errorf("proto: integer overflow")
)
View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var Log_Level_name = map[int32]string{
	0:  "INFO",
	-1: "DEBUG",
	1:  "WARING",
	2:  "ERROR",
	3:  "QUIET",
}
View Source
var Log_Level_value = map[string]int32{
	"INFO":   0,
	"DEBUG":  -1,
	"WARING": 1,
	"ERROR":  2,
	"QUIET":  3,
}
View Source
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.

View Source
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.

View Source
var Log_Output_Type_name = map[int32]string{
	0: "STDOUT",
	1: "SYSLOG",
}
View Source
var Log_Output_Type_value = map[string]int32{
	"STDOUT": 0,
	"SYSLOG": 1,
}
View Source
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.

View Source
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.

View Source
var Sink_Type_name = map[int32]string{
	0: "UNKNOWN",
	1: "STATSD",
}
View Source
var Sink_Type_value = map[string]int32{
	"UNKNOWN": 0,
	"STATSD":  1,
}
View Source
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.

View Source
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.

View Source
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.

View Source
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) Descriptor() ([]byte, []int)

func (*Admin) Equal

func (this *Admin) Equal(that interface{}) bool

func (*Admin) GetBind

func (m *Admin) GetBind() *common.Address

func (*Admin) GoString

func (this *Admin) GoString() string

func (*Admin) Marshal

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

func (*Admin) MarshalJSON

func (m *Admin) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.

func (*Admin) MarshalTo

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

func (*Admin) MarshalToSizedBuffer

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

func (*Admin) ProtoMessage

func (*Admin) ProtoMessage()

func (*Admin) Reset

func (m *Admin) Reset()

func (*Admin) Size

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

func (*Admin) String

func (m *Admin) String() string

func (*Admin) Unmarshal

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

func (*Admin) UnmarshalJSON

func (m *Admin) 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 (*Admin) Validate

func (m *Admin) Validate() error

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 (this *Admin) VerboseEqual(that interface{}) error

func (*Admin) XXX_DiscardUnknown

func (m *Admin) XXX_DiscardUnknown()

func (*Admin) XXX_Marshal

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

func (*Admin) XXX_Merge

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

func (*Admin) XXX_Size

func (m *Admin) XXX_Size() int

func (*Admin) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Bootstrap) Equal

func (this *Bootstrap) Equal(that interface{}) bool

func (*Bootstrap) GetAdmin

func (m *Bootstrap) GetAdmin() *Admin

func (*Bootstrap) GetDynamicSourceConfig

func (m *Bootstrap) GetDynamicSourceConfig() *ConfigSource

func (*Bootstrap) GetInstance

func (m *Bootstrap) GetInstance() *common.Instance

func (*Bootstrap) GetLog

func (m *Bootstrap) GetLog() Log

func (*Bootstrap) GetStaticServices

func (m *Bootstrap) GetStaticServices() []*StaticService

func (*Bootstrap) GetStats

func (m *Bootstrap) GetStats() Stats

func (*Bootstrap) GoString

func (this *Bootstrap) GoString() string

func (*Bootstrap) Marshal

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

func (*Bootstrap) MarshalJSON

func (m *Bootstrap) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.

func (*Bootstrap) MarshalTo

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

func (*Bootstrap) MarshalToSizedBuffer

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

func (*Bootstrap) ProtoMessage

func (*Bootstrap) ProtoMessage()

func (*Bootstrap) Reset

func (m *Bootstrap) Reset()

func (*Bootstrap) Size

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

func (*Bootstrap) String

func (m *Bootstrap) String() string

func (*Bootstrap) Unmarshal

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

func (*Bootstrap) UnmarshalJSON

func (m *Bootstrap) 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 (*Bootstrap) Validate

func (m *Bootstrap) Validate() error

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

func (*Bootstrap) VerboseEqual

func (this *Bootstrap) VerboseEqual(that interface{}) error

func (*Bootstrap) XXX_DiscardUnknown

func (m *Bootstrap) XXX_DiscardUnknown()

func (*Bootstrap) XXX_Marshal

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

func (*Bootstrap) XXX_Merge

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

func (*Bootstrap) XXX_Size

func (m *Bootstrap) XXX_Size() int

func (*Bootstrap) XXX_Unmarshal

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

type BootstrapValidationError

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

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

func (BootstrapValidationError) Cause

func (e BootstrapValidationError) Cause() error

Cause function returns cause value.

func (BootstrapValidationError) Error

func (e BootstrapValidationError) Error() string

Error satisfies the builtin error interface

func (BootstrapValidationError) ErrorName

func (e BootstrapValidationError) ErrorName() string

ErrorName returns error name.

func (BootstrapValidationError) Field

func (e BootstrapValidationError) Field() string

Field function returns field value.

func (BootstrapValidationError) Key

Key function returns key value.

func (BootstrapValidationError) Reason

func (e BootstrapValidationError) Reason() string

Reason function returns reason value.

type 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) MarshalTo

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

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

Cause function returns cause value.

func (ConfigSourceValidationError) Error

Error satisfies the builtin error interface

func (ConfigSourceValidationError) ErrorName

func (e ConfigSourceValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigSourceValidationError) Field

Field function returns field value.

func (ConfigSourceValidationError) Key

Key function returns key value.

func (ConfigSourceValidationError) Reason

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) Descriptor() ([]byte, []int)

func (*Log) Equal

func (this *Log) Equal(that interface{}) bool

func (*Log) GetLevel

func (m *Log) GetLevel() Log_Level

func (*Log) GetOutput

func (m *Log) GetOutput() Log_Output

func (*Log) GoString

func (this *Log) GoString() string

func (*Log) Marshal

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

func (*Log) MarshalJSON

func (m *Log) 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) MarshalTo

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

func (*Log) MarshalToSizedBuffer

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

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) Reset

func (m *Log) Reset()

func (*Log) Size

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

func (*Log) String

func (m *Log) String() string

func (*Log) Unmarshal

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

func (*Log) UnmarshalJSON

func (m *Log) 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) Validate

func (m *Log) Validate() error

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 (this *Log) VerboseEqual(that interface{}) error

func (*Log) XXX_DiscardUnknown

func (m *Log) XXX_DiscardUnknown()

func (*Log) XXX_Marshal

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

func (*Log) XXX_Merge

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

func (*Log) XXX_Size

func (m *Log) XXX_Size() int

func (*Log) XXX_Unmarshal

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

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

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

func (Log_Level) String

func (x Log_Level) String() string

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

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

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

Error satisfies the builtin error interface

func (Log_OutputValidationError) ErrorName

func (e Log_OutputValidationError) ErrorName() string

ErrorName returns error name.

func (Log_OutputValidationError) Field

Field function returns field value.

func (Log_OutputValidationError) Key

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) Descriptor() ([]byte, []int)

func (*Sink) Equal

func (this *Sink) Equal(that interface{}) bool

func (*Sink) GetEndpoint

func (m *Sink) GetEndpoint() string

func (*Sink) GetType

func (m *Sink) GetType() Sink_Type

func (*Sink) GoString

func (this *Sink) GoString() string

func (*Sink) Marshal

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

func (*Sink) MarshalJSON

func (m *Sink) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.

func (*Sink) MarshalTo

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

func (*Sink) MarshalToSizedBuffer

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

func (*Sink) ProtoMessage

func (*Sink) ProtoMessage()

func (*Sink) Reset

func (m *Sink) Reset()

func (*Sink) Size

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

func (*Sink) String

func (m *Sink) String() string

func (*Sink) Unmarshal

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

func (*Sink) UnmarshalJSON

func (m *Sink) 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 (*Sink) Validate

func (m *Sink) Validate() error

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 (this *Sink) VerboseEqual(that interface{}) error

func (*Sink) XXX_DiscardUnknown

func (m *Sink) XXX_DiscardUnknown()

func (*Sink) XXX_Marshal

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

func (*Sink) XXX_Merge

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

func (*Sink) XXX_Size

func (m *Sink) XXX_Size() int

func (*Sink) XXX_Unmarshal

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

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 Sink_Type

type Sink_Type int32

Sink type

const (
	UNKNOWN Sink_Type = 0
	STATSD  Sink_Type = 1
)

func (Sink_Type) EnumDescriptor

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

func (Sink_Type) String

func (x Sink_Type) String() string

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

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

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

Cause function returns cause value.

func (StaticServiceValidationError) Error

Error satisfies the builtin error interface

func (StaticServiceValidationError) ErrorName

func (e StaticServiceValidationError) ErrorName() string

ErrorName returns error name.

func (StaticServiceValidationError) Field

Field function returns field value.

func (StaticServiceValidationError) Key

Key function returns key value.

func (StaticServiceValidationError) Reason

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) Descriptor() ([]byte, []int)

func (*Stats) Equal

func (this *Stats) Equal(that interface{}) bool

func (*Stats) GetSinks

func (m *Stats) GetSinks() []*Sink

func (*Stats) GoString

func (this *Stats) GoString() string

func (*Stats) Marshal

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

func (*Stats) MarshalJSON

func (m *Stats) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.

func (*Stats) MarshalTo

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

func (*Stats) MarshalToSizedBuffer

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

func (*Stats) ProtoMessage

func (*Stats) ProtoMessage()

func (*Stats) Reset

func (m *Stats) Reset()

func (*Stats) Size

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

func (*Stats) String

func (m *Stats) String() string

func (*Stats) Unmarshal

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

func (*Stats) UnmarshalJSON

func (m *Stats) 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 (*Stats) Validate

func (m *Stats) Validate() error

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 (this *Stats) VerboseEqual(that interface{}) error

func (*Stats) XXX_DiscardUnknown

func (m *Stats) XXX_DiscardUnknown()

func (*Stats) XXX_Marshal

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

func (*Stats) XXX_Merge

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

func (*Stats) XXX_Size

func (m *Stats) XXX_Size() int

func (*Stats) XXX_Unmarshal

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

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.

Jump to

Keyboard shortcuts

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