Documentation ¶
Index ¶
- Variables
- type Endpoint
- func (*Endpoint) Descriptor() ([]byte, []int)
- func (m *Endpoint) GetBody() string
- func (m *Endpoint) GetDescription() string
- func (m *Endpoint) GetHandler() string
- func (m *Endpoint) GetHost() []string
- func (m *Endpoint) GetMethod() []string
- func (m *Endpoint) GetName() string
- func (m *Endpoint) GetPath() []string
- func (m *Endpoint) GetStream() bool
- 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) GetData() string
- func (m *Event) GetHeader() map[string]*Pair
- func (m *Event) GetId() string
- func (m *Event) GetName() string
- func (m *Event) GetTimestamp() int64
- 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 Pair
- func (*Pair) Descriptor() ([]byte, []int)
- func (m *Pair) GetKey() string
- func (m *Pair) GetValues() []string
- func (m *Pair) Marshal() (dAtA []byte, err error)
- func (m *Pair) MarshalTo(dAtA []byte) (int, error)
- func (m *Pair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Pair) ProtoMessage()
- func (m *Pair) Reset()
- func (m *Pair) Size() (n int)
- func (m *Pair) String() string
- func (m *Pair) Unmarshal(dAtA []byte) error
- func (m *Pair) XXX_DiscardUnknown()
- func (m *Pair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pair) XXX_Merge(src proto.Message)
- func (m *Pair) XXX_Size() int
- func (m *Pair) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetBody() string
- func (m *Request) GetGet() map[string]*Pair
- func (m *Request) GetHeader() map[string]*Pair
- func (m *Request) GetMethod() string
- func (m *Request) GetPath() string
- func (m *Request) GetPost() map[string]*Pair
- func (m *Request) GetUrl() string
- func (m *Request) Marshal() (dAtA []byte, err error)
- func (m *Request) MarshalTo(dAtA []byte) (int, error)
- func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) Size() (n int)
- func (m *Request) String() string
- func (m *Request) Unmarshal(dAtA []byte) error
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetBody() string
- func (m *Response) GetHeader() map[string]*Pair
- func (m *Response) GetStatusCode() int32
- func (m *Response) Marshal() (dAtA []byte, err error)
- func (m *Response) MarshalTo(dAtA []byte) (int, error)
- func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) Size() (n int)
- func (m *Response) String() string
- func (m *Response) Unmarshal(dAtA []byte) error
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type Service
- func (*Service) Descriptor() ([]byte, []int)
- func (m *Service) GetEndpoint() *Endpoint
- func (m *Service) GetName() string
- func (m *Service) GetServices() []*registry.Service
- 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
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { // RPC Method e.g. Greeter.Hello Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Description e.g what's this endpoint for Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // API Handler e.g rpc, proxy Handler string `protobuf:"bytes,3,opt,name=handler,proto3" json:"handler,omitempty"` // HTTP Host e.g example.com Host []string `protobuf:"bytes,4,rep,name=host,proto3" json:"host,omitempty"` // HTTP Methods e.g GET, POST Method []string `protobuf:"bytes,5,rep,name=method,proto3" json:"method,omitempty"` // HTTP Path e.g /greeter. Expect POSIX regex Path []string `protobuf:"bytes,6,rep,name=path,proto3" json:"path,omitempty"` // Body destination // "*" or "" - top level message value // "string" - inner message value Body string `protobuf:"bytes,7,opt,name=body,proto3" json:"body,omitempty"` // Stream flag Stream bool `protobuf:"varint,8,opt,name=stream,proto3" json:"stream,omitempty"` }
Endpoint is a mapping between an RPC method and HTTP endpoint
func (*Endpoint) Descriptor ¶
func (*Endpoint) GetDescription ¶
func (*Endpoint) GetHandler ¶
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 { // e.g login Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // uuid Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // unix timestamp of event Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // event headers Header map[string]*Pair `` /* 153-byte string literal not displayed */ // the event data Data string `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` }
A HTTP event as RPC Forwarded by the event handler
func (*Event) Descriptor ¶
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 Pair ¶
type Pair struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` }
func (*Pair) Descriptor ¶
func (*Pair) ProtoMessage ¶
func (*Pair) ProtoMessage()
func (*Pair) XXX_DiscardUnknown ¶
func (m *Pair) XXX_DiscardUnknown()
func (*Pair) XXX_Unmarshal ¶
type Request ¶
type Request struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Header map[string]*Pair `` /* 153-byte string literal not displayed */ Get map[string]*Pair `` /* 147-byte string literal not displayed */ Post map[string]*Pair `` /* 149-byte string literal not displayed */ Body string `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"` Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"` }
A HTTP request as RPC Forward by the api handler
func (*Request) Descriptor ¶
func (*Request) MarshalToSizedBuffer ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { StatusCode int32 `protobuf:"varint,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"` Header map[string]*Pair `` /* 153-byte string literal not displayed */ Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` }
A HTTP response as RPC Expected response for the api handler
func (*Response) Descriptor ¶
func (*Response) GetStatusCode ¶
func (*Response) MarshalToSizedBuffer ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type Service ¶
type Service struct { // Name of service Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The endpoint for this service Endpoint *Endpoint `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // Versions of this service Services []*registry.Service `protobuf:"bytes,3,rep,name=services,proto3" json:"services,omitempty"` }
Service represents an API service
func (*Service) Descriptor ¶
func (*Service) GetEndpoint ¶
func (*Service) GetServices ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.