Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - type Endpoint
 - func (*Endpoint) Descriptor() ([]byte, []int)
 - func (m *Endpoint) GetMetadata() map[string]string
 - func (m *Endpoint) GetName() string
 - func (m *Endpoint) GetRequest() *Value
 - func (m *Endpoint) GetResponse() *Value
 - func (m *Endpoint) Marshal() (dAtA []byte, err error)
 - func (m *Endpoint) MarshalTo(dAtA []byte) (int, error)
 - func (m *Endpoint) MarshalToSizedBuffer(dAtA []byte) (int, error)
 - func (*Endpoint) ProtoMessage()
 - func (m *Endpoint) Reset()
 - func (m *Endpoint) Size() (n int)
 - func (m *Endpoint) String() string
 - func (m *Endpoint) Unmarshal(dAtA []byte) error
 - func (m *Endpoint) XXX_DiscardUnknown()
 - func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
 - func (m *Endpoint) XXX_Merge(src proto.Message)
 - func (m *Endpoint) XXX_Size() int
 - func (m *Endpoint) XXX_Unmarshal(b []byte) error
 
- type Event
 - func (*Event) Descriptor() ([]byte, []int)
 - func (m *Event) GetId() string
 - func (m *Event) GetService() *Service
 - func (m *Event) GetTimestamp() int64
 - func (m *Event) GetType() EventType
 - func (m *Event) Marshal() (dAtA []byte, err error)
 - func (m *Event) MarshalTo(dAtA []byte) (int, error)
 - func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error)
 - func (*Event) ProtoMessage()
 - func (m *Event) Reset()
 - func (m *Event) Size() (n int)
 - func (m *Event) String() string
 - func (m *Event) Unmarshal(dAtA []byte) error
 - func (m *Event) XXX_DiscardUnknown()
 - func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
 - func (m *Event) XXX_Merge(src proto.Message)
 - func (m *Event) XXX_Size() int
 - func (m *Event) XXX_Unmarshal(b []byte) error
 
- type EventType
 - type Node
 - func (*Node) Descriptor() ([]byte, []int)
 - func (m *Node) GetAddress() string
 - func (m *Node) GetId() string
 - func (m *Node) GetMetadata() map[string]string
 - func (m *Node) GetPort() int64
 - func (m *Node) Marshal() (dAtA []byte, err error)
 - func (m *Node) MarshalTo(dAtA []byte) (int, error)
 - func (m *Node) MarshalToSizedBuffer(dAtA []byte) (int, error)
 - func (*Node) ProtoMessage()
 - func (m *Node) Reset()
 - func (m *Node) Size() (n int)
 - func (m *Node) String() string
 - func (m *Node) Unmarshal(dAtA []byte) error
 - func (m *Node) XXX_DiscardUnknown()
 - func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
 - func (m *Node) XXX_Merge(src proto.Message)
 - func (m *Node) XXX_Size() int
 - func (m *Node) XXX_Unmarshal(b []byte) error
 
- type Options
 - func (*Options) Descriptor() ([]byte, []int)
 - func (m *Options) GetTtl() int64
 - func (m *Options) Marshal() (dAtA []byte, err error)
 - func (m *Options) MarshalTo(dAtA []byte) (int, error)
 - func (m *Options) MarshalToSizedBuffer(dAtA []byte) (int, error)
 - func (*Options) ProtoMessage()
 - func (m *Options) Reset()
 - func (m *Options) Size() (n int)
 - func (m *Options) String() string
 - func (m *Options) Unmarshal(dAtA []byte) error
 - func (m *Options) XXX_DiscardUnknown()
 - func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
 - func (m *Options) XXX_Merge(src proto.Message)
 - func (m *Options) XXX_Size() int
 - func (m *Options) XXX_Unmarshal(b []byte) error
 
- type Result
 - func (*Result) Descriptor() ([]byte, []int)
 - func (m *Result) GetAction() string
 - func (m *Result) GetService() *Service
 - func (m *Result) GetTimestamp() int64
 - func (m *Result) Marshal() (dAtA []byte, err error)
 - func (m *Result) MarshalTo(dAtA []byte) (int, error)
 - func (m *Result) MarshalToSizedBuffer(dAtA []byte) (int, error)
 - func (*Result) ProtoMessage()
 - func (m *Result) Reset()
 - func (m *Result) Size() (n int)
 - func (m *Result) String() string
 - func (m *Result) Unmarshal(dAtA []byte) error
 - func (m *Result) XXX_DiscardUnknown()
 - func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
 - func (m *Result) XXX_Merge(src proto.Message)
 - func (m *Result) XXX_Size() int
 - func (m *Result) XXX_Unmarshal(b []byte) error
 
- type Service
 - func (*Service) Descriptor() ([]byte, []int)
 - func (m *Service) GetApis() []*openapi.OpenAPI
 - func (m *Service) GetEndpoints() []*Endpoint
 - func (m *Service) GetMetadata() map[string]string
 - func (m *Service) GetName() string
 - func (m *Service) GetNodes() []*Node
 - func (m *Service) GetOptions() *Options
 - func (m *Service) GetVersion() string
 - func (m *Service) Marshal() (dAtA []byte, err error)
 - func (m *Service) MarshalTo(dAtA []byte) (int, error)
 - func (m *Service) MarshalToSizedBuffer(dAtA []byte) (int, error)
 - func (*Service) ProtoMessage()
 - func (m *Service) Reset()
 - func (m *Service) Size() (n int)
 - func (m *Service) String() string
 - func (m *Service) Unmarshal(dAtA []byte) error
 - func (m *Service) XXX_DiscardUnknown()
 - func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
 - func (m *Service) XXX_Merge(src proto.Message)
 - func (m *Service) XXX_Size() int
 - func (m *Service) XXX_Unmarshal(b []byte) error
 
- type Value
 - func (*Value) Descriptor() ([]byte, []int)
 - func (m *Value) GetName() string
 - func (m *Value) GetType() string
 - func (m *Value) GetValues() []*Value
 - func (m *Value) Marshal() (dAtA []byte, err error)
 - func (m *Value) MarshalTo(dAtA []byte) (int, error)
 - func (m *Value) MarshalToSizedBuffer(dAtA []byte) (int, error)
 - func (*Value) ProtoMessage()
 - func (m *Value) Reset()
 - func (m *Value) Size() (n int)
 - func (m *Value) String() string
 - func (m *Value) Unmarshal(dAtA []byte) error
 - func (m *Value) XXX_DiscardUnknown()
 - func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
 - func (m *Value) XXX_Merge(src proto.Message)
 - func (m *Value) XXX_Size() int
 - func (m *Value) XXX_Unmarshal(b []byte) error
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var ( ErrInvalidLengthRegistry = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRegistry = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRegistry = fmt.Errorf("proto: unexpected end of group") )
      View Source
      
  
    var EventType_name = map[int32]string{
	0: "Create",
	1: "Delete",
	2: "Update",
}
    
      View Source
      
  
var EventType_value = map[string]int32{
	"Create": 0,
	"Delete": 1,
	"Update": 2,
}
    Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct {
	Name     string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Request  *Value            `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
	Response *Value            `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
	Metadata map[string]string `` /* 157-byte string literal not displayed */
}
    Endpoint is a endpoint provided by a service
func (*Endpoint) Descriptor ¶
func (*Endpoint) GetMetadata ¶
func (*Endpoint) GetRequest ¶
func (*Endpoint) GetResponse ¶
func (*Endpoint) MarshalToSizedBuffer ¶
func (*Endpoint) ProtoMessage ¶
func (*Endpoint) ProtoMessage()
func (*Endpoint) XXX_DiscardUnknown ¶
func (m *Endpoint) XXX_DiscardUnknown()
func (*Endpoint) XXX_Marshal ¶
func (*Endpoint) XXX_Unmarshal ¶
type Event ¶
type Event struct {
	// Event Id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// type of event
	Type EventType `protobuf:"varint,2,opt,name=type,proto3,enum=registry.EventType" json:"type,omitempty"`
	// unix timestamp of event
	Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// service entry
	Service *Service `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"`
}
    Event is registry event
func (*Event) Descriptor ¶
func (*Event) GetService ¶
func (*Event) GetTimestamp ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_Unmarshal ¶
type EventType ¶
type EventType int32
EventType defines the type of event
func (EventType) EnumDescriptor ¶
type Node ¶
type Node struct {
	Id       string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Address  string            `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Port     int64             `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	Metadata map[string]string `` /* 157-byte string literal not displayed */
}
    Node represents the node the service is on
func (*Node) Descriptor ¶
func (*Node) GetAddress ¶
func (*Node) GetMetadata ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Unmarshal ¶
type Options ¶
type Options struct {
	Ttl int64 `protobuf:"varint,1,opt,name=ttl,proto3" json:"ttl,omitempty"`
}
    Options are registry options
func (*Options) Descriptor ¶
func (*Options) MarshalToSizedBuffer ¶
func (*Options) ProtoMessage ¶
func (*Options) ProtoMessage()
func (*Options) XXX_DiscardUnknown ¶
func (m *Options) XXX_DiscardUnknown()
func (*Options) XXX_Marshal ¶
func (*Options) XXX_Unmarshal ¶
type Result ¶
type Result struct {
	Action    string   `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	Service   *Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	Timestamp int64    `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
}
    Result is returns by the watcher
func (*Result) Descriptor ¶
func (*Result) GetService ¶
func (*Result) GetTimestamp ¶
func (*Result) MarshalToSizedBuffer ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) XXX_DiscardUnknown ¶
func (m *Result) XXX_DiscardUnknown()
func (*Result) XXX_Marshal ¶
func (*Result) XXX_Unmarshal ¶
type Service ¶
type Service struct {
	Name      string             `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version   string             `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Metadata  map[string]string  `` /* 157-byte string literal not displayed */
	Endpoints []*Endpoint        `protobuf:"bytes,4,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	Nodes     []*Node            `protobuf:"bytes,5,rep,name=nodes,proto3" json:"nodes,omitempty"`
	Options   *Options           `protobuf:"bytes,6,opt,name=options,proto3" json:"options,omitempty"`
	Apis      []*openapi.OpenAPI `protobuf:"bytes,7,rep,name=apis,proto3" json:"apis,omitempty"`
}
    Service represents a vine service
func (*Service) Descriptor ¶
func (*Service) GetEndpoints ¶
func (*Service) GetMetadata ¶
func (*Service) GetOptions ¶
func (*Service) GetVersion ¶
func (*Service) MarshalToSizedBuffer ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) XXX_DiscardUnknown ¶
func (m *Service) XXX_DiscardUnknown()
func (*Service) XXX_Marshal ¶
func (*Service) XXX_Unmarshal ¶
type Value ¶
type Value struct {
	Name   string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type   string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Values []*Value `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
}
    Value is an opaque value for a request or response
func (*Value) Descriptor ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) XXX_DiscardUnknown ¶
func (m *Value) XXX_DiscardUnknown()
func (*Value) XXX_Marshal ¶
func (*Value) XXX_Unmarshal ¶
 Click to show internal directories. 
   Click to hide internal directories.