Documentation ¶
Index ¶
Constants ¶
const ( AliasReader_Lookup_FullMethodName = "/aliasreader.AliasReader/Lookup" AliasReader_PrimaryAlias_FullMethodName = "/aliasreader.AliasReader/PrimaryAlias" AliasReader_Aliases_FullMethodName = "/aliasreader.AliasReader/Aliases" )
Variables ¶
var AliasReader_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aliasreader.AliasReader", HandlerType: (*AliasReaderServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Lookup", Handler: _AliasReader_Lookup_Handler, }, { MethodName: "PrimaryAlias", Handler: _AliasReader_PrimaryAlias_Handler, }, { MethodName: "Aliases", Handler: _AliasReader_Aliases_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "aliasreader/aliasreader.proto", }
AliasReader_ServiceDesc is the grpc.ServiceDesc for AliasReader service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_aliasreader_aliasreader_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAliasReaderServer ¶
func RegisterAliasReaderServer(s grpc.ServiceRegistrar, srv AliasReaderServer)
Types ¶
type Alias ¶
type Alias struct { Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` // contains filtered or unexported fields }
func (*Alias) Descriptor
deprecated
func (*Alias) ProtoMessage ¶
func (*Alias) ProtoMessage()
func (*Alias) ProtoReflect ¶
func (x *Alias) ProtoReflect() protoreflect.Message
type AliasList ¶
type AliasList struct { Aliases []string `protobuf:"bytes,1,rep,name=aliases,proto3" json:"aliases,omitempty"` // contains filtered or unexported fields }
func (*AliasList) Descriptor
deprecated
func (*AliasList) GetAliases ¶
func (*AliasList) ProtoMessage ¶
func (*AliasList) ProtoMessage()
func (*AliasList) ProtoReflect ¶
func (x *AliasList) ProtoReflect() protoreflect.Message
type AliasReaderClient ¶
type AliasReaderClient interface { Lookup(ctx context.Context, in *Alias, opts ...grpc.CallOption) (*ID, error) PrimaryAlias(ctx context.Context, in *ID, opts ...grpc.CallOption) (*Alias, error) Aliases(ctx context.Context, in *ID, opts ...grpc.CallOption) (*AliasList, error) }
AliasReaderClient is the client API for AliasReader 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 NewAliasReaderClient ¶
func NewAliasReaderClient(cc grpc.ClientConnInterface) AliasReaderClient
type AliasReaderServer ¶
type AliasReaderServer interface { Lookup(context.Context, *Alias) (*ID, error) PrimaryAlias(context.Context, *ID) (*Alias, error) Aliases(context.Context, *ID) (*AliasList, error) // contains filtered or unexported methods }
AliasReaderServer is the server API for AliasReader service. All implementations must embed UnimplementedAliasReaderServer for forward compatibility
type ID ¶
type ID struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ID) Descriptor
deprecated
func (*ID) ProtoMessage ¶
func (*ID) ProtoMessage()
func (*ID) ProtoReflect ¶
func (x *ID) ProtoReflect() protoreflect.Message
type UnimplementedAliasReaderServer ¶
type UnimplementedAliasReaderServer struct { }
UnimplementedAliasReaderServer must be embedded to have forward compatible implementations.
func (UnimplementedAliasReaderServer) PrimaryAlias ¶
type UnsafeAliasReaderServer ¶
type UnsafeAliasReaderServer interface {
// contains filtered or unexported methods
}
UnsafeAliasReaderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AliasReaderServer will result in compilation errors.