gravity_api_exporter

package
v0.2.22 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExporterServer

func RegisterExporterServer(s *grpc.Server, srv ExporterServer)

Types

type ExporterClient

type ExporterClient interface {
	SendEvent(ctx context.Context, in *SendEventRequest, opts ...grpc.CallOption) (*SendEventReply, error)
	SendEventStream(ctx context.Context, opts ...grpc.CallOption) (Exporter_SendEventStreamClient, error)
}

ExporterClient is the client API for Exporter service.

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

func NewExporterClient

func NewExporterClient(cc *grpc.ClientConn) ExporterClient

type ExporterServer

type ExporterServer interface {
	SendEvent(context.Context, *SendEventRequest) (*SendEventReply, error)
	SendEventStream(Exporter_SendEventStreamServer) error
}

ExporterServer is the server API for Exporter service.

type Exporter_SendEventStreamClient

type Exporter_SendEventStreamClient interface {
	Send(*SendEventRequest) error
	CloseAndRecv() (*SendEventReply, error)
	grpc.ClientStream
}

type Exporter_SendEventStreamServer

type Exporter_SendEventStreamServer interface {
	SendAndClose(*SendEventReply) error
	Recv() (*SendEventRequest, error)
	grpc.ServerStream
}

type SendEventReply

type SendEventReply 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 (*SendEventReply) Descriptor

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

func (*SendEventReply) GetReason

func (m *SendEventReply) GetReason() string

func (*SendEventReply) GetSuccess

func (m *SendEventReply) GetSuccess() bool

func (*SendEventReply) ProtoMessage

func (*SendEventReply) ProtoMessage()

func (*SendEventReply) Reset

func (m *SendEventReply) Reset()

func (*SendEventReply) String

func (m *SendEventReply) String() string

func (*SendEventReply) XXX_DiscardUnknown

func (m *SendEventReply) XXX_DiscardUnknown()

func (*SendEventReply) XXX_Marshal

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

func (*SendEventReply) XXX_Merge

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

func (*SendEventReply) XXX_Size

func (m *SendEventReply) XXX_Size() int

func (*SendEventReply) XXX_Unmarshal

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

type SendEventRequest

type SendEventRequest struct {
	Channel              string   `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,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 (*SendEventRequest) Descriptor

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

func (*SendEventRequest) GetChannel

func (m *SendEventRequest) GetChannel() string

func (*SendEventRequest) GetPayload

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

func (*SendEventRequest) ProtoMessage

func (*SendEventRequest) ProtoMessage()

func (*SendEventRequest) Reset

func (m *SendEventRequest) Reset()

func (*SendEventRequest) String

func (m *SendEventRequest) String() string

func (*SendEventRequest) XXX_DiscardUnknown

func (m *SendEventRequest) XXX_DiscardUnknown()

func (*SendEventRequest) XXX_Marshal

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

func (*SendEventRequest) XXX_Merge

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

func (*SendEventRequest) XXX_Size

func (m *SendEventRequest) XXX_Size() int

func (*SendEventRequest) XXX_Unmarshal

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

type UnimplementedExporterServer

type UnimplementedExporterServer struct {
}

UnimplementedExporterServer can be embedded to have forward compatible implementations.

func (*UnimplementedExporterServer) SendEvent

func (*UnimplementedExporterServer) SendEventStream

Jump to

Keyboard shortcuts

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