grpc_merger

package
v0.0.0-...-edb0f33 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MsgStatus_Status_name = map[int32]string{
	0: "SUCCESS",
	1: "INVALID",
	2: "INTERNAL",
	3: "DUPLICATED",
}
View Source
var MsgStatus_Status_value = map[string]int32{
	"SUCCESS":    0,
	"INVALID":    1,
	"INTERNAL":   2,
	"DUPLICATED": 3,
}

Functions

func RegisterTethysMergerServiceServer

func RegisterTethysMergerServiceServer(s *grpc.Server, srv TethysMergerServiceServer)

Types

type MsgStatus

type MsgStatus struct {
	Status               MsgStatus_Status `protobuf:"varint,1,opt,name=status,proto3,enum=grpc_merger.MsgStatus_Status" json:"status,omitempty"`
	Message              string           `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*MsgStatus) Descriptor

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

func (*MsgStatus) GetMessage

func (m *MsgStatus) GetMessage() string

func (*MsgStatus) GetStatus

func (m *MsgStatus) GetStatus() MsgStatus_Status

func (*MsgStatus) ProtoMessage

func (*MsgStatus) ProtoMessage()

func (*MsgStatus) Reset

func (m *MsgStatus) Reset()

func (*MsgStatus) String

func (m *MsgStatus) String() string

func (*MsgStatus) XXX_DiscardUnknown

func (m *MsgStatus) XXX_DiscardUnknown()

func (*MsgStatus) XXX_Marshal

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

func (*MsgStatus) XXX_Merge

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

func (*MsgStatus) XXX_Size

func (m *MsgStatus) XXX_Size() int

func (*MsgStatus) XXX_Unmarshal

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

type MsgStatus_Status

type MsgStatus_Status int32
const (
	MsgStatus_SUCCESS    MsgStatus_Status = 0
	MsgStatus_INVALID    MsgStatus_Status = 1
	MsgStatus_INTERNAL   MsgStatus_Status = 2
	MsgStatus_DUPLICATED MsgStatus_Status = 3
)

func (MsgStatus_Status) EnumDescriptor

func (MsgStatus_Status) EnumDescriptor() ([]byte, []int)

func (MsgStatus_Status) String

func (x MsgStatus_Status) String() string

type RequestMsg

type RequestMsg struct {
	Broadcast            bool     `protobuf:"varint,1,opt,name=broadcast,proto3" json:"broadcast,omitempty"`
	MessageId            string   `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	Message              []byte   `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RequestMsg) Descriptor

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

func (*RequestMsg) GetBroadcast

func (m *RequestMsg) GetBroadcast() bool

func (*RequestMsg) GetMessage

func (m *RequestMsg) GetMessage() []byte

func (*RequestMsg) GetMessageId

func (m *RequestMsg) GetMessageId() string

func (*RequestMsg) ProtoMessage

func (*RequestMsg) ProtoMessage()

func (*RequestMsg) Reset

func (m *RequestMsg) Reset()

func (*RequestMsg) String

func (m *RequestMsg) String() string

func (*RequestMsg) XXX_DiscardUnknown

func (m *RequestMsg) XXX_DiscardUnknown()

func (*RequestMsg) XXX_Marshal

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

func (*RequestMsg) XXX_Merge

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

func (*RequestMsg) XXX_Size

func (m *RequestMsg) XXX_Size() int

func (*RequestMsg) XXX_Unmarshal

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

type TethysMergerServiceClient

type TethysMergerServiceClient interface {
	MergerService(ctx context.Context, in *RequestMsg, opts ...grpc.CallOption) (*MsgStatus, error)
}

TethysMergerServiceClient is the client API for TethysMergerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTethysMergerServiceClient

func NewTethysMergerServiceClient(cc *grpc.ClientConn) TethysMergerServiceClient

type TethysMergerServiceServer

type TethysMergerServiceServer interface {
	MergerService(context.Context, *RequestMsg) (*MsgStatus, error)
}

TethysMergerServiceServer is the server API for TethysMergerService service.

type UnimplementedTethysMergerServiceServer

type UnimplementedTethysMergerServiceServer struct {
}

UnimplementedTethysMergerServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedTethysMergerServiceServer) MergerService

Jump to

Keyboard shortcuts

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