tinyfaas

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_tinyfaas_proto protoreflect.FileDescriptor
View Source
var TinyFaaS_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "openfogstack.tinyfaas.tinyfaas.TinyFaaS",
	HandlerType: (*TinyFaaSServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Request",
			Handler:    _TinyFaaS_Request_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "tinyfaas.proto",
}

TinyFaaS_ServiceDesc is the grpc.ServiceDesc for TinyFaaS service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTinyFaaSServer

func RegisterTinyFaaSServer(s grpc.ServiceRegistrar, srv TinyFaaSServer)

Types

type Data

type Data struct {
	FunctionIdentifier string `protobuf:"bytes,1,opt,name=functionIdentifier,proto3" json:"functionIdentifier,omitempty"`
	Data               string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetData

func (x *Data) GetData() string

func (*Data) GetFunctionIdentifier

func (x *Data) GetFunctionIdentifier() string

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

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

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

type Response

type Response struct {
	Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetResponse

func (x *Response) GetResponse() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type TinyFaaSClient

type TinyFaaSClient interface {
	Request(ctx context.Context, in *Data, opts ...grpc.CallOption) (*Response, error)
}

TinyFaaSClient is the client API for TinyFaaS service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewTinyFaaSClient

func NewTinyFaaSClient(cc grpc.ClientConnInterface) TinyFaaSClient

type TinyFaaSServer

type TinyFaaSServer interface {
	Request(context.Context, *Data) (*Response, error)
}

TinyFaaSServer is the server API for TinyFaaS service. All implementations should embed UnimplementedTinyFaaSServer for forward compatibility

type UnimplementedTinyFaaSServer

type UnimplementedTinyFaaSServer struct {
}

UnimplementedTinyFaaSServer should be embedded to have forward compatible implementations.

func (UnimplementedTinyFaaSServer) Request

type UnsafeTinyFaaSServer

type UnsafeTinyFaaSServer interface {
	// contains filtered or unexported methods
}

UnsafeTinyFaaSServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TinyFaaSServer will result in compilation errors.

Jump to

Keyboard shortcuts

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