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
- type Pair
- 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 (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- type Response
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" json:"name,omitempty"` // uuid Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` // unix timestamp of event Timestamp int64 `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"` // event headers Header map[string]*Pair `` /* 132-byte string literal not displayed */ // the event data Data string `protobuf:"bytes,5,opt,name=data" json:"data,omitempty"` }
A HTTP event as RPC
func (*Event) Descriptor ¶
func (*Event) GetTimestamp ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
type Pair ¶
type Pair struct { Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` Values []string `protobuf:"bytes,2,rep,name=values" json:"values,omitempty"` }
func (*Pair) Descriptor ¶
func (*Pair) ProtoMessage ¶
func (*Pair) ProtoMessage()
type Request ¶
type Request struct { Method string `protobuf:"bytes,1,opt,name=method" json:"method,omitempty"` Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"` Header map[string]*Pair `` /* 132-byte string literal not displayed */ Get map[string]*Pair `` /* 126-byte string literal not displayed */ Post map[string]*Pair `` /* 128-byte string literal not displayed */ Body string `protobuf:"bytes,6,opt,name=body" json:"body,omitempty"` }
A HTTP request as RPC
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Response ¶
type Response struct { StatusCode int32 `protobuf:"varint,1,opt,name=statusCode" json:"statusCode,omitempty"` Header map[string]*Pair `` /* 132-byte string literal not displayed */ Body string `protobuf:"bytes,3,opt,name=body" json:"body,omitempty"` }
A HTTP response as RPC
func (*Response) Descriptor ¶
func (*Response) GetStatusCode ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.