Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSrvTestdataHTTPServer(s *http.Server, srv SrvTestdataHTTPServer)
- func RegisterSrvTestdataServer(s grpc.ServiceRegistrar, srv SrvTestdataServer)
- type SrvTestdataClient
- type SrvTestdataHTTPClient
- type SrvTestdataHTTPClientImpl
- func (c *SrvTestdataHTTPClientImpl) Delete(ctx context.Context, in *resources.TestReq, opts ...http.CallOption) (*resources.TestResp, error)
- func (c *SrvTestdataHTTPClientImpl) Get(ctx context.Context, in *resources.TestReq, opts ...http.CallOption) (*resources.TestResp, error)
- func (c *SrvTestdataHTTPClientImpl) Patch(ctx context.Context, in *resources.TestReq, opts ...http.CallOption) (*resources.TestResp, error)
- func (c *SrvTestdataHTTPClientImpl) Post(ctx context.Context, in *resources.TestReq, opts ...http.CallOption) (*resources.TestResp, error)
- func (c *SrvTestdataHTTPClientImpl) Put(ctx context.Context, in *resources.TestReq, opts ...http.CallOption) (*resources.TestResp, error)
- func (c *SrvTestdataHTTPClientImpl) Websocket(ctx context.Context, in *resources.TestReq, opts ...http.CallOption) (*resources.TestResp, error)
- type SrvTestdataHTTPServer
- type SrvTestdataServer
- type SrvTestdata_BidirectionalStreamClient
- type SrvTestdata_BidirectionalStreamServer
- type SrvTestdata_ClientToServerClient
- type SrvTestdata_ClientToServerServer
- type SrvTestdata_ServerToClientClient
- type SrvTestdata_ServerToClientServer
- type UnimplementedSrvTestdataServer
- func (UnimplementedSrvTestdataServer) BidirectionalStream(SrvTestdata_BidirectionalStreamServer) error
- func (UnimplementedSrvTestdataServer) ClientToServer(SrvTestdata_ClientToServerServer) error
- func (UnimplementedSrvTestdataServer) Delete(context.Context, *resources.TestReq) (*resources.TestResp, error)
- func (UnimplementedSrvTestdataServer) Get(context.Context, *resources.TestReq) (*resources.TestResp, error)
- func (UnimplementedSrvTestdataServer) Patch(context.Context, *resources.TestReq) (*resources.TestResp, error)
- func (UnimplementedSrvTestdataServer) Post(context.Context, *resources.TestReq) (*resources.TestResp, error)
- func (UnimplementedSrvTestdataServer) Put(context.Context, *resources.TestReq) (*resources.TestResp, error)
- func (UnimplementedSrvTestdataServer) ServerToClient(*resources.TestReq, SrvTestdata_ServerToClientServer) error
- func (UnimplementedSrvTestdataServer) Websocket(context.Context, *resources.TestReq) (*resources.TestResp, error)
- type UnsafeSrvTestdataServer
Constants ¶
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" )
const OperationSrvTestdataDelete = "/saas.api.testdata.servicev1.SrvTestdata/Delete"
const OperationSrvTestdataGet = "/saas.api.testdata.servicev1.SrvTestdata/Get"
const OperationSrvTestdataPatch = "/saas.api.testdata.servicev1.SrvTestdata/Patch"
const OperationSrvTestdataPost = "/saas.api.testdata.servicev1.SrvTestdata/Post"
const OperationSrvTestdataPut = "/saas.api.testdata.servicev1.SrvTestdata/Put"
const OperationSrvTestdataWebsocket = "/saas.api.testdata.servicev1.SrvTestdata/Websocket"
Variables ¶
var File_api_testdata_service_v1_services_testdata_service_v1_proto protoreflect.FileDescriptor
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.
func NewSrvTestdataClient ¶
func NewSrvTestdataClient(cc grpc.ClientConnInterface) SrvTestdataClient
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 (c *SrvTestdataHTTPClientImpl) Delete(ctx context.Context, in *resources.TestReq, opts ...http.CallOption) (*resources.TestResp, error)
func (*SrvTestdataHTTPClientImpl) Get ¶
func (c *SrvTestdataHTTPClientImpl) Get(ctx context.Context, in *resources.TestReq, opts ...http.CallOption) (*resources.TestResp, error)
func (*SrvTestdataHTTPClientImpl) Patch ¶
func (c *SrvTestdataHTTPClientImpl) Patch(ctx context.Context, in *resources.TestReq, opts ...http.CallOption) (*resources.TestResp, error)
func (*SrvTestdataHTTPClientImpl) Post ¶
func (c *SrvTestdataHTTPClientImpl) Post(ctx context.Context, in *resources.TestReq, opts ...http.CallOption) (*resources.TestResp, error)
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_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) BidirectionalStream(SrvTestdata_BidirectionalStreamServer) error
func (UnimplementedSrvTestdataServer) ClientToServer ¶
func (UnimplementedSrvTestdataServer) ClientToServer(SrvTestdata_ClientToServerServer) error
func (UnimplementedSrvTestdataServer) ServerToClient ¶
func (UnimplementedSrvTestdataServer) ServerToClient(*resources.TestReq, SrvTestdata_ServerToClientServer) error
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.