omega

package
v0.0.0-...-e1c0fc4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package omega is a generated protocol buffer package.

Omega Service

Omega Service.

It is generated from these files:

omega.proto

It has these top-level messages:

Message
DumpReq
DumpItem

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterOmegaServiceServer

func RegisterOmegaServiceServer(s *grpc.Server, srv OmegaServiceServer)

Types

type DumpItem

type DumpItem struct {
	Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
	Val string `protobuf:"bytes,2,opt,name=val" json:"val,omitempty"`
}

func (*DumpItem) Descriptor

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

func (*DumpItem) GetKey

func (m *DumpItem) GetKey() string

func (*DumpItem) GetVal

func (m *DumpItem) GetVal() string

func (*DumpItem) ProtoMessage

func (*DumpItem) ProtoMessage()

func (*DumpItem) Reset

func (m *DumpItem) Reset()

func (*DumpItem) String

func (m *DumpItem) String() string

type DumpReq

type DumpReq struct {
}

func (*DumpReq) Descriptor

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

func (*DumpReq) ProtoMessage

func (*DumpReq) ProtoMessage()

func (*DumpReq) Reset

func (m *DumpReq) Reset()

func (*DumpReq) String

func (m *DumpReq) String() string

type Message

type Message struct {
	// Id represents the message identifier.
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// The message to be sent.
	Msg string `protobuf:"bytes,2,opt,name=msg" json:"msg,omitempty"`
}

Message represents a simple message sent to the Echo service.

func (*Message) Descriptor

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

func (*Message) GetId

func (m *Message) GetId() string

func (*Message) GetMsg

func (m *Message) GetMsg() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

type OmegaServiceClient

type OmegaServiceClient interface {
	// Echo method receives a simple message and returns it.
	// The message posted as the id parameter will also be returned.
	Echo(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
}

func NewOmegaServiceClient

func NewOmegaServiceClient(cc *grpc.ClientConn) OmegaServiceClient

type OmegaServiceServer

type OmegaServiceServer interface {
	// Echo method receives a simple message and returns it.
	// The message posted as the id parameter will also be returned.
	Echo(context.Context, *Message) (*Message, error)
}

Jump to

Keyboard shortcuts

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