galiaslookupproto

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AliasLookup_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "galiaslookupproto.AliasLookup",
	HandlerType: (*AliasLookupServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Lookup",
			Handler:    _AliasLookup_Lookup_Handler,
		},
		{
			MethodName: "PrimaryAlias",
			Handler:    _AliasLookup_PrimaryAlias_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "galiaslookup.proto",
}

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

View Source
var File_galiaslookup_proto protoreflect.FileDescriptor

Functions

func RegisterAliasLookupServer

func RegisterAliasLookupServer(s grpc.ServiceRegistrar, srv AliasLookupServer)

Types

type AliasLookupClient

type AliasLookupClient interface {
	Lookup(ctx context.Context, in *LookupRequest, opts ...grpc.CallOption) (*LookupResponse, error)
	PrimaryAlias(ctx context.Context, in *PrimaryAliasRequest, opts ...grpc.CallOption) (*PrimaryAliasResponse, error)
}

AliasLookupClient is the client API for AliasLookup 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.

type AliasLookupServer

type AliasLookupServer interface {
	Lookup(context.Context, *LookupRequest) (*LookupResponse, error)
	PrimaryAlias(context.Context, *PrimaryAliasRequest) (*PrimaryAliasResponse, error)
	// contains filtered or unexported methods
}

AliasLookupServer is the server API for AliasLookup service. All implementations must embed UnimplementedAliasLookupServer for forward compatibility

type LookupRequest

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

func (*LookupRequest) Descriptor deprecated

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

Deprecated: Use LookupRequest.ProtoReflect.Descriptor instead.

func (*LookupRequest) GetAlias

func (x *LookupRequest) GetAlias() string

func (*LookupRequest) ProtoMessage

func (*LookupRequest) ProtoMessage()

func (*LookupRequest) ProtoReflect added in v1.4.7

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

func (*LookupRequest) Reset

func (x *LookupRequest) Reset()

func (*LookupRequest) String

func (x *LookupRequest) String() string

type LookupResponse

type LookupResponse struct {
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupResponse) Descriptor deprecated

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

Deprecated: Use LookupResponse.ProtoReflect.Descriptor instead.

func (*LookupResponse) GetId

func (x *LookupResponse) GetId() []byte

func (*LookupResponse) ProtoMessage

func (*LookupResponse) ProtoMessage()

func (*LookupResponse) ProtoReflect added in v1.4.7

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

func (*LookupResponse) Reset

func (x *LookupResponse) Reset()

func (*LookupResponse) String

func (x *LookupResponse) String() string

type PrimaryAliasRequest

type PrimaryAliasRequest struct {
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*PrimaryAliasRequest) Descriptor deprecated

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

Deprecated: Use PrimaryAliasRequest.ProtoReflect.Descriptor instead.

func (*PrimaryAliasRequest) GetId

func (x *PrimaryAliasRequest) GetId() []byte

func (*PrimaryAliasRequest) ProtoMessage

func (*PrimaryAliasRequest) ProtoMessage()

func (*PrimaryAliasRequest) ProtoReflect added in v1.4.7

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

func (*PrimaryAliasRequest) Reset

func (x *PrimaryAliasRequest) Reset()

func (*PrimaryAliasRequest) String

func (x *PrimaryAliasRequest) String() string

type PrimaryAliasResponse

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

func (*PrimaryAliasResponse) Descriptor deprecated

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

Deprecated: Use PrimaryAliasResponse.ProtoReflect.Descriptor instead.

func (*PrimaryAliasResponse) GetAlias

func (x *PrimaryAliasResponse) GetAlias() string

func (*PrimaryAliasResponse) ProtoMessage

func (*PrimaryAliasResponse) ProtoMessage()

func (*PrimaryAliasResponse) ProtoReflect added in v1.4.7

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

func (*PrimaryAliasResponse) Reset

func (x *PrimaryAliasResponse) Reset()

func (*PrimaryAliasResponse) String

func (x *PrimaryAliasResponse) String() string

type UnimplementedAliasLookupServer

type UnimplementedAliasLookupServer struct {
}

UnimplementedAliasLookupServer must be embedded to have forward compatible implementations.

func (UnimplementedAliasLookupServer) Lookup

func (UnimplementedAliasLookupServer) PrimaryAlias

type UnsafeAliasLookupServer added in v1.4.7

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

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

Jump to

Keyboard shortcuts

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