gravity_api_data_handler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDataHandlerServer

func RegisterDataHandlerServer(s *grpc.Server, srv DataHandlerServer)

Types

type DataHandlerClient

type DataHandlerClient interface {
	Push(ctx context.Context, in *PushRequest, opts ...grpc.CallOption) (*PushReply, error)
}

DataHandlerClient is the client API for DataHandler service.

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

func NewDataHandlerClient

func NewDataHandlerClient(cc *grpc.ClientConn) DataHandlerClient

type DataHandlerServer

type DataHandlerServer interface {
	Push(context.Context, *PushRequest) (*PushReply, error)
}

DataHandlerServer is the server API for DataHandler service.

type PushReply

type PushReply struct {
	Success              bool     `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Reason               string   `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PushReply) Descriptor

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

func (*PushReply) GetReason

func (m *PushReply) GetReason() string

func (*PushReply) GetSuccess

func (m *PushReply) GetSuccess() bool

func (*PushReply) ProtoMessage

func (*PushReply) ProtoMessage()

func (*PushReply) Reset

func (m *PushReply) Reset()

func (*PushReply) String

func (m *PushReply) String() string

func (*PushReply) XXX_DiscardUnknown

func (m *PushReply) XXX_DiscardUnknown()

func (*PushReply) XXX_Marshal

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

func (*PushReply) XXX_Merge

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

func (*PushReply) XXX_Size

func (m *PushReply) XXX_Size() int

func (*PushReply) XXX_Unmarshal

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

type PushRequest

type PushRequest struct {
	EventName            string   `protobuf:"bytes,1,opt,name=eventName,proto3" json:"eventName,omitempty"`
	Payload              []byte   `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PushRequest) Descriptor

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

func (*PushRequest) GetEventName

func (m *PushRequest) GetEventName() string

func (*PushRequest) GetPayload

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

func (*PushRequest) ProtoMessage

func (*PushRequest) ProtoMessage()

func (*PushRequest) Reset

func (m *PushRequest) Reset()

func (*PushRequest) String

func (m *PushRequest) String() string

func (*PushRequest) XXX_DiscardUnknown

func (m *PushRequest) XXX_DiscardUnknown()

func (*PushRequest) XXX_Marshal

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

func (*PushRequest) XXX_Merge

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

func (*PushRequest) XXX_Size

func (m *PushRequest) XXX_Size() int

func (*PushRequest) XXX_Unmarshal

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

type UnimplementedDataHandlerServer

type UnimplementedDataHandlerServer struct {
}

UnimplementedDataHandlerServer can be embedded to have forward compatible implementations.

func (*UnimplementedDataHandlerServer) Push

Jump to

Keyboard shortcuts

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