pb

package
v0.0.0-...-ed15e27 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_tenant_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Tenant.ProtoReflect.Descriptor instead.

func (*Tenant) GetAllowedOrigin

func (x *Tenant) GetAllowedOrigin() string

func (*Tenant) GetCreatedAt

func (x *Tenant) GetCreatedAt() int64

func (*Tenant) GetDbHost

func (x *Tenant) GetDbHost() string

func (*Tenant) GetDbName

func (x *Tenant) GetDbName() string

func (*Tenant) GetDbPassword

func (x *Tenant) GetDbPassword() string

func (*Tenant) GetDbUser

func (x *Tenant) GetDbUser() string

func (*Tenant) GetId

func (x *Tenant) GetId() int64

func (*Tenant) GetKeycloakClientId

func (x *Tenant) GetKeycloakClientId() string

func (*Tenant) GetKeycloakJwksUrl

func (x *Tenant) GetKeycloakJwksUrl() string

func (*Tenant) GetKeycloakServer

func (x *Tenant) GetKeycloakServer() string

func (*Tenant) GetManagerRole

func (x *Tenant) GetManagerRole() string

func (*Tenant) GetNameSpace

func (x *Tenant) GetNameSpace() string

func (*Tenant) GetUserRole

func (x *Tenant) GetUserRole() string

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

func (UnimplementedTenantsServer) FindByNamespace

func (UnimplementedTenantsServer) Upsert

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