Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_tinyfaas_proto protoreflect.FileDescriptor
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) GetFunctionIdentifier ¶
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
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) GetResponse ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
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 ¶
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.
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.