Documentation ¶
Index ¶
- Variables
- func RegisterTenantsServer(s grpc.ServiceRegistrar, srv TenantsServer)
- type Tenant
- func (*Tenant) Descriptor() ([]byte, []int)deprecated
- func (x *Tenant) GetAllowedOrigin() string
- func (x *Tenant) GetCreatedAt() int64
- func (x *Tenant) GetDbHost() string
- func (x *Tenant) GetDbName() string
- func (x *Tenant) GetDbPassword() string
- func (x *Tenant) GetDbUser() string
- func (x *Tenant) GetId() int64
- func (x *Tenant) GetKeycloakClientId() string
- func (x *Tenant) GetKeycloakJwksUrl() string
- func (x *Tenant) GetKeycloakServer() string
- func (x *Tenant) GetManagerRole() string
- func (x *Tenant) GetNameSpace() string
- func (x *Tenant) GetUserRole() string
- func (*Tenant) ProtoMessage()
- func (x *Tenant) ProtoReflect() protoreflect.Message
- func (x *Tenant) Reset()
- func (x *Tenant) String() string
- type TenantIdRequest
- type TenantList
- type TenantNamespaceRequest
- func (*TenantNamespaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TenantNamespaceRequest) GetNameSpace() string
- func (*TenantNamespaceRequest) ProtoMessage()
- func (x *TenantNamespaceRequest) ProtoReflect() protoreflect.Message
- func (x *TenantNamespaceRequest) Reset()
- func (x *TenantNamespaceRequest) String() string
- type TenantServiceResponse
- func (*TenantServiceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TenantServiceResponse) GetStatus() bool
- func (*TenantServiceResponse) ProtoMessage()
- func (x *TenantServiceResponse) ProtoReflect() protoreflect.Message
- func (x *TenantServiceResponse) Reset()
- func (x *TenantServiceResponse) String() string
- type TenantsClient
- type TenantsServer
- type UnimplementedTenantsServer
- func (UnimplementedTenantsServer) Delete(context.Context, *TenantIdRequest) (*TenantServiceResponse, error)
- func (UnimplementedTenantsServer) FindAll(context.Context, *emptypb.Empty) (*TenantList, error)
- func (UnimplementedTenantsServer) FindByNamespace(context.Context, *TenantNamespaceRequest) (*Tenant, error)
- func (UnimplementedTenantsServer) Upsert(context.Context, *Tenant) (*Tenant, error)
- type UnsafeTenantsServer
Constants ¶
This section is empty.
Variables ¶
var File_tenant_proto protoreflect.FileDescriptor
var Tenants_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Tenants", HandlerType: (*TenantsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindAll", Handler: _Tenants_FindAll_Handler, }, { MethodName: "FindByNamespace", Handler: _Tenants_FindByNamespace_Handler, }, { MethodName: "Upsert", Handler: _Tenants_Upsert_Handler, }, { MethodName: "Delete", Handler: _Tenants_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "tenant.proto", }
Tenants_ServiceDesc is the grpc.ServiceDesc for Tenants service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTenantsServer ¶
func RegisterTenantsServer(s grpc.ServiceRegistrar, srv TenantsServer)
Types ¶
type Tenant ¶
type Tenant struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` NameSpace string `protobuf:"bytes,2,opt,name=name_space,json=nameSpace,proto3" json:"name_space,omitempty"` DbHost string `protobuf:"bytes,3,opt,name=db_host,json=dbHost,proto3" json:"db_host,omitempty"` DbUser string `protobuf:"bytes,4,opt,name=db_user,json=dbUser,proto3" json:"db_user,omitempty"` DbPassword string `protobuf:"bytes,5,opt,name=db_password,json=dbPassword,proto3" json:"db_password,omitempty"` DbName string `protobuf:"bytes,6,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` AllowedOrigin string `protobuf:"bytes,7,opt,name=allowed_origin,json=allowedOrigin,proto3" json:"allowed_origin,omitempty"` ManagerRole string `protobuf:"bytes,8,opt,name=manager_role,json=managerRole,proto3" json:"manager_role,omitempty"` UserRole string `protobuf:"bytes,9,opt,name=user_role,json=userRole,proto3" json:"user_role,omitempty"` KeycloakClientId string `protobuf:"bytes,10,opt,name=keycloak_client_id,json=keycloakClientId,proto3" json:"keycloak_client_id,omitempty"` KeycloakServer string `protobuf:"bytes,11,opt,name=keycloak_server,json=keycloakServer,proto3" json:"keycloak_server,omitempty"` KeycloakJwksUrl string `protobuf:"bytes,12,opt,name=keycloak_jwks_url,json=keycloakJwksUrl,proto3" json:"keycloak_jwks_url,omitempty"` CreatedAt int64 `protobuf:"varint,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Tenant) Descriptor
deprecated
func (*Tenant) GetAllowedOrigin ¶
func (*Tenant) GetCreatedAt ¶
func (*Tenant) GetDbPassword ¶
func (*Tenant) GetKeycloakClientId ¶
func (*Tenant) GetKeycloakJwksUrl ¶
func (*Tenant) GetKeycloakServer ¶
func (*Tenant) GetManagerRole ¶
func (*Tenant) GetNameSpace ¶
func (*Tenant) GetUserRole ¶
func (*Tenant) ProtoMessage ¶
func (*Tenant) ProtoMessage()
func (*Tenant) ProtoReflect ¶
func (x *Tenant) ProtoReflect() protoreflect.Message
type TenantIdRequest ¶
type TenantIdRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*TenantIdRequest) Descriptor
deprecated
func (*TenantIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use TenantIdRequest.ProtoReflect.Descriptor instead.
func (*TenantIdRequest) GetId ¶
func (x *TenantIdRequest) GetId() int64
func (*TenantIdRequest) ProtoMessage ¶
func (*TenantIdRequest) ProtoMessage()
func (*TenantIdRequest) ProtoReflect ¶
func (x *TenantIdRequest) ProtoReflect() protoreflect.Message
func (*TenantIdRequest) Reset ¶
func (x *TenantIdRequest) Reset()
func (*TenantIdRequest) String ¶
func (x *TenantIdRequest) String() string
type TenantList ¶
type TenantList struct { TenantList []*Tenant `protobuf:"bytes,1,rep,name=tenant_list,json=tenantList,proto3" json:"tenant_list,omitempty"` // contains filtered or unexported fields }
func (*TenantList) Descriptor
deprecated
func (*TenantList) Descriptor() ([]byte, []int)
Deprecated: Use TenantList.ProtoReflect.Descriptor instead.
func (*TenantList) GetTenantList ¶
func (x *TenantList) GetTenantList() []*Tenant
func (*TenantList) ProtoMessage ¶
func (*TenantList) ProtoMessage()
func (*TenantList) ProtoReflect ¶
func (x *TenantList) ProtoReflect() protoreflect.Message
func (*TenantList) Reset ¶
func (x *TenantList) Reset()
func (*TenantList) String ¶
func (x *TenantList) String() string
type TenantNamespaceRequest ¶
type TenantNamespaceRequest struct { NameSpace string `protobuf:"bytes,1,opt,name=name_space,json=nameSpace,proto3" json:"name_space,omitempty"` // contains filtered or unexported fields }
func (*TenantNamespaceRequest) Descriptor
deprecated
func (*TenantNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use TenantNamespaceRequest.ProtoReflect.Descriptor instead.
func (*TenantNamespaceRequest) GetNameSpace ¶
func (x *TenantNamespaceRequest) GetNameSpace() string
func (*TenantNamespaceRequest) ProtoMessage ¶
func (*TenantNamespaceRequest) ProtoMessage()
func (*TenantNamespaceRequest) ProtoReflect ¶
func (x *TenantNamespaceRequest) ProtoReflect() protoreflect.Message
func (*TenantNamespaceRequest) Reset ¶
func (x *TenantNamespaceRequest) Reset()
func (*TenantNamespaceRequest) String ¶
func (x *TenantNamespaceRequest) String() string
type TenantServiceResponse ¶
type TenantServiceResponse struct { Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*TenantServiceResponse) Descriptor
deprecated
func (*TenantServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use TenantServiceResponse.ProtoReflect.Descriptor instead.
func (*TenantServiceResponse) GetStatus ¶
func (x *TenantServiceResponse) GetStatus() bool
func (*TenantServiceResponse) ProtoMessage ¶
func (*TenantServiceResponse) ProtoMessage()
func (*TenantServiceResponse) ProtoReflect ¶
func (x *TenantServiceResponse) ProtoReflect() protoreflect.Message
func (*TenantServiceResponse) Reset ¶
func (x *TenantServiceResponse) Reset()
func (*TenantServiceResponse) String ¶
func (x *TenantServiceResponse) String() string
type TenantsClient ¶
type TenantsClient interface { FindAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*TenantList, error) FindByNamespace(ctx context.Context, in *TenantNamespaceRequest, opts ...grpc.CallOption) (*Tenant, error) Upsert(ctx context.Context, in *Tenant, opts ...grpc.CallOption) (*Tenant, error) Delete(ctx context.Context, in *TenantIdRequest, opts ...grpc.CallOption) (*TenantServiceResponse, 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 { FindAll(context.Context, *emptypb.Empty) (*TenantList, error) FindByNamespace(context.Context, *TenantNamespaceRequest) (*Tenant, error) Upsert(context.Context, *Tenant) (*Tenant, error) Delete(context.Context, *TenantIdRequest) (*TenantServiceResponse, error) // contains filtered or unexported methods }
TenantsServer is the server API for Tenants service. All implementations must embed UnimplementedTenantsServer for forward compatibility
type UnimplementedTenantsServer ¶
type UnimplementedTenantsServer struct { }
UnimplementedTenantsServer must be embedded to have forward compatible implementations.
func (UnimplementedTenantsServer) Delete ¶
func (UnimplementedTenantsServer) Delete(context.Context, *TenantIdRequest) (*TenantServiceResponse, error)
func (UnimplementedTenantsServer) FindAll ¶
func (UnimplementedTenantsServer) FindAll(context.Context, *emptypb.Empty) (*TenantList, error)
func (UnimplementedTenantsServer) FindByNamespace ¶
func (UnimplementedTenantsServer) FindByNamespace(context.Context, *TenantNamespaceRequest) (*Tenant, 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.