go_micro_os_router

package
v0.0.0-...-2efaa0c Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (*Endpoint) GetMetadata

func (m *Endpoint) GetMetadata() map[string]string

func (*Endpoint) GetRequest

func (m *Endpoint) GetRequest() *Value

func (*Endpoint) GetResponse

func (m *Endpoint) GetResponse() *Value

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) Reset

func (m *Endpoint) Reset()

func (*Endpoint) String

func (m *Endpoint) String() string

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

func (*Metrics) ProtoMessage

func (*Metrics) ProtoMessage()

func (*Metrics) Reset

func (m *Metrics) Reset()

func (*Metrics) String

func (m *Metrics) String() string

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

func (*Node) GetMetadata

func (m *Node) GetMetadata() map[string]string

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

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

func (*Selected) GetDropped

func (m *Selected) GetDropped() *Metrics

func (*Selected) GetErrors

func (m *Selected) GetErrors() *Metrics

func (*Selected) GetSuccess

func (m *Selected) GetSuccess() *Metrics

func (*Selected) ProtoMessage

func (*Selected) ProtoMessage()

func (*Selected) Reset

func (m *Selected) Reset()

func (*Selected) String

func (m *Selected) String() string

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

func (*Service) GetEndpoints

func (m *Service) GetEndpoints() []*Endpoint

func (*Service) GetMetadata

func (m *Service) GetMetadata() map[string]string

func (*Service) GetNodes

func (m *Service) GetNodes() []*Node

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) Reset

func (m *Service) Reset()

func (*Service) String

func (m *Service) String() string

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

func (*Stats) GetClient

func (m *Stats) GetClient() *Service

func (*Stats) GetEndpointStats

func (m *Stats) GetEndpointStats() []*EndpointStats

func (*Stats) GetSelected

func (m *Stats) GetSelected() *Selected

func (*Stats) GetService

func (m *Stats) GetService() *Service

func (*Stats) ProtoMessage

func (*Stats) ProtoMessage()

func (*Stats) Reset

func (m *Stats) Reset()

func (*Stats) String

func (m *Stats) String() string

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

func (*Value) GetValues

func (m *Value) GetValues() []*Value

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) Reset

func (m *Value) Reset()

func (*Value) String

func (m *Value) String() string

Jump to

Keyboard shortcuts

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