go-micro: github.com/micro/go-micro/api/proto Index | Files

package go_api

import "github.com/micro/go-micro/api/proto"

Index

Package Files

api.pb.go api.pb.micro.go

type Event Uses

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 `protobuf:"bytes,4,rep,name=header,proto3" json:"header,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // 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 Uses

func (*Event) Descriptor() ([]byte, []int)

func (*Event) GetData Uses

func (m *Event) GetData() string

func (*Event) GetHeader Uses

func (m *Event) GetHeader() map[string]*Pair

func (*Event) GetId Uses

func (m *Event) GetId() string

func (*Event) GetName Uses

func (m *Event) GetName() string

func (*Event) GetTimestamp Uses

func (m *Event) GetTimestamp() int64

func (*Event) ProtoMessage Uses

func (*Event) ProtoMessage()

func (*Event) Reset Uses

func (m *Event) Reset()

func (*Event) String Uses

func (m *Event) String() string

func (*Event) XXX_DiscardUnknown Uses

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal Uses

func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Event) XXX_Merge Uses

func (m *Event) XXX_Merge(src proto.Message)

func (*Event) XXX_Size Uses

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal Uses

func (m *Event) XXX_Unmarshal(b []byte) error

type Pair Uses

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 Uses

func (*Pair) Descriptor() ([]byte, []int)

func (*Pair) GetKey Uses

func (m *Pair) GetKey() string

func (*Pair) GetValues Uses

func (m *Pair) GetValues() []string

func (*Pair) ProtoMessage Uses

func (*Pair) ProtoMessage()

func (*Pair) Reset Uses

func (m *Pair) Reset()

func (*Pair) String Uses

func (m *Pair) String() string

func (*Pair) XXX_DiscardUnknown Uses

func (m *Pair) XXX_DiscardUnknown()

func (*Pair) XXX_Marshal Uses

func (m *Pair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pair) XXX_Merge Uses

func (m *Pair) XXX_Merge(src proto.Message)

func (*Pair) XXX_Size Uses

func (m *Pair) XXX_Size() int

func (*Pair) XXX_Unmarshal Uses

func (m *Pair) XXX_Unmarshal(b []byte) error

type Request Uses

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 `protobuf:"bytes,3,rep,name=header,proto3" json:"header,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    Get                  map[string]*Pair `protobuf:"bytes,4,rep,name=get,proto3" json:"get,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    Post                 map[string]*Pair `protobuf:"bytes,5,rep,name=post,proto3" json:"post,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    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 Uses

func (*Request) Descriptor() ([]byte, []int)

func (*Request) GetBody Uses

func (m *Request) GetBody() string

func (*Request) GetGet Uses

func (m *Request) GetGet() map[string]*Pair

func (*Request) GetHeader Uses

func (m *Request) GetHeader() map[string]*Pair

func (*Request) GetMethod Uses

func (m *Request) GetMethod() string

func (*Request) GetPath Uses

func (m *Request) GetPath() string

func (*Request) GetPost Uses

func (m *Request) GetPost() map[string]*Pair

func (*Request) GetUrl Uses

func (m *Request) GetUrl() string

func (*Request) ProtoMessage Uses

func (*Request) ProtoMessage()

func (*Request) Reset Uses

func (m *Request) Reset()

func (*Request) String Uses

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown Uses

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal Uses

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge Uses

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size Uses

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal Uses

func (m *Request) XXX_Unmarshal(b []byte) error

type Response Uses

type Response struct {
    StatusCode           int32            `protobuf:"varint,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"`
    Header               map[string]*Pair `protobuf:"bytes,2,rep,name=header,proto3" json:"header,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    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 Uses

func (*Response) Descriptor() ([]byte, []int)

func (*Response) GetBody Uses

func (m *Response) GetBody() string

func (*Response) GetHeader Uses

func (m *Response) GetHeader() map[string]*Pair

func (*Response) GetStatusCode Uses

func (m *Response) GetStatusCode() int32

func (*Response) ProtoMessage Uses

func (*Response) ProtoMessage()

func (*Response) Reset Uses

func (m *Response) Reset()

func (*Response) String Uses

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown Uses

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal Uses

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge Uses

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size Uses

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal Uses

func (m *Response) XXX_Unmarshal(b []byte) error

Package go_api imports 3 packages (graph) and is imported by 17 packages. Updated 2020-02-16. Refresh now. Tools for package owners.