Documentation ¶
Index ¶
- Variables
- func RegisterClientServiceServer(s grpc.ServiceRegistrar, srv ClientServiceServer)
- type Client
- func (*Client) Descriptor() ([]byte, []int)deprecated
- func (x *Client) GetId() int64
- func (x *Client) GetIsActive() bool
- func (x *Client) GetPrincipal() string
- func (x *Client) GetType() string
- func (*Client) ProtoMessage()
- func (x *Client) ProtoReflect() protoreflect.Message
- func (x *Client) Reset()
- func (x *Client) String() string
- type ClientRequest
- func (*ClientRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClientRequest) GetPrincipal() string
- func (x *ClientRequest) GetType() string
- func (*ClientRequest) ProtoMessage()
- func (x *ClientRequest) ProtoReflect() protoreflect.Message
- func (x *ClientRequest) Reset()
- func (x *ClientRequest) String() string
- type ClientServiceClient
- type ClientServiceServer
- type ClientService_CreateRoleClient
- type ClientService_CreateRoleServer
- type ClientService_DeleteClient
- type ClientService_DeleteServer
- type ClientService_ListClient
- type ClientService_ListServer
- type ClientService_RetrieveClient
- type ClientService_RetrieveServer
- type ClientService_UpdateRolesClient
- type ClientService_UpdateRolesServer
- type CreateRoleRequest
- func (*CreateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleRequest) GetClientId() int64
- func (x *CreateRoleRequest) GetScopeId() int64
- func (*CreateRoleRequest) ProtoMessage()
- func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRoleRequest) Reset()
- func (x *CreateRoleRequest) String() string
- type DeleteClientRequest
- func (*DeleteClientRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteClientRequest) GetClientId() int64
- func (*DeleteClientRequest) ProtoMessage()
- func (x *DeleteClientRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteClientRequest) Reset()
- func (x *DeleteClientRequest) String() string
- type IsOwnerRequest
- type IsOwnerResponse
- type RetrieveResourceScope
- func (*RetrieveResourceScope) Descriptor() ([]byte, []int)deprecated
- func (x *RetrieveResourceScope) GetDescription() string
- func (x *RetrieveResourceScope) GetLabel() string
- func (x *RetrieveResourceScope) GetName() string
- func (x *RetrieveResourceScope) GetResourceId() int64
- func (x *RetrieveResourceScope) GetResourceScopesId() int64
- func (*RetrieveResourceScope) ProtoMessage()
- func (x *RetrieveResourceScope) ProtoReflect() protoreflect.Message
- func (x *RetrieveResourceScope) Reset()
- func (x *RetrieveResourceScope) String() string
- type Role
- type UnimplementedClientServiceServer
- func (UnimplementedClientServiceServer) Create(context.Context, *ClientRequest) (*Client, error)
- func (UnimplementedClientServiceServer) CreateRole(ClientService_CreateRoleServer) error
- func (UnimplementedClientServiceServer) Delete(ClientService_DeleteServer) error
- func (UnimplementedClientServiceServer) IsOwner(context.Context, *IsOwnerRequest) (*IsOwnerResponse, error)
- func (UnimplementedClientServiceServer) List(*empty.Empty, ClientService_ListServer) error
- func (UnimplementedClientServiceServer) Retrieve(*DeleteClientRequest, ClientService_RetrieveServer) error
- func (UnimplementedClientServiceServer) Update(context.Context, *Client) (*Client, error)
- func (UnimplementedClientServiceServer) UpdateRoles(ClientService_UpdateRolesServer) error
- type UnsafeClientServiceServer
Constants ¶
This section is empty.
Variables ¶
var ClientService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ClientService", HandlerType: (*ClientServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _ClientService_Create_Handler, }, { MethodName: "Update", Handler: _ClientService_Update_Handler, }, { MethodName: "IsOwner", Handler: _ClientService_IsOwner_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "List", Handler: _ClientService_List_Handler, ServerStreams: true, }, { StreamName: "Delete", Handler: _ClientService_Delete_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "CreateRole", Handler: _ClientService_CreateRole_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "UpdateRoles", Handler: _ClientService_UpdateRoles_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "Retrieve", Handler: _ClientService_Retrieve_Handler, ServerStreams: true, }, }, Metadata: "clients.proto", }
ClientService_ServiceDesc is the grpc.ServiceDesc for ClientService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_clients_proto protoreflect.FileDescriptor
Functions ¶
func RegisterClientServiceServer ¶
func RegisterClientServiceServer(s grpc.ServiceRegistrar, srv ClientServiceServer)
Types ¶
type Client ¶
type Client struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Principal string `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` IsActive bool `protobuf:"varint,4,opt,name=is_active,json=isActive,proto3" json:"is_active"` // contains filtered or unexported fields }
func (*Client) Descriptor
deprecated
func (*Client) GetIsActive ¶
func (*Client) GetPrincipal ¶
func (*Client) ProtoMessage ¶
func (*Client) ProtoMessage()
func (*Client) ProtoReflect ¶
func (x *Client) ProtoReflect() protoreflect.Message
type ClientRequest ¶
type ClientRequest struct { Principal string `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*ClientRequest) Descriptor
deprecated
func (*ClientRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClientRequest.ProtoReflect.Descriptor instead.
func (*ClientRequest) GetPrincipal ¶
func (x *ClientRequest) GetPrincipal() string
func (*ClientRequest) GetType ¶
func (x *ClientRequest) GetType() string
func (*ClientRequest) ProtoMessage ¶
func (*ClientRequest) ProtoMessage()
func (*ClientRequest) ProtoReflect ¶
func (x *ClientRequest) ProtoReflect() protoreflect.Message
func (*ClientRequest) Reset ¶
func (x *ClientRequest) Reset()
func (*ClientRequest) String ¶
func (x *ClientRequest) String() string
type ClientServiceClient ¶
type ClientServiceClient interface { Create(ctx context.Context, in *ClientRequest, opts ...grpc.CallOption) (*Client, error) List(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (ClientService_ListClient, error) Delete(ctx context.Context, opts ...grpc.CallOption) (ClientService_DeleteClient, error) Update(ctx context.Context, in *Client, opts ...grpc.CallOption) (*Client, error) IsOwner(ctx context.Context, in *IsOwnerRequest, opts ...grpc.CallOption) (*IsOwnerResponse, error) CreateRole(ctx context.Context, opts ...grpc.CallOption) (ClientService_CreateRoleClient, error) UpdateRoles(ctx context.Context, opts ...grpc.CallOption) (ClientService_UpdateRolesClient, error) Retrieve(ctx context.Context, in *DeleteClientRequest, opts ...grpc.CallOption) (ClientService_RetrieveClient, error) }
ClientServiceClient is the client API for ClientService 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 NewClientServiceClient ¶
func NewClientServiceClient(cc grpc.ClientConnInterface) ClientServiceClient
type ClientServiceServer ¶
type ClientServiceServer interface { Create(context.Context, *ClientRequest) (*Client, error) List(*empty.Empty, ClientService_ListServer) error Delete(ClientService_DeleteServer) error Update(context.Context, *Client) (*Client, error) IsOwner(context.Context, *IsOwnerRequest) (*IsOwnerResponse, error) CreateRole(ClientService_CreateRoleServer) error UpdateRoles(ClientService_UpdateRolesServer) error Retrieve(*DeleteClientRequest, ClientService_RetrieveServer) error // contains filtered or unexported methods }
ClientServiceServer is the server API for ClientService service. All implementations must embed UnimplementedClientServiceServer for forward compatibility
type ClientService_CreateRoleClient ¶
type ClientService_CreateRoleClient interface { Send(*CreateRoleRequest) error Recv() (*Role, error) grpc.ClientStream }
type ClientService_CreateRoleServer ¶
type ClientService_CreateRoleServer interface { Send(*Role) error Recv() (*CreateRoleRequest, error) grpc.ServerStream }
type ClientService_DeleteClient ¶
type ClientService_DeleteClient interface { Send(*DeleteClientRequest) error Recv() (*Client, error) grpc.ClientStream }
type ClientService_DeleteServer ¶
type ClientService_DeleteServer interface { Send(*Client) error Recv() (*DeleteClientRequest, error) grpc.ServerStream }
type ClientService_ListClient ¶
type ClientService_ListClient interface { Recv() (*Client, error) grpc.ClientStream }
type ClientService_ListServer ¶
type ClientService_ListServer interface { Send(*Client) error grpc.ServerStream }
type ClientService_RetrieveClient ¶
type ClientService_RetrieveClient interface { Recv() (*RetrieveResourceScope, error) grpc.ClientStream }
type ClientService_RetrieveServer ¶
type ClientService_RetrieveServer interface { Send(*RetrieveResourceScope) error grpc.ServerStream }
type CreateRoleRequest ¶
type CreateRoleRequest struct { ClientId int64 `protobuf:"varint,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ScopeId int64 `protobuf:"varint,2,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty"` // contains filtered or unexported fields }
func (*CreateRoleRequest) Descriptor
deprecated
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleRequest) GetClientId ¶
func (x *CreateRoleRequest) GetClientId() int64
func (*CreateRoleRequest) GetScopeId ¶
func (x *CreateRoleRequest) GetScopeId() int64
func (*CreateRoleRequest) ProtoMessage ¶
func (*CreateRoleRequest) ProtoMessage()
func (*CreateRoleRequest) ProtoReflect ¶
func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
func (*CreateRoleRequest) Reset ¶
func (x *CreateRoleRequest) Reset()
func (*CreateRoleRequest) String ¶
func (x *CreateRoleRequest) String() string
type DeleteClientRequest ¶
type DeleteClientRequest struct { ClientId int64 `protobuf:"varint,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteClientRequest) Descriptor
deprecated
func (*DeleteClientRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteClientRequest.ProtoReflect.Descriptor instead.
func (*DeleteClientRequest) GetClientId ¶
func (x *DeleteClientRequest) GetClientId() int64
func (*DeleteClientRequest) ProtoMessage ¶
func (*DeleteClientRequest) ProtoMessage()
func (*DeleteClientRequest) ProtoReflect ¶
func (x *DeleteClientRequest) ProtoReflect() protoreflect.Message
func (*DeleteClientRequest) Reset ¶
func (x *DeleteClientRequest) Reset()
func (*DeleteClientRequest) String ¶
func (x *DeleteClientRequest) String() string
type IsOwnerRequest ¶
type IsOwnerRequest struct { Principal string `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"` // contains filtered or unexported fields }
func (*IsOwnerRequest) Descriptor
deprecated
func (*IsOwnerRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsOwnerRequest.ProtoReflect.Descriptor instead.
func (*IsOwnerRequest) GetPrincipal ¶
func (x *IsOwnerRequest) GetPrincipal() string
func (*IsOwnerRequest) ProtoMessage ¶
func (*IsOwnerRequest) ProtoMessage()
func (*IsOwnerRequest) ProtoReflect ¶
func (x *IsOwnerRequest) ProtoReflect() protoreflect.Message
func (*IsOwnerRequest) Reset ¶
func (x *IsOwnerRequest) Reset()
func (*IsOwnerRequest) String ¶
func (x *IsOwnerRequest) String() string
type IsOwnerResponse ¶
type IsOwnerResponse struct { IsOwner bool `protobuf:"varint,1,opt,name=is_owner,json=isOwner,proto3" json:"is_owner"` // contains filtered or unexported fields }
func (*IsOwnerResponse) Descriptor
deprecated
func (*IsOwnerResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsOwnerResponse.ProtoReflect.Descriptor instead.
func (*IsOwnerResponse) GetIsOwner ¶
func (x *IsOwnerResponse) GetIsOwner() bool
func (*IsOwnerResponse) ProtoMessage ¶
func (*IsOwnerResponse) ProtoMessage()
func (*IsOwnerResponse) ProtoReflect ¶
func (x *IsOwnerResponse) ProtoReflect() protoreflect.Message
func (*IsOwnerResponse) Reset ¶
func (x *IsOwnerResponse) Reset()
func (*IsOwnerResponse) String ¶
func (x *IsOwnerResponse) String() string
type RetrieveResourceScope ¶
type RetrieveResourceScope struct { ResourceScopesId int64 `protobuf:"varint,1,opt,name=resource_scopes_id,json=resourceScopesId,proto3" json:"resource_scopes_id,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` ResourceId int64 `protobuf:"varint,5,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // contains filtered or unexported fields }
func (*RetrieveResourceScope) Descriptor
deprecated
func (*RetrieveResourceScope) Descriptor() ([]byte, []int)
Deprecated: Use RetrieveResourceScope.ProtoReflect.Descriptor instead.
func (*RetrieveResourceScope) GetDescription ¶
func (x *RetrieveResourceScope) GetDescription() string
func (*RetrieveResourceScope) GetLabel ¶
func (x *RetrieveResourceScope) GetLabel() string
func (*RetrieveResourceScope) GetName ¶
func (x *RetrieveResourceScope) GetName() string
func (*RetrieveResourceScope) GetResourceId ¶
func (x *RetrieveResourceScope) GetResourceId() int64
func (*RetrieveResourceScope) GetResourceScopesId ¶
func (x *RetrieveResourceScope) GetResourceScopesId() int64
func (*RetrieveResourceScope) ProtoMessage ¶
func (*RetrieveResourceScope) ProtoMessage()
func (*RetrieveResourceScope) ProtoReflect ¶
func (x *RetrieveResourceScope) ProtoReflect() protoreflect.Message
func (*RetrieveResourceScope) Reset ¶
func (x *RetrieveResourceScope) Reset()
func (*RetrieveResourceScope) String ¶
func (x *RetrieveResourceScope) String() string
type Role ¶
type Role struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ClientId int64 `protobuf:"varint,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ScopeId int64 `protobuf:"varint,3,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
func (*Role) GetClientId ¶
func (*Role) GetScopeId ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type UnimplementedClientServiceServer ¶
type UnimplementedClientServiceServer struct { }
UnimplementedClientServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedClientServiceServer) Create ¶
func (UnimplementedClientServiceServer) Create(context.Context, *ClientRequest) (*Client, error)
func (UnimplementedClientServiceServer) CreateRole ¶
func (UnimplementedClientServiceServer) CreateRole(ClientService_CreateRoleServer) error
func (UnimplementedClientServiceServer) Delete ¶
func (UnimplementedClientServiceServer) Delete(ClientService_DeleteServer) error
func (UnimplementedClientServiceServer) IsOwner ¶
func (UnimplementedClientServiceServer) IsOwner(context.Context, *IsOwnerRequest) (*IsOwnerResponse, error)
func (UnimplementedClientServiceServer) List ¶
func (UnimplementedClientServiceServer) List(*empty.Empty, ClientService_ListServer) error
func (UnimplementedClientServiceServer) Retrieve ¶
func (UnimplementedClientServiceServer) Retrieve(*DeleteClientRequest, ClientService_RetrieveServer) error
func (UnimplementedClientServiceServer) UpdateRoles ¶
func (UnimplementedClientServiceServer) UpdateRoles(ClientService_UpdateRolesServer) error
type UnsafeClientServiceServer ¶
type UnsafeClientServiceServer interface {
// contains filtered or unexported methods
}
UnsafeClientServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClientServiceServer will result in compilation errors.