go_api

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package go_api is a generated protocol buffer package.

It is generated from these files:

api.proto

It has these top-level messages:

Pair
Request
Response
Event

Index

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) Descriptor() ([]byte, []int)

func (*Event) GetData

func (m *Event) GetData() string

func (*Event) GetHeader

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

func (*Event) GetId

func (m *Event) GetId() string

func (*Event) GetName

func (m *Event) GetName() string

func (*Event) GetTimestamp

func (m *Event) GetTimestamp() int64

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

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) Descriptor() ([]byte, []int)

func (*Pair) GetKey

func (m *Pair) GetKey() string

func (*Pair) GetValues

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

func (*Pair) ProtoMessage

func (*Pair) ProtoMessage()

func (*Pair) Reset

func (m *Pair) Reset()

func (*Pair) String

func (m *Pair) String() string

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"`
	Url    string           `protobuf:"bytes,7,opt,name=url" json:"url,omitempty"`
}

A HTTP request as RPC

func (*Request) Descriptor

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

func (*Request) GetBody

func (m *Request) GetBody() string

func (*Request) GetGet

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

func (*Request) GetHeader

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

func (*Request) GetMethod

func (m *Request) GetMethod() string

func (*Request) GetPath

func (m *Request) GetPath() string

func (*Request) GetPost

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

func (*Request) GetUrl added in v0.3.0

func (m *Request) GetUrl() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

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) Descriptor() ([]byte, []int)

func (*Response) GetBody

func (m *Response) GetBody() string

func (*Response) GetHeader

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

func (*Response) GetStatusCode

func (m *Response) GetStatusCode() int32

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL