v1

package
v0.0.0-...-af18c7d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_example_service_v1_org_service_proto protoreflect.FileDescriptor
View Source
var OrgService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "service.v1.OrgService",
	HandlerType: (*OrgServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _OrgService_Ping_Handler,
		},
		{
			MethodName: "Pong",
			Handler:    _OrgService_Pong_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "example/service/v1/org_service.proto",
}

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

Functions

func NewOrgServiceAuthzInterceptor

func NewOrgServiceAuthzInterceptor(opts ...authorize.Options) (authorize.AuthzInterceptor, error)

func RegisterOrgServiceServer

func RegisterOrgServiceServer(s grpc.ServiceRegistrar, srv OrgServiceServer)

Types

type OrgServiceClient

type OrgServiceClient interface {
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Pong(ctx context.Context, in *PongRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

OrgServiceClient is the client API for OrgService 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 NewOrgServiceClient

func NewOrgServiceClient(cc grpc.ClientConnInterface) OrgServiceClient

type OrgServiceServer

type OrgServiceServer interface {
	Ping(context.Context, *PingRequest) (*emptypb.Empty, error)
	Pong(context.Context, *PongRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

OrgServiceServer is the server API for OrgService service. All implementations must embed UnimplementedOrgServiceServer for forward compatibility

type PingRequest

type PingRequest struct {
	Ping string `protobuf:"bytes,1,opt,name=ping,proto3" json:"ping,omitempty"`
	// contains filtered or unexported fields
}

func (*PingRequest) Descriptor deprecated

func (*PingRequest) Descriptor() ([]byte, []int)

Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.

func (*PingRequest) GetPing

func (x *PingRequest) GetPing() string

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) ProtoReflect

func (x *PingRequest) ProtoReflect() protoreflect.Message

func (*PingRequest) Reset

func (x *PingRequest) Reset()

func (*PingRequest) String

func (x *PingRequest) String() string

type PongRequest

type PongRequest struct {
	Pong string `protobuf:"bytes,1,opt,name=pong,proto3" json:"pong,omitempty"`
	// contains filtered or unexported fields
}

func (*PongRequest) Descriptor deprecated

func (*PongRequest) Descriptor() ([]byte, []int)

Deprecated: Use PongRequest.ProtoReflect.Descriptor instead.

func (*PongRequest) GetPong

func (x *PongRequest) GetPong() string

func (*PongRequest) ProtoMessage

func (*PongRequest) ProtoMessage()

func (*PongRequest) ProtoReflect

func (x *PongRequest) ProtoReflect() protoreflect.Message

func (*PongRequest) Reset

func (x *PongRequest) Reset()

func (*PongRequest) String

func (x *PongRequest) String() string

type UnimplementedOrgServiceServer

type UnimplementedOrgServiceServer struct {
}

UnimplementedOrgServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOrgServiceServer) Ping

func (UnimplementedOrgServiceServer) Pong

type UnsafeOrgServiceServer

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

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

Jump to

Keyboard shortcuts

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