servicev1

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const OperationSrvTestV1Ping = "/saas.api.nodeid_test.servicev1.SrvTestV1/Ping"
View Source
const (
	SrvTestV1_Ping_FullMethodName = "/saas.api.nodeid_test.servicev1.SrvTestV1/Ping"
)

Variables

View Source
var File_api_test_service_v1_services_test_service_v1_proto protoreflect.FileDescriptor
View Source
var SrvTestV1_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "saas.api.nodeid_test.servicev1.SrvTestV1",
	HandlerType: (*SrvTestV1Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _SrvTestV1_Ping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/test-service/v1/services/test.service.v1.proto",
}

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

Functions

func RegisterSrvTestV1HTTPServer

func RegisterSrvTestV1HTTPServer(s *http.Server, srv SrvTestV1HTTPServer)

func RegisterSrvTestV1Server

func RegisterSrvTestV1Server(s grpc.ServiceRegistrar, srv SrvTestV1Server)

Types

type SrvTestV1Client

type SrvTestV1Client interface {
	// ping
	Ping(ctx context.Context, in *resources.PingReq, opts ...grpc.CallOption) (*resources.PingResp, error)
}

SrvTestV1Client is the client API for SrvTestV1 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 NewSrvTestV1Client

func NewSrvTestV1Client(cc grpc.ClientConnInterface) SrvTestV1Client

type SrvTestV1HTTPClient

type SrvTestV1HTTPClient interface {
	Ping(ctx context.Context, req *resources.PingReq, opts ...http.CallOption) (rsp *resources.PingResp, err error)
}

func NewSrvTestV1HTTPClient

func NewSrvTestV1HTTPClient(client *http.Client) SrvTestV1HTTPClient

type SrvTestV1HTTPClientImpl

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

func (*SrvTestV1HTTPClientImpl) Ping

type SrvTestV1HTTPServer

type SrvTestV1HTTPServer interface {
	// Ping ping
	Ping(context.Context, *resources.PingReq) (*resources.PingResp, error)
}

type SrvTestV1Server

type SrvTestV1Server interface {
	// ping
	Ping(context.Context, *resources.PingReq) (*resources.PingResp, error)
	// contains filtered or unexported methods
}

SrvTestV1Server is the server API for SrvTestV1 service. All implementations must embed UnimplementedSrvTestV1Server for forward compatibility

type UnimplementedSrvTestV1Server

type UnimplementedSrvTestV1Server struct {
}

UnimplementedSrvTestV1Server must be embedded to have forward compatible implementations.

func (UnimplementedSrvTestV1Server) Ping

type UnsafeSrvTestV1Server

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

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

Jump to

Keyboard shortcuts

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