galiasreaderproto

package
v0.0.0-...-7be9c83 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AliasReader_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "galiasreaderproto.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: "galiasreader.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)

View Source
var File_galiasreader_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) Descriptor() ([]byte, []int)

Deprecated: Use Alias.ProtoReflect.Descriptor instead.

func (*Alias) GetAlias

func (x *Alias) GetAlias() string

func (*Alias) ProtoMessage

func (*Alias) ProtoMessage()

func (*Alias) ProtoReflect

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

func (*Alias) Reset

func (x *Alias) Reset()

func (*Alias) String

func (x *Alias) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use AliasList.ProtoReflect.Descriptor instead.

func (*AliasList) GetAliases

func (x *AliasList) GetAliases() []string

func (*AliasList) ProtoMessage

func (*AliasList) ProtoMessage()

func (*AliasList) ProtoReflect

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

func (*AliasList) Reset

func (x *AliasList) Reset()

func (*AliasList) String

func (x *AliasList) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use ID.ProtoReflect.Descriptor instead.

func (*ID) GetId

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

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) ProtoReflect

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

func (*ID) Reset

func (x *ID) Reset()

func (*ID) String

func (x *ID) String() string

type UnimplementedAliasReaderServer

type UnimplementedAliasReaderServer struct {
}

UnimplementedAliasReaderServer must be embedded to have forward compatible implementations.

func (UnimplementedAliasReaderServer) Aliases

func (UnimplementedAliasReaderServer) Lookup

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.

Jump to

Keyboard shortcuts

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