proto

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2018 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

plugin/proto/kaetzchen.proto

It has these top-level messages:

Request
Response
Params
Empty

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterKaetzchenServer

func RegisterKaetzchenServer(s *grpc.Server, srv KaetzchenServer)

Types

type Empty

type Empty struct {
}

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

type KaetzchenClient

type KaetzchenClient interface {
	OnRequest(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
	Parameters(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Params, error)
}

func NewKaetzchenClient

func NewKaetzchenClient(cc *grpc.ClientConn) KaetzchenClient

type KaetzchenServer

type KaetzchenServer interface {
	OnRequest(context.Context, *Request) (*Response, error)
	Parameters(context.Context, *Empty) (*Params, error)
}

type Params

type Params struct {
	Map map[string]string `` /* 135-byte string literal not displayed */
}

func (*Params) Descriptor

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

func (*Params) GetMap

func (m *Params) GetMap() map[string]string

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) String

func (m *Params) String() string

type Request

type Request struct {
	ID      uint64 `protobuf:"varint,1,opt,name=ID,json=iD" json:"ID,omitempty"`
	Payload []byte `protobuf:"bytes,2,opt,name=Payload,json=payload,proto3" json:"Payload,omitempty"`
	HasSURB bool   `protobuf:"varint,3,opt,name=HasSURB,json=hasSURB" json:"HasSURB,omitempty"`
}

func (*Request) Descriptor

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

func (*Request) GetHasSURB

func (m *Request) GetHasSURB() bool

func (*Request) GetID

func (m *Request) GetID() uint64

func (*Request) GetPayload

func (m *Request) GetPayload() []byte

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 {
	Payload []byte `protobuf:"bytes,1,opt,name=Payload,json=payload,proto3" json:"Payload,omitempty"`
}

func (*Response) Descriptor

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

func (*Response) GetPayload

func (m *Response) GetPayload() []byte

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