fnservicepb

package
v0.0.0-...-c6f6a39 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthFnservice        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFnservice          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFnservice = fmt.Errorf("proto: unexpected end of group")
)
View Source
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) Descriptor() ([]byte, []int)

func (*Request) GetResource

func (m *Request) GetResource() string

func (*Request) Marshal

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

func (*Request) MarshalTo

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

func (*Request) MarshalToSizedBuffer

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

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) Size

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

func (*Request) String

func (m *Request) String() string

func (*Request) Unmarshal

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

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

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

func (*Request) XXX_Merge

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

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Response) GetResource

func (m *Response) GetResource() string

func (*Response) Marshal

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

func (*Response) MarshalTo

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

func (*Response) MarshalToSizedBuffer

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

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) Size

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

func (*Response) String

func (m *Response) String() string

func (*Response) Unmarshal

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

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

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

func (*Response) XXX_Merge

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

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

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

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.

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.

func (UnimplementedServiceFunctionServer) Apply

func (UnimplementedServiceFunctionServer) Delete

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.

Jump to

Keyboard shortcuts

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