proto

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthProto        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProto          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProto = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

func (*Attribute) Descriptor

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

func (*Attribute) Equal

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

func (*Attribute) GetKey

func (m *Attribute) GetKey() string

func (*Attribute) GetValue

func (m *Attribute) GetValue() string

func (*Attribute) GoString

func (this *Attribute) GoString() string

func (*Attribute) Marshal

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

func (*Attribute) MarshalTo

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

func (*Attribute) MarshalToSizedBuffer

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

func (*Attribute) ProtoMessage

func (*Attribute) ProtoMessage()

func (*Attribute) Reset

func (m *Attribute) Reset()

func (*Attribute) Size

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

func (*Attribute) String

func (this *Attribute) String() string

func (*Attribute) Unmarshal

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

func (*Attribute) XXX_DiscardUnknown

func (m *Attribute) XXX_DiscardUnknown()

func (*Attribute) XXX_Marshal

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

func (*Attribute) XXX_Merge

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

func (*Attribute) XXX_Size

func (m *Attribute) XXX_Size() int

func (*Attribute) XXX_Unmarshal

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

type Event

type Event struct {
	Time         int64        `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
	State        string       `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	Service      string       `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"`
	Host         string       `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"`
	Description  string       `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	Tags         []string     `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
	Ttl          float32      `protobuf:"fixed32,8,opt,name=ttl,proto3" json:"ttl,omitempty"`
	Attributes   []*Attribute `protobuf:"bytes,9,rep,name=attributes,proto3" json:"attributes,omitempty"`
	TimeMicros   int64        `protobuf:"varint,10,opt,name=time_micros,json=timeMicros,proto3" json:"time_micros,omitempty"`
	MetricSint64 int64        `protobuf:"zigzag64,13,opt,name=metric_sint64,json=metricSint64,proto3" json:"metric_sint64,omitempty"`
	MetricD      float64      `protobuf:"fixed64,14,opt,name=metric_d,json=metricD,proto3" json:"metric_d,omitempty"`
	MetricF      float32      `protobuf:"fixed32,15,opt,name=metric_f,json=metricF,proto3" json:"metric_f,omitempty"`
}

func (*Event) Descriptor

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

func (*Event) Equal

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

func (*Event) GetAttributes

func (m *Event) GetAttributes() []*Attribute

func (*Event) GetDescription

func (m *Event) GetDescription() string

func (*Event) GetHost

func (m *Event) GetHost() string

func (*Event) GetMetricD

func (m *Event) GetMetricD() float64

func (*Event) GetMetricF

func (m *Event) GetMetricF() float32

func (*Event) GetMetricSint64

func (m *Event) GetMetricSint64() int64

func (*Event) GetService

func (m *Event) GetService() string

func (*Event) GetState

func (m *Event) GetState() string

func (*Event) GetTags

func (m *Event) GetTags() []string

func (*Event) GetTime

func (m *Event) GetTime() int64

func (*Event) GetTimeMicros

func (m *Event) GetTimeMicros() int64

func (*Event) GetTtl

func (m *Event) GetTtl() float32

func (*Event) GoString

func (this *Event) GoString() string

func (*Event) Marshal

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

func (*Event) MarshalTo

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

func (*Event) MarshalToSizedBuffer

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

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) Size

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

func (*Event) String

func (this *Event) String() string

func (*Event) Unmarshal

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

func (*Event) XXX_DiscardUnknown

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal

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

func (*Event) XXX_Merge

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

func (*Event) XXX_Size

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal

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

type Msg

type Msg struct {
	Ok     bool     `protobuf:"varint,2,opt,name=ok,proto3" json:"ok,omitempty"`
	Error  string   `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	States []*State `protobuf:"bytes,4,rep,name=states,proto3" json:"states,omitempty"`
	Query  *Query   `protobuf:"bytes,5,opt,name=query,proto3" json:"query,omitempty"`
	Events []*Event `protobuf:"bytes,6,rep,name=events,proto3" json:"events,omitempty"`
}

func (*Msg) Descriptor

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

func (*Msg) Equal

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

func (*Msg) GetError

func (m *Msg) GetError() string

func (*Msg) GetEvents

func (m *Msg) GetEvents() []*Event

func (*Msg) GetOk

func (m *Msg) GetOk() bool

func (*Msg) GetQuery

func (m *Msg) GetQuery() *Query

func (*Msg) GetStates

func (m *Msg) GetStates() []*State

func (*Msg) GoString

func (this *Msg) GoString() string

func (*Msg) Marshal

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

func (*Msg) MarshalTo

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

func (*Msg) MarshalToSizedBuffer

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

func (*Msg) ProtoMessage

func (*Msg) ProtoMessage()

func (*Msg) Reset

func (m *Msg) Reset()

func (*Msg) Size

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

func (*Msg) String

func (this *Msg) String() string

func (*Msg) Unmarshal

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

func (*Msg) XXX_DiscardUnknown

func (m *Msg) XXX_DiscardUnknown()

func (*Msg) XXX_Marshal

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

func (*Msg) XXX_Merge

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

func (*Msg) XXX_Size

func (m *Msg) XXX_Size() int

func (*Msg) XXX_Unmarshal

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

type Query

type Query struct {
	String_ string `protobuf:"bytes,1,opt,name=string,proto3" json:"string,omitempty"`
}

func (*Query) Descriptor

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

func (*Query) Equal

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

func (*Query) GetString_

func (m *Query) GetString_() string

func (*Query) GoString

func (this *Query) GoString() string

func (*Query) Marshal

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

func (*Query) MarshalTo

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

func (*Query) MarshalToSizedBuffer

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

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) Reset

func (m *Query) Reset()

func (*Query) Size

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

func (*Query) String

func (this *Query) String() string

func (*Query) Unmarshal

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

func (*Query) XXX_DiscardUnknown

func (m *Query) XXX_DiscardUnknown()

func (*Query) XXX_Marshal

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

func (*Query) XXX_Merge

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

func (*Query) XXX_Size

func (m *Query) XXX_Size() int

func (*Query) XXX_Unmarshal

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

type State

type State struct {
	Time        int64    `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
	State       string   `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	Service     string   `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"`
	Host        string   `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"`
	Description string   `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	Once        bool     `protobuf:"varint,6,opt,name=once,proto3" json:"once,omitempty"`
	Tags        []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
	Ttl         float32  `protobuf:"fixed32,8,opt,name=ttl,proto3" json:"ttl,omitempty"`
}

func (*State) Descriptor

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

func (*State) Equal

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

func (*State) GetDescription

func (m *State) GetDescription() string

func (*State) GetHost

func (m *State) GetHost() string

func (*State) GetOnce

func (m *State) GetOnce() bool

func (*State) GetService

func (m *State) GetService() string

func (*State) GetState

func (m *State) GetState() string

func (*State) GetTags

func (m *State) GetTags() []string

func (*State) GetTime

func (m *State) GetTime() int64

func (*State) GetTtl

func (m *State) GetTtl() float32

func (*State) GoString

func (this *State) GoString() string

func (*State) Marshal

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

func (*State) MarshalTo

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

func (*State) MarshalToSizedBuffer

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

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) Reset

func (m *State) Reset()

func (*State) Size

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

func (*State) String

func (this *State) String() string

func (*State) Unmarshal

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

func (*State) XXX_DiscardUnknown

func (m *State) XXX_DiscardUnknown()

func (*State) XXX_Marshal

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

func (*State) XXX_Merge

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

func (*State) XXX_Size

func (m *State) XXX_Size() int

func (*State) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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