Documentation
¶
Index ¶
- Variables
- func RegisterTenantsServer(s grpc.ServiceRegistrar, srv TenantsServer)
- type EnsureRequest
- func (*EnsureRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnsureRequest) GetDelete() bool
- func (x *EnsureRequest) GetTenant() *Tenant
- func (*EnsureRequest) ProtoMessage()
- func (x *EnsureRequest) ProtoReflect() protoreflect.Message
- func (x *EnsureRequest) Reset()
- func (x *EnsureRequest) String() string
- type EnsureResponse
- type GetRequest
- type GetResponse
- type ID
- func (x *ID) AsUUID() uuid.UUID
- func (*ID) Descriptor() ([]byte, []int)deprecated
- func (x *ID) GetData() []byte
- func (*ID) ProtoMessage()
- func (x *ID) ProtoReflect() protoreflect.Message
- func (x *ID) Reset()
- func (x *ID) Scan(v interface{}) error
- func (x *ID) String() string
- func (x *ID) Value() (driver.Value, error)
- func (x *ID) Zero() bool
- type Tenant
- type TenantsClient
- type TenantsServer
- type Tenants_ListClient
- type Tenants_ListServer
- type UnimplementedTenantsServer
- type UnsafeTenantsServer
Constants ¶
This section is empty.
Variables ¶
var File_tenant_proto protoreflect.FileDescriptor
Functions ¶
func RegisterTenantsServer ¶
func RegisterTenantsServer(s grpc.ServiceRegistrar, srv TenantsServer)
Types ¶
type EnsureRequest ¶
type EnsureRequest struct { Tenant *Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` Delete bool `protobuf:"varint,2,opt,name=delete,proto3" json:"delete,omitempty"` // contains filtered or unexported fields }
func (*EnsureRequest) Descriptor
deprecated
func (*EnsureRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnsureRequest.ProtoReflect.Descriptor instead.
func (*EnsureRequest) GetDelete ¶
func (x *EnsureRequest) GetDelete() bool
func (*EnsureRequest) GetTenant ¶
func (x *EnsureRequest) GetTenant() *Tenant
func (*EnsureRequest) ProtoMessage ¶
func (*EnsureRequest) ProtoMessage()
func (*EnsureRequest) ProtoReflect ¶
func (x *EnsureRequest) ProtoReflect() protoreflect.Message
func (*EnsureRequest) Reset ¶
func (x *EnsureRequest) Reset()
func (*EnsureRequest) String ¶
func (x *EnsureRequest) String() string
type EnsureResponse ¶
type EnsureResponse struct { Tenant *Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` // contains filtered or unexported fields }
func (*EnsureResponse) Descriptor
deprecated
func (*EnsureResponse) Descriptor() ([]byte, []int)
Deprecated: Use EnsureResponse.ProtoReflect.Descriptor instead.
func (*EnsureResponse) GetTenant ¶
func (x *EnsureResponse) GetTenant() *Tenant
func (*EnsureResponse) ProtoMessage ¶
func (*EnsureResponse) ProtoMessage()
func (*EnsureResponse) ProtoReflect ¶
func (x *EnsureResponse) ProtoReflect() protoreflect.Message
func (*EnsureResponse) Reset ¶
func (x *EnsureResponse) Reset()
func (*EnsureResponse) String ¶
func (x *EnsureResponse) String() string
type GetRequest ¶
type GetRequest struct { ID *ID `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetID ¶
func (x *GetRequest) GetID() *ID
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Tenant *Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetTenant ¶
func (x *GetResponse) GetTenant() *Tenant
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type ID ¶
type ID struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func ParseID ¶
ParseID will parse the input as either a canonically-formatted UUID or as a base64-encoded collection of bytes.
func (*ID) Descriptor
deprecated
func (*ID) ProtoMessage ¶
func (*ID) ProtoMessage()
func (*ID) ProtoReflect ¶
func (x *ID) ProtoReflect() protoreflect.Message
type Tenant ¶
type Tenant struct { ID *ID `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` Version int64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*Tenant) Descriptor
deprecated
func (*Tenant) GetVersion ¶
func (*Tenant) ProtoMessage ¶
func (*Tenant) ProtoMessage()
func (*Tenant) ProtoReflect ¶
func (x *Tenant) ProtoReflect() protoreflect.Message
type TenantsClient ¶
type TenantsClient interface { Ensure(ctx context.Context, in *EnsureRequest, opts ...grpc.CallOption) (*EnsureResponse, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) List(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Tenants_ListClient, error) }
TenantsClient is the client API for Tenants 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 NewTenantsClient ¶
func NewTenantsClient(cc grpc.ClientConnInterface) TenantsClient
type TenantsServer ¶
type TenantsServer interface { Ensure(context.Context, *EnsureRequest) (*EnsureResponse, error) Get(context.Context, *GetRequest) (*GetResponse, error) List(*emptypb.Empty, Tenants_ListServer) error // contains filtered or unexported methods }
TenantsServer is the server API for Tenants service. All implementations must embed UnimplementedTenantsServer for forward compatibility
type Tenants_ListClient ¶
type Tenants_ListClient interface { Recv() (*Tenant, error) grpc.ClientStream }
type Tenants_ListServer ¶
type Tenants_ListServer interface { Send(*Tenant) error grpc.ServerStream }
type UnimplementedTenantsServer ¶
type UnimplementedTenantsServer struct { }
UnimplementedTenantsServer must be embedded to have forward compatible implementations.
func (UnimplementedTenantsServer) Ensure ¶
func (UnimplementedTenantsServer) Ensure(context.Context, *EnsureRequest) (*EnsureResponse, error)
func (UnimplementedTenantsServer) Get ¶
func (UnimplementedTenantsServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedTenantsServer) List ¶
func (UnimplementedTenantsServer) List(*emptypb.Empty, Tenants_ListServer) error
type UnsafeTenantsServer ¶
type UnsafeTenantsServer interface {
// contains filtered or unexported methods
}
UnsafeTenantsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TenantsServer will result in compilation errors.