Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type GenerateIdentifiersRequest
- func (*GenerateIdentifiersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateIdentifiersRequest) GetApplication() string
- func (x *GenerateIdentifiersRequest) GetCount() uint64
- func (*GenerateIdentifiersRequest) ProtoMessage()
- func (x *GenerateIdentifiersRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateIdentifiersRequest) Reset()
- func (x *GenerateIdentifiersRequest) String() string
- type GenerateIdentifiersResponse
- func (*GenerateIdentifiersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateIdentifiersResponse) GetIds() []string
- func (x *GenerateIdentifiersResponse) GetMeta() map[string]string
- func (*GenerateIdentifiersResponse) ProtoMessage()
- func (x *GenerateIdentifiersResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateIdentifiersResponse) Reset()
- func (x *GenerateIdentifiersResponse) String() string
- type MapIdentifiersRequest
- func (*MapIdentifiersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MapIdentifiersRequest) GetIds() []string
- func (*MapIdentifiersRequest) ProtoMessage()
- func (x *MapIdentifiersRequest) ProtoReflect() protoreflect.Message
- func (x *MapIdentifiersRequest) Reset()
- func (x *MapIdentifiersRequest) String() string
- type MapIdentifiersResponse
- func (*MapIdentifiersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MapIdentifiersResponse) GetIds() []string
- func (x *MapIdentifiersResponse) GetMeta() map[string]string
- func (*MapIdentifiersResponse) ProtoMessage()
- func (x *MapIdentifiersResponse) ProtoReflect() protoreflect.Message
- func (x *MapIdentifiersResponse) Reset()
- func (x *MapIdentifiersResponse) String() string
- type ServiceClient
- type ServiceServer
- type UnimplementedServiceServer
- type UnsafeServiceServer
Constants ¶
const ( Service_GenerateIdentifiers_FullMethodName = "/bezeichner.v1.Service/GenerateIdentifiers" Service_MapIdentifiers_FullMethodName = "/bezeichner.v1.Service/MapIdentifiers" )
Variables ¶
var File_bezeichner_v1_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bezeichner.v1.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GenerateIdentifiers", Handler: _Service_GenerateIdentifiers_Handler, }, { MethodName: "MapIdentifiers", Handler: _Service_MapIdentifiers_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "bezeichner/v1/service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type GenerateIdentifiersRequest ¶ added in v1.8.0
type GenerateIdentifiersRequest struct { Application string `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"` Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
GenerateIdentifiersRequest for a specific application.
func (*GenerateIdentifiersRequest) Descriptor
deprecated
added in
v1.8.0
func (*GenerateIdentifiersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateIdentifiersRequest.ProtoReflect.Descriptor instead.
func (*GenerateIdentifiersRequest) GetApplication ¶ added in v1.8.0
func (x *GenerateIdentifiersRequest) GetApplication() string
func (*GenerateIdentifiersRequest) GetCount ¶ added in v1.8.0
func (x *GenerateIdentifiersRequest) GetCount() uint64
func (*GenerateIdentifiersRequest) ProtoMessage ¶ added in v1.8.0
func (*GenerateIdentifiersRequest) ProtoMessage()
func (*GenerateIdentifiersRequest) ProtoReflect ¶ added in v1.8.0
func (x *GenerateIdentifiersRequest) ProtoReflect() protoreflect.Message
func (*GenerateIdentifiersRequest) Reset ¶ added in v1.8.0
func (x *GenerateIdentifiersRequest) Reset()
func (*GenerateIdentifiersRequest) String ¶ added in v1.8.0
func (x *GenerateIdentifiersRequest) String() string
type GenerateIdentifiersResponse ¶ added in v1.8.0
type GenerateIdentifiersResponse struct { Meta map[string]string `` /* 149-byte string literal not displayed */ Ids []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
GenerateIdentifiersResponse for a specific application.
func (*GenerateIdentifiersResponse) Descriptor
deprecated
added in
v1.8.0
func (*GenerateIdentifiersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateIdentifiersResponse.ProtoReflect.Descriptor instead.
func (*GenerateIdentifiersResponse) GetIds ¶ added in v1.8.0
func (x *GenerateIdentifiersResponse) GetIds() []string
func (*GenerateIdentifiersResponse) GetMeta ¶ added in v1.30.0
func (x *GenerateIdentifiersResponse) GetMeta() map[string]string
func (*GenerateIdentifiersResponse) ProtoMessage ¶ added in v1.8.0
func (*GenerateIdentifiersResponse) ProtoMessage()
func (*GenerateIdentifiersResponse) ProtoReflect ¶ added in v1.8.0
func (x *GenerateIdentifiersResponse) ProtoReflect() protoreflect.Message
func (*GenerateIdentifiersResponse) Reset ¶ added in v1.8.0
func (x *GenerateIdentifiersResponse) Reset()
func (*GenerateIdentifiersResponse) String ¶ added in v1.8.0
func (x *GenerateIdentifiersResponse) String() string
type MapIdentifiersRequest ¶ added in v1.8.0
type MapIdentifiersRequest struct { Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
MapIdentifiersRequest for some identifiers.
func (*MapIdentifiersRequest) Descriptor
deprecated
added in
v1.8.0
func (*MapIdentifiersRequest) Descriptor() ([]byte, []int)
Deprecated: Use MapIdentifiersRequest.ProtoReflect.Descriptor instead.
func (*MapIdentifiersRequest) GetIds ¶ added in v1.8.0
func (x *MapIdentifiersRequest) GetIds() []string
func (*MapIdentifiersRequest) ProtoMessage ¶ added in v1.8.0
func (*MapIdentifiersRequest) ProtoMessage()
func (*MapIdentifiersRequest) ProtoReflect ¶ added in v1.8.0
func (x *MapIdentifiersRequest) ProtoReflect() protoreflect.Message
func (*MapIdentifiersRequest) Reset ¶ added in v1.8.0
func (x *MapIdentifiersRequest) Reset()
func (*MapIdentifiersRequest) String ¶ added in v1.8.0
func (x *MapIdentifiersRequest) String() string
type MapIdentifiersResponse ¶ added in v1.8.0
type MapIdentifiersResponse struct { Meta map[string]string `` /* 149-byte string literal not displayed */ Ids []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
MapIdentifiersResponse for some identifiers.
func (*MapIdentifiersResponse) Descriptor
deprecated
added in
v1.8.0
func (*MapIdentifiersResponse) Descriptor() ([]byte, []int)
Deprecated: Use MapIdentifiersResponse.ProtoReflect.Descriptor instead.
func (*MapIdentifiersResponse) GetIds ¶ added in v1.8.0
func (x *MapIdentifiersResponse) GetIds() []string
func (*MapIdentifiersResponse) GetMeta ¶ added in v1.30.0
func (x *MapIdentifiersResponse) GetMeta() map[string]string
func (*MapIdentifiersResponse) ProtoMessage ¶ added in v1.8.0
func (*MapIdentifiersResponse) ProtoMessage()
func (*MapIdentifiersResponse) ProtoReflect ¶ added in v1.8.0
func (x *MapIdentifiersResponse) ProtoReflect() protoreflect.Message
func (*MapIdentifiersResponse) Reset ¶ added in v1.8.0
func (x *MapIdentifiersResponse) Reset()
func (*MapIdentifiersResponse) String ¶ added in v1.8.0
func (x *MapIdentifiersResponse) String() string
type ServiceClient ¶
type ServiceClient interface { // GenerateIdentifiers for a specific application. GenerateIdentifiers(ctx context.Context, in *GenerateIdentifiersRequest, opts ...grpc.CallOption) (*GenerateIdentifiersResponse, error) // MapIdentifiers for some identifiers. MapIdentifiers(ctx context.Context, in *MapIdentifiersRequest, opts ...grpc.CallOption) (*MapIdentifiersResponse, error) }
ServiceClient is the client API for Service 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.
Service allows to manage identifiers.
func NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { // GenerateIdentifiers for a specific application. GenerateIdentifiers(context.Context, *GenerateIdentifiersRequest) (*GenerateIdentifiersResponse, error) // MapIdentifiers for some identifiers. MapIdentifiers(context.Context, *MapIdentifiersRequest) (*MapIdentifiersResponse, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
Service allows to manage identifiers.
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) GenerateIdentifiers ¶ added in v1.8.0
func (UnimplementedServiceServer) GenerateIdentifiers(context.Context, *GenerateIdentifiersRequest) (*GenerateIdentifiersResponse, error)
func (UnimplementedServiceServer) MapIdentifiers ¶ added in v1.8.0
func (UnimplementedServiceServer) MapIdentifiers(context.Context, *MapIdentifiersRequest) (*MapIdentifiersResponse, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.