faas

package
v2.0.61 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthFunction        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFunction          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFunction = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterFunctionServer

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

Types

type FunctionClient

type FunctionClient interface {
	Call(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, 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.ClientConn) FunctionClient

type FunctionServer

type FunctionServer interface {
	Call(context.Context, *Message) (*Message, error)
}

FunctionServer is the server API for Function service.

type Message

type Message struct {
	ID       uint64            `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	Payload  []byte            `protobuf:"bytes,3,opt,name=Payload,proto3" json:"Payload,omitempty"`
}

Message message

func NewPopulatedMessage

func NewPopulatedMessage(r randyFunction, easy bool) *Message

func (*Message) Descriptor

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

func (*Message) Equal

func (this *Message) Equal(that interface{}) bool

func (*Message) GoString

func (this *Message) GoString() string

func (*Message) Marshal

func (m *Message) Marshal() (dAtA []byte, err error)

func (*Message) MarshalTo

func (m *Message) MarshalTo(dAtA []byte) (int, error)

func (*Message) MarshalToSizedBuffer

func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) Size

func (m *Message) Size() (n int)

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal

func (m *Message) Unmarshal(dAtA []byte) error

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

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

func (*Message) XXX_Merge

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

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

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

type UnimplementedFunctionServer

type UnimplementedFunctionServer struct {
}

UnimplementedFunctionServer can be embedded to have forward compatible implementations.

func (*UnimplementedFunctionServer) Call

Jump to

Keyboard shortcuts

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