servicev1

package
v0.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const OperationSrvPingPing = "/saas.api.ping.servicev1.SrvPing/Ping"
View Source
const (
	SrvPing_Ping_FullMethodName = "/saas.api.ping.servicev1.SrvPing/Ping"
)

Variables

View Source
var File_api_ping_service_v1_services_ping_service_v1_proto protoreflect.FileDescriptor
View Source
var SrvPing_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "saas.api.ping.servicev1.SrvPing",
	HandlerType: (*SrvPingServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _SrvPing_Ping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/ping-service/v1/services/ping.service.v1.proto",
}

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

Functions

func RegisterSrvPingHTTPServer

func RegisterSrvPingHTTPServer(s *http.Server, srv SrvPingHTTPServer)

func RegisterSrvPingServer

func RegisterSrvPingServer(s grpc.ServiceRegistrar, srv SrvPingServer)

Types

type SrvPingClient

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

SrvPingClient is the client API for SrvPing 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 NewSrvPingClient

func NewSrvPingClient(cc grpc.ClientConnInterface) SrvPingClient

type SrvPingHTTPClient

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

func NewSrvPingHTTPClient

func NewSrvPingHTTPClient(client *http.Client) SrvPingHTTPClient

type SrvPingHTTPClientImpl

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

func (*SrvPingHTTPClientImpl) Ping

type SrvPingHTTPServer

type SrvPingHTTPServer interface {
	// Ping Ping ping
	//
	// 测试PingV1
	Ping(context.Context, *resources.PingReq) (*resources.PingResp, error)
}

type SrvPingServer

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

SrvPingServer is the server API for SrvPing service. All implementations must embed UnimplementedSrvPingServer for forward compatibility

type UnimplementedSrvPingServer

type UnimplementedSrvPingServer struct {
}

UnimplementedSrvPingServer must be embedded to have forward compatible implementations.

func (UnimplementedSrvPingServer) Ping

type UnsafeSrvPingServer

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

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

Jump to

Keyboard shortcuts

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