proto_runtime

package
v0.0.0-...-7b2e207 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 License: AGPL-3.0 Imports: 5 Imported by: 3

Documentation

Overview

Package proto_runtime is a generated protocol buffer package.

It is generated from these files:

server.proto

It has these top-level messages:

Void
Ok
InvokeParam
InvokeResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStubServer

func RegisterStubServer(s *grpc.Server, srv StubServer)

Types

type InvokeParam

type InvokeParam struct {
	ID       string            `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Function string            `protobuf:"bytes,2,opt,name=function,proto3" json:"function,omitempty"`
	Params   []string          `protobuf:"bytes,3,rep,name=params" json:"params,omitempty"`
	Header   map[string]string `` /* 146-byte string literal not displayed */
}

func (*InvokeParam) Descriptor

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

func (*InvokeParam) GetFunction

func (m *InvokeParam) GetFunction() string

func (*InvokeParam) GetHeader

func (m *InvokeParam) GetHeader() map[string]string

func (*InvokeParam) GetID

func (m *InvokeParam) GetID() string

func (*InvokeParam) GetParams

func (m *InvokeParam) GetParams() []string

func (*InvokeParam) ProtoMessage

func (*InvokeParam) ProtoMessage()

func (*InvokeParam) Reset

func (m *InvokeParam) Reset()

func (*InvokeParam) String

func (m *InvokeParam) String() string

type InvokeResponse

type InvokeResponse struct {
	ID     string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Status int32  `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	Body   []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
}

func (*InvokeResponse) Descriptor

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

func (*InvokeResponse) GetBody

func (m *InvokeResponse) GetBody() []byte

func (*InvokeResponse) GetID

func (m *InvokeResponse) GetID() string

func (*InvokeResponse) GetStatus

func (m *InvokeResponse) GetStatus() int32

func (*InvokeResponse) ProtoMessage

func (*InvokeResponse) ProtoMessage()

func (*InvokeResponse) Reset

func (m *InvokeResponse) Reset()

func (*InvokeResponse) String

func (m *InvokeResponse) String() string

type Ok

type Ok struct {
	Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
}

func (*Ok) Descriptor

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

func (*Ok) GetStatus

func (m *Ok) GetStatus() int32

func (*Ok) ProtoMessage

func (*Ok) ProtoMessage()

func (*Ok) Reset

func (m *Ok) Reset()

func (*Ok) String

func (m *Ok) String() string

type StubClient

type StubClient interface {
	HealthCheck(ctx context.Context, in *Ok, opts ...grpc.CallOption) (*Ok, error)
	Invoke(ctx context.Context, in *InvokeParam, opts ...grpc.CallOption) (*InvokeResponse, error)
	Stop(ctx context.Context, in *Void, opts ...grpc.CallOption) (*Void, error)
}

func NewStubClient

func NewStubClient(cc *grpc.ClientConn) StubClient

type StubServer

type StubServer interface {
	HealthCheck(context.Context, *Ok) (*Ok, error)
	Invoke(context.Context, *InvokeParam) (*InvokeResponse, error)
	Stop(context.Context, *Void) (*Void, error)
}

type Void

type Void struct {
}

func (*Void) Descriptor

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

func (*Void) ProtoMessage

func (*Void) ProtoMessage()

func (*Void) Reset

func (m *Void) Reset()

func (*Void) String

func (m *Void) String() string

Jump to

Keyboard shortcuts

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