wkt

package
v0.0.0-...-cc571e5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Gripmock_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "well_known_types.Gripmock",
	HandlerType: (*GripmockServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ApiInfo",
			Handler:    _Gripmock_ApiInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "wkt.proto",
}

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

Functions

func RegisterGripmockServer

func RegisterGripmockServer(s grpc.ServiceRegistrar, srv GripmockServer)

Types

type GripmockClient

type GripmockClient interface {
	// this shows us example on using WKT as dependency
	// api.proto in particular has go_package alias with semicolon
	// "google.golang.org/genproto/protobuf/api;api"
	ApiInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*apipb.Api, error)
}

GripmockClient is the client API for Gripmock 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 NewGripmockClient

func NewGripmockClient(cc grpc.ClientConnInterface) GripmockClient

type GripmockServer

type GripmockServer interface {
	// this shows us example on using WKT as dependency
	// api.proto in particular has go_package alias with semicolon
	// "google.golang.org/genproto/protobuf/api;api"
	ApiInfo(context.Context, *emptypb.Empty) (*apipb.Api, error)
	// contains filtered or unexported methods
}

GripmockServer is the server API for Gripmock service. All implementations must embed UnimplementedGripmockServer for forward compatibility

type UnimplementedGripmockServer

type UnimplementedGripmockServer struct {
}

UnimplementedGripmockServer must be embedded to have forward compatible implementations.

func (UnimplementedGripmockServer) ApiInfo

type UnsafeGripmockServer

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

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

Jump to

Keyboard shortcuts

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