gravity_api_adapter

package
v0.2.28 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAdapterServer

func RegisterAdapterServer(s *grpc.Server, srv AdapterServer)

Types

type AdapterClient

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

AdapterClient is the client API for Adapter service.

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

func NewAdapterClient

func NewAdapterClient(cc *grpc.ClientConn) AdapterClient

type AdapterServer

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

AdapterServer is the server API for Adapter service.

type Adapter_SendEventStreamClient

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

type Adapter_SendEventStreamServer

type Adapter_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 {
	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 (*SendEventRequest) Descriptor

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

func (*SendEventRequest) GetEventName

func (m *SendEventRequest) GetEventName() 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 UnimplementedAdapterServer

type UnimplementedAdapterServer struct {
}

UnimplementedAdapterServer can be embedded to have forward compatible implementations.

func (*UnimplementedAdapterServer) SendEvent

func (*UnimplementedAdapterServer) SendEventStream

Jump to

Keyboard shortcuts

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