urlgen

package
v0.0.0-...-a1cfc43 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_grpc_url_gen_urlgen_url_gen_proto protoreflect.FileDescriptor
View Source
var KeyGen_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "urlgen.KeyGen",
	HandlerType: (*KeyGenServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GenerateKey",
			Handler:    _KeyGen_GenerateKey_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "grpc/url_gen/urlgen/url_gen.proto",
}

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

Functions

func RegisterKeyGenServer

func RegisterKeyGenServer(s grpc.ServiceRegistrar, srv KeyGenServer)

Types

type Key

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

func (*Key) Descriptor deprecated

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

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Key) GetKey

func (x *Key) GetKey() string

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) ProtoReflect

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

func (*Key) Reset

func (x *Key) Reset()

func (*Key) String

func (x *Key) String() string

type KeyGenClient

type KeyGenClient interface {
	GenerateKey(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Key, error)
}

KeyGenClient is the client API for KeyGen 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 NewKeyGenClient

func NewKeyGenClient(cc grpc.ClientConnInterface) KeyGenClient

type KeyGenServer

type KeyGenServer interface {
	GenerateKey(context.Context, *empty.Empty) (*Key, error)
	// contains filtered or unexported methods
}

KeyGenServer is the server API for KeyGen service. All implementations must embed UnimplementedKeyGenServer for forward compatibility

type UnimplementedKeyGenServer

type UnimplementedKeyGenServer struct {
}

UnimplementedKeyGenServer must be embedded to have forward compatible implementations.

func (UnimplementedKeyGenServer) GenerateKey

type UnsafeKeyGenServer

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

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

Jump to

Keyboard shortcuts

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