proto

package
Version: v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: None detected not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_service_proto protoreflect.FileDescriptor

Functions

func RegisterFunctionServer

func RegisterFunctionServer(s *grpc.Server, srv FunctionServer)

Types

type FunctionClient

type FunctionClient interface {
	Process(ctx context.Context, in *ProcessRecordRequest, opts ...grpc.CallOption) (*ProcessRecordResponse, error)
}

FunctionClient is the client API for Function service.

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

func NewFunctionClient

func NewFunctionClient(cc grpc.ClientConnInterface) FunctionClient

type FunctionServer

type FunctionServer interface {
	Process(context.Context, *ProcessRecordRequest) (*ProcessRecordResponse, error)
}

FunctionServer is the server API for Function service.

type ProcessRecordRequest

type ProcessRecordRequest struct {
	Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	// contains filtered or unexported fields
}

func (*ProcessRecordRequest) Descriptor deprecated

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

Deprecated: Use ProcessRecordRequest.ProtoReflect.Descriptor instead.

func (*ProcessRecordRequest) GetRecords

func (x *ProcessRecordRequest) GetRecords() []*Record

func (*ProcessRecordRequest) ProtoMessage

func (*ProcessRecordRequest) ProtoMessage()

func (*ProcessRecordRequest) ProtoReflect

func (x *ProcessRecordRequest) ProtoReflect() protoreflect.Message

func (*ProcessRecordRequest) Reset

func (x *ProcessRecordRequest) Reset()

func (*ProcessRecordRequest) String

func (x *ProcessRecordRequest) String() string

type ProcessRecordResponse

type ProcessRecordResponse struct {
	Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	// contains filtered or unexported fields
}

func (*ProcessRecordResponse) Descriptor deprecated

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

Deprecated: Use ProcessRecordResponse.ProtoReflect.Descriptor instead.

func (*ProcessRecordResponse) GetRecords

func (x *ProcessRecordResponse) GetRecords() []*Record

func (*ProcessRecordResponse) ProtoMessage

func (*ProcessRecordResponse) ProtoMessage()

func (*ProcessRecordResponse) ProtoReflect

func (x *ProcessRecordResponse) ProtoReflect() protoreflect.Message

func (*ProcessRecordResponse) Reset

func (x *ProcessRecordResponse) Reset()

func (*ProcessRecordResponse) String

func (x *ProcessRecordResponse) String() string

type Record

type Record struct {
	Key       string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value     string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Timestamp int64  `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*Record) Descriptor deprecated

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetKey

func (x *Record) GetKey() string

func (*Record) GetTimestamp

func (x *Record) GetTimestamp() int64

func (*Record) GetValue

func (x *Record) GetValue() string

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

func (x *Record) ProtoReflect() protoreflect.Message

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

type UnimplementedFunctionServer

type UnimplementedFunctionServer struct {
}

UnimplementedFunctionServer can be embedded to have forward compatible implementations.

func (*UnimplementedFunctionServer) Process

Source Files

Jump to

Keyboard shortcuts

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