servicev1

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SrvTestdata_Websocket_FullMethodName           = "/saas.api.testdata.servicev1.SrvTestdata/Websocket"
	SrvTestdata_Get_FullMethodName                 = "/saas.api.testdata.servicev1.SrvTestdata/Get"
	SrvTestdata_Put_FullMethodName                 = "/saas.api.testdata.servicev1.SrvTestdata/Put"
	SrvTestdata_Post_FullMethodName                = "/saas.api.testdata.servicev1.SrvTestdata/Post"
	SrvTestdata_Delete_FullMethodName              = "/saas.api.testdata.servicev1.SrvTestdata/Delete"
	SrvTestdata_Patch_FullMethodName               = "/saas.api.testdata.servicev1.SrvTestdata/Patch"
	SrvTestdata_ServerToClient_FullMethodName      = "/saas.api.testdata.servicev1.SrvTestdata/ServerToClient"
	SrvTestdata_ClientToServer_FullMethodName      = "/saas.api.testdata.servicev1.SrvTestdata/ClientToServer"
	SrvTestdata_BidirectionalStream_FullMethodName = "/saas.api.testdata.servicev1.SrvTestdata/BidirectionalStream"
)
View Source
const OperationSrvTestdataDelete = "/saas.api.testdata.servicev1.SrvTestdata/Delete"
View Source
const OperationSrvTestdataGet = "/saas.api.testdata.servicev1.SrvTestdata/Get"
View Source
const OperationSrvTestdataPatch = "/saas.api.testdata.servicev1.SrvTestdata/Patch"
View Source
const OperationSrvTestdataPost = "/saas.api.testdata.servicev1.SrvTestdata/Post"
View Source
const OperationSrvTestdataPut = "/saas.api.testdata.servicev1.SrvTestdata/Put"
View Source
const OperationSrvTestdataWebsocket = "/saas.api.testdata.servicev1.SrvTestdata/Websocket"

Variables

View Source
var File_api_testdata_service_v1_services_testdata_service_v1_proto protoreflect.FileDescriptor
View Source
var SrvTestdata_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "saas.api.testdata.servicev1.SrvTestdata",
	HandlerType: (*SrvTestdataServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Websocket",
			Handler:    _SrvTestdata_Websocket_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _SrvTestdata_Get_Handler,
		},
		{
			MethodName: "Put",
			Handler:    _SrvTestdata_Put_Handler,
		},
		{
			MethodName: "Post",
			Handler:    _SrvTestdata_Post_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _SrvTestdata_Delete_Handler,
		},
		{
			MethodName: "Patch",
			Handler:    _SrvTestdata_Patch_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ServerToClient",
			Handler:       _SrvTestdata_ServerToClient_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ClientToServer",
			Handler:       _SrvTestdata_ClientToServer_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "BidirectionalStream",
			Handler:       _SrvTestdata_BidirectionalStream_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "api/testdata-service/v1/services/testdata.service.v1.proto",
}

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

Functions

func RegisterSrvTestdataHTTPServer

func RegisterSrvTestdataHTTPServer(s *http.Server, srv SrvTestdataHTTPServer)

func RegisterSrvTestdataServer

func RegisterSrvTestdataServer(s grpc.ServiceRegistrar, srv SrvTestdataServer)

Types

type SrvTestdataClient

type SrvTestdataClient interface {
	// Websocket websocket
	Websocket(ctx context.Context, in *resources.TestReq, opts ...grpc.CallOption) (*resources.TestResp, error)
	// Get Get
	Get(ctx context.Context, in *resources.TestReq, opts ...grpc.CallOption) (*resources.TestResp, error)
	// Put Put
	Put(ctx context.Context, in *resources.TestReq, opts ...grpc.CallOption) (*resources.TestResp, error)
	// Post Post
	Post(ctx context.Context, in *resources.TestReq, opts ...grpc.CallOption) (*resources.TestResp, error)
	// Delete Delete
	Delete(ctx context.Context, in *resources.TestReq, opts ...grpc.CallOption) (*resources.TestResp, error)
	// Patch Patch
	Patch(ctx context.Context, in *resources.TestReq, opts ...grpc.CallOption) (*resources.TestResp, error)
	// ServerToClient A server-to-client streaming RPC.
	ServerToClient(ctx context.Context, in *resources.TestReq, opts ...grpc.CallOption) (SrvTestdata_ServerToClientClient, error)
	// ClientToServer A client-to-server streaming RPC.
	ClientToServer(ctx context.Context, opts ...grpc.CallOption) (SrvTestdata_ClientToServerClient, error)
	// BidirectionalStream A Bidirectional streaming RPC.
	BidirectionalStream(ctx context.Context, opts ...grpc.CallOption) (SrvTestdata_BidirectionalStreamClient, error)
}

SrvTestdataClient is the client API for SrvTestdata 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 SrvTestdataHTTPClient

type SrvTestdataHTTPClient interface {
	Delete(ctx context.Context, req *resources.TestReq, opts ...http.CallOption) (rsp *resources.TestResp, err error)
	Get(ctx context.Context, req *resources.TestReq, opts ...http.CallOption) (rsp *resources.TestResp, err error)
	Patch(ctx context.Context, req *resources.TestReq, opts ...http.CallOption) (rsp *resources.TestResp, err error)
	Post(ctx context.Context, req *resources.TestReq, opts ...http.CallOption) (rsp *resources.TestResp, err error)
	Put(ctx context.Context, req *resources.TestReq, opts ...http.CallOption) (rsp *resources.TestResp, err error)
	Websocket(ctx context.Context, req *resources.TestReq, opts ...http.CallOption) (rsp *resources.TestResp, err error)
}

func NewSrvTestdataHTTPClient

func NewSrvTestdataHTTPClient(client *http.Client) SrvTestdataHTTPClient

type SrvTestdataHTTPClientImpl

type SrvTestdataHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*SrvTestdataHTTPClientImpl) Delete

func (*SrvTestdataHTTPClientImpl) Get

func (*SrvTestdataHTTPClientImpl) Patch

func (*SrvTestdataHTTPClientImpl) Post

func (*SrvTestdataHTTPClientImpl) Put

func (*SrvTestdataHTTPClientImpl) Websocket

type SrvTestdataHTTPServer

type SrvTestdataHTTPServer interface {
	// Delete Delete Delete
	Delete(context.Context, *resources.TestReq) (*resources.TestResp, error)
	// Get Get Get
	Get(context.Context, *resources.TestReq) (*resources.TestResp, error)
	// Patch Patch Patch
	Patch(context.Context, *resources.TestReq) (*resources.TestResp, error)
	// Post Post Post
	Post(context.Context, *resources.TestReq) (*resources.TestResp, error)
	// Put Put Put
	Put(context.Context, *resources.TestReq) (*resources.TestResp, error)
	// Websocket Websocket websocket
	Websocket(context.Context, *resources.TestReq) (*resources.TestResp, error)
}

type SrvTestdataServer

type SrvTestdataServer interface {
	// Websocket websocket
	Websocket(context.Context, *resources.TestReq) (*resources.TestResp, error)
	// Get Get
	Get(context.Context, *resources.TestReq) (*resources.TestResp, error)
	// Put Put
	Put(context.Context, *resources.TestReq) (*resources.TestResp, error)
	// Post Post
	Post(context.Context, *resources.TestReq) (*resources.TestResp, error)
	// Delete Delete
	Delete(context.Context, *resources.TestReq) (*resources.TestResp, error)
	// Patch Patch
	Patch(context.Context, *resources.TestReq) (*resources.TestResp, error)
	// ServerToClient A server-to-client streaming RPC.
	ServerToClient(*resources.TestReq, SrvTestdata_ServerToClientServer) error
	// ClientToServer A client-to-server streaming RPC.
	ClientToServer(SrvTestdata_ClientToServerServer) error
	// BidirectionalStream A Bidirectional streaming RPC.
	BidirectionalStream(SrvTestdata_BidirectionalStreamServer) error
	// contains filtered or unexported methods
}

SrvTestdataServer is the server API for SrvTestdata service. All implementations must embed UnimplementedSrvTestdataServer for forward compatibility

type SrvTestdata_BidirectionalStreamClient

type SrvTestdata_BidirectionalStreamClient interface {
	Send(*resources.TestReq) error
	Recv() (*resources.TestResp, error)
	grpc.ClientStream
}

type SrvTestdata_BidirectionalStreamServer

type SrvTestdata_BidirectionalStreamServer interface {
	Send(*resources.TestResp) error
	Recv() (*resources.TestReq, error)
	grpc.ServerStream
}

type SrvTestdata_ClientToServerClient

type SrvTestdata_ClientToServerClient interface {
	Send(*resources.TestReq) error
	CloseAndRecv() (*resources.TestResp, error)
	grpc.ClientStream
}

type SrvTestdata_ClientToServerServer

type SrvTestdata_ClientToServerServer interface {
	SendAndClose(*resources.TestResp) error
	Recv() (*resources.TestReq, error)
	grpc.ServerStream
}

type SrvTestdata_ServerToClientClient

type SrvTestdata_ServerToClientClient interface {
	Recv() (*resources.TestResp, error)
	grpc.ClientStream
}

type SrvTestdata_ServerToClientServer

type SrvTestdata_ServerToClientServer interface {
	Send(*resources.TestResp) error
	grpc.ServerStream
}

type UnimplementedSrvTestdataServer

type UnimplementedSrvTestdataServer struct {
}

UnimplementedSrvTestdataServer must be embedded to have forward compatible implementations.

func (UnimplementedSrvTestdataServer) BidirectionalStream

func (UnimplementedSrvTestdataServer) ClientToServer

func (UnimplementedSrvTestdataServer) Delete

func (UnimplementedSrvTestdataServer) Get

func (UnimplementedSrvTestdataServer) Patch

func (UnimplementedSrvTestdataServer) Post

func (UnimplementedSrvTestdataServer) Put

func (UnimplementedSrvTestdataServer) ServerToClient

func (UnimplementedSrvTestdataServer) Websocket

type UnsafeSrvTestdataServer

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

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

Jump to

Keyboard shortcuts

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