Documentation ¶
Index ¶
- Variables
- func RegisterServiceFunctionServer(s grpc.ServiceRegistrar, srv ServiceFunctionServer)
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetResource() string
- func (m *Request) Marshal() (dAtA []byte, err error)
- func (m *Request) MarshalTo(dAtA []byte) (int, error)
- func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) Size() (n int)
- func (m *Request) String() string
- func (m *Request) Unmarshal(dAtA []byte) error
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetResource() string
- func (m *Response) Marshal() (dAtA []byte, err error)
- func (m *Response) MarshalTo(dAtA []byte) (int, error)
- func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) Size() (n int)
- func (m *Response) String() string
- func (m *Response) Unmarshal(dAtA []byte) error
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type ServiceFunctionClient
- type ServiceFunctionServer
- type UnimplementedServiceFunctionServer
- type UnsafeServiceFunctionServer
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthFnservice = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFnservice = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupFnservice = fmt.Errorf("proto: unexpected end of group") )
var ServiceFunction_ServiceDesc = grpc.ServiceDesc{ ServiceName: "fnservice.ServiceFunction", HandlerType: (*ServiceFunctionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Apply", Handler: _ServiceFunction_Apply_Handler, }, { MethodName: "Delete", Handler: _ServiceFunction_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/api/proto/fnservice.proto", }
ServiceFunction_ServiceDesc is the grpc.ServiceDesc for ServiceFunction service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceFunctionServer ¶
func RegisterServiceFunctionServer(s grpc.ServiceRegistrar, srv ServiceFunctionServer)
Types ¶
type Request ¶
type Request struct { Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) GetResource ¶
func (*Request) MarshalToSizedBuffer ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) GetResource ¶
func (*Response) MarshalToSizedBuffer ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type ServiceFunctionClient ¶
type ServiceFunctionClient interface { Apply(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) Delete(ctx context.Context, in *Request, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ServiceFunctionClient is the client API for ServiceFunction 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 NewServiceFunctionClient ¶
func NewServiceFunctionClient(cc grpc.ClientConnInterface) ServiceFunctionClient
type ServiceFunctionServer ¶
type ServiceFunctionServer interface { Apply(context.Context, *Request) (*Response, error) Delete(context.Context, *Request) (*emptypb.Empty, error) // contains filtered or unexported methods }
ServiceFunctionServer is the server API for ServiceFunction service. All implementations must embed UnimplementedServiceFunctionServer for forward compatibility
type UnimplementedServiceFunctionServer ¶
type UnimplementedServiceFunctionServer struct { }
UnimplementedServiceFunctionServer must be embedded to have forward compatible implementations.
type UnsafeServiceFunctionServer ¶
type UnsafeServiceFunctionServer interface {
// contains filtered or unexported methods
}
UnsafeServiceFunctionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceFunctionServer will result in compilation errors.