Documentation ¶
Overview ¶
Package go_micro_os_router is a generated protocol buffer package.
It is generated from these files:
github.com/micro/go-os/router/proto/router.proto
It has these top-level messages:
Stats Service Node Endpoint Value Selected EndpointStats Metrics
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Request *Value `protobuf:"bytes,2,opt,name=request" json:"request,omitempty"` Response *Value `protobuf:"bytes,3,opt,name=response" json:"response,omitempty"` Metadata map[string]string `` /* 136-byte string literal not displayed */ }
func (*Endpoint) Descriptor ¶
func (*Endpoint) GetMetadata ¶
func (*Endpoint) GetRequest ¶
func (*Endpoint) GetResponse ¶
func (*Endpoint) ProtoMessage ¶
func (*Endpoint) ProtoMessage()
type EndpointStats ¶
type EndpointStats struct { // Name of the endpoint Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // Success and error rates Errors *Metrics `protobuf:"bytes,2,opt,name=errors" json:"errors,omitempty"` Success *Metrics `protobuf:"bytes,3,opt,name=success" json:"success,omitempty"` Dropped *Metrics `protobuf:"bytes,4,opt,name=dropped" json:"dropped,omitempty"` }
func (*EndpointStats) Descriptor ¶
func (*EndpointStats) Descriptor() ([]byte, []int)
func (*EndpointStats) GetDropped ¶
func (m *EndpointStats) GetDropped() *Metrics
func (*EndpointStats) GetErrors ¶
func (m *EndpointStats) GetErrors() *Metrics
func (*EndpointStats) GetSuccess ¶
func (m *EndpointStats) GetSuccess() *Metrics
func (*EndpointStats) ProtoMessage ¶
func (*EndpointStats) ProtoMessage()
func (*EndpointStats) Reset ¶
func (m *EndpointStats) Reset()
func (*EndpointStats) String ¶
func (m *EndpointStats) String() string
type Metrics ¶
type Metrics struct { Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"` Mean float64 `protobuf:"fixed64,2,opt,name=mean" json:"mean,omitempty"` StdDev float64 `protobuf:"fixed64,3,opt,name=std_dev,json=stdDev" json:"std_dev,omitempty"` Upper95 float64 `protobuf:"fixed64,4,opt,name=upper95" json:"upper95,omitempty"` }
func (*Metrics) Descriptor ¶
func (*Metrics) ProtoMessage ¶
func (*Metrics) ProtoMessage()
type Node ¶
type Node struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` Port int64 `protobuf:"varint,3,opt,name=port" json:"port,omitempty"` Metadata map[string]string `` /* 136-byte string literal not displayed */ }
func (*Node) Descriptor ¶
func (*Node) GetMetadata ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
type Selected ¶
type Selected struct { Errors *Metrics `protobuf:"bytes,7,opt,name=errors" json:"errors,omitempty"` Success *Metrics `protobuf:"bytes,5,opt,name=success" json:"success,omitempty"` Dropped *Metrics `protobuf:"bytes,6,opt,name=dropped" json:"dropped,omitempty"` }
func (*Selected) Descriptor ¶
func (*Selected) GetDropped ¶
func (*Selected) GetSuccess ¶
func (*Selected) ProtoMessage ¶
func (*Selected) ProtoMessage()
type Service ¶
type Service struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` Metadata map[string]string `` /* 136-byte string literal not displayed */ Endpoints []*Endpoint `protobuf:"bytes,4,rep,name=endpoints" json:"endpoints,omitempty"` Nodes []*Node `protobuf:"bytes,5,rep,name=nodes" json:"nodes,omitempty"` }
func (*Service) Descriptor ¶
func (*Service) GetEndpoints ¶
func (*Service) GetMetadata ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
type Stats ¶
type Stats struct { // service for these stats match Service *Service `protobuf:"bytes,1,opt,name=service" json:"service,omitempty"` // client making the requests Client *Service `protobuf:"bytes,2,opt,name=client" json:"client,omitempty"` // time of the sample Timestamp int64 `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"` // duration of the sample Duration int64 `protobuf:"varint,4,opt,name=duration" json:"duration,omitempty"` // Selected stats Selected *Selected `protobuf:"bytes,5,opt,name=selected" json:"selected,omitempty"` // Endpoint stats EndpointStats []*EndpointStats `protobuf:"bytes,6,rep,name=endpoint_stats,json=endpointStats" json:"endpoint_stats,omitempty"` }
func (*Stats) Descriptor ¶
func (*Stats) GetEndpointStats ¶
func (m *Stats) GetEndpointStats() []*EndpointStats
func (*Stats) GetSelected ¶
func (*Stats) GetService ¶
func (*Stats) ProtoMessage ¶
func (*Stats) ProtoMessage()
type Value ¶
type Value struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` Values []*Value `protobuf:"bytes,3,rep,name=values" json:"values,omitempty"` }
func (*Value) Descriptor ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.