Documentation ¶
Overview ¶
Package go_micro_platform_discovery is a generated protocol buffer package.
It is generated from these files:
github.com/micro/go-platform/discovery/proto/discovery.proto
It has these top-level messages:
Heartbeat Service Result Node Endpoint Value
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 Heartbeat ¶
type Heartbeat struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Service *Service `protobuf:"bytes,2,opt,name=service" json:"service,omitempty"` Timestamp int64 `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"` Interval int64 `protobuf:"varint,4,opt,name=interval" json:"interval,omitempty"` Ttl int64 `protobuf:"varint,5,opt,name=ttl" json:"ttl,omitempty"` }
func (*Heartbeat) Descriptor ¶
func (*Heartbeat) GetService ¶
func (*Heartbeat) ProtoMessage ¶
func (*Heartbeat) 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 Result ¶
type Result struct { Action string `protobuf:"bytes,1,opt,name=action" json:"action,omitempty"` Service *Service `protobuf:"bytes,2,opt,name=service" json:"service,omitempty"` Timestamp int64 `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"` }
func (*Result) Descriptor ¶
func (*Result) GetService ¶
func (*Result) ProtoMessage ¶
func (*Result) 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 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.