Documentation ¶
Index ¶
Constants ¶
const (
Gripmock_ApiInfo_FullMethodName = "/well_known_types.Gripmock/ApiInfo"
)
Variables ¶
var File_wkt_proto protoreflect.FileDescriptor
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.
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.