Documentation ¶
Overview ¶
Package go_api is a generated protocol buffer package.
It is generated from these files:
github.com/micro/go-api/proto/api.proto
It has these top-level messages:
Pair Request Response Event
Index ¶
- 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 (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) String() string
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *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 (*Pair) ProtoMessage()
- func (m *Pair) Reset()
- func (m *Pair) String() string
- func (m *Pair) XXX_DiscardUnknown()
- func (m *Pair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *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 (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *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 (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ¶ added in v0.6.0
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶ added in v0.6.0
func (*Event) XXX_Unmarshal ¶ added in v0.6.0
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Pair) Descriptor ¶
func (*Pair) ProtoMessage ¶
func (*Pair) ProtoMessage()
func (*Pair) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *Pair) XXX_DiscardUnknown()
func (*Pair) XXX_Marshal ¶ added in v0.6.0
func (*Pair) XXX_Unmarshal ¶ added in v0.6.0
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A HTTP request as RPC Forward by the api handler
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶ added in v0.6.0
func (*Request) XXX_Unmarshal ¶ added in v0.6.0
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A HTTP response as RPC Expected response for the api handler
func (*Response) Descriptor ¶
func (*Response) GetStatusCode ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶ added in v0.6.0
func (*Response) XXX_Unmarshal ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.