Documentation ¶
Index ¶
- Variables
- func RegisterAliasLookupServer(s grpc.ServiceRegistrar, srv AliasLookupServer)
- type AliasLookupClient
- type AliasLookupServer
- type LookupRequest
- type LookupResponse
- type PrimaryAliasRequest
- func (*PrimaryAliasRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PrimaryAliasRequest) GetId() []byte
- func (*PrimaryAliasRequest) ProtoMessage()
- func (x *PrimaryAliasRequest) ProtoReflect() protoreflect.Message
- func (x *PrimaryAliasRequest) Reset()
- func (x *PrimaryAliasRequest) String() string
- type PrimaryAliasResponse
- func (*PrimaryAliasResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PrimaryAliasResponse) GetAlias() string
- func (*PrimaryAliasResponse) ProtoMessage()
- func (x *PrimaryAliasResponse) ProtoReflect() protoreflect.Message
- func (x *PrimaryAliasResponse) Reset()
- func (x *PrimaryAliasResponse) String() string
- type UnimplementedAliasLookupServer
- type UnsafeAliasLookupServer
Constants ¶
This section is empty.
Variables ¶
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)
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.
func NewAliasLookupClient ¶
func NewAliasLookupClient(cc grpc.ClientConnInterface) AliasLookupClient
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 ¶
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 ¶
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 ¶
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 ¶
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) Lookup(context.Context, *LookupRequest) (*LookupResponse, error)
func (UnimplementedAliasLookupServer) PrimaryAlias ¶
func (UnimplementedAliasLookupServer) PrimaryAlias(context.Context, *PrimaryAliasRequest) (*PrimaryAliasResponse, error)
type UnsafeAliasLookupServer ¶
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.