tenant

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 NewID

func NewID() *ID

NewID constructs a new ID.

func ParseID

func ParseID(x string) (*ID, error)

ParseID will parse the input as either a canonically-formatted UUID or as a base64-encoded collection of bytes.

func (*ID) AsUUID

func (x *ID) AsUUID() uuid.UUID

AsUUID converts the message to a validated UUID or returns the zero value.

func (*ID) Descriptor deprecated

func (*ID) Descriptor() ([]byte, []int)

Deprecated: Use ID.ProtoReflect.Descriptor instead.

func (*ID) GetData

func (x *ID) GetData() []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) Scan

func (x *ID) Scan(v interface{}) error

Scan implements sql.Scanner.

func (*ID) String

func (x *ID) String() string

func (*ID) Value

func (x *ID) Value() (driver.Value, error)

Value implements driver.Valuer.

func (*ID) Zero

func (x *ID) Zero() bool

Zero returns true if the ID is the zero value.

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

Deprecated: Use Tenant.ProtoReflect.Descriptor instead.

func (*Tenant) GetID

func (x *Tenant) GetID() *ID

func (*Tenant) GetLabel

func (x *Tenant) GetLabel() string

func (*Tenant) GetVersion

func (x *Tenant) GetVersion() int64

func (*Tenant) ProtoMessage

func (*Tenant) ProtoMessage()

func (*Tenant) ProtoReflect

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

func (*Tenant) Reset

func (x *Tenant) Reset()

func (*Tenant) String

func (x *Tenant) String() string

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) Get

func (UnimplementedTenantsServer) List

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.

Jump to

Keyboard shortcuts

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