Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterClientsServiceServer(s grpc.ServiceRegistrar, srv ClientsServiceServer)
- type AuthnReq
- type AuthnRes
- type ClientsServiceClient
- type ClientsServiceServer
- type RemoveChannelConnectionsReq
- func (*RemoveChannelConnectionsReq) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveChannelConnectionsReq) GetChannelId() string
- func (*RemoveChannelConnectionsReq) ProtoMessage()
- func (x *RemoveChannelConnectionsReq) ProtoReflect() protoreflect.Message
- func (x *RemoveChannelConnectionsReq) Reset()
- func (x *RemoveChannelConnectionsReq) String() string
- type RemoveChannelConnectionsRes
- type UnimplementedClientsServiceServer
- func (UnimplementedClientsServiceServer) AddConnections(context.Context, *v1.AddConnectionsReq) (*v1.AddConnectionsRes, error)
- func (UnimplementedClientsServiceServer) Authenticate(context.Context, *AuthnReq) (*AuthnRes, error)
- func (UnimplementedClientsServiceServer) RemoveChannelConnections(context.Context, *RemoveChannelConnectionsReq) (*RemoveChannelConnectionsRes, error)
- func (UnimplementedClientsServiceServer) RemoveConnections(context.Context, *v1.RemoveConnectionsReq) (*v1.RemoveConnectionsRes, error)
- func (UnimplementedClientsServiceServer) RetrieveEntities(context.Context, *v1.RetrieveEntitiesReq) (*v1.RetrieveEntitiesRes, error)
- func (UnimplementedClientsServiceServer) RetrieveEntity(context.Context, *v1.RetrieveEntityReq) (*v1.RetrieveEntityRes, error)
- func (UnimplementedClientsServiceServer) UnsetParentGroupFromClient(context.Context, *UnsetParentGroupFromClientReq) (*UnsetParentGroupFromClientRes, error)
- type UnsafeClientsServiceServer
- type UnsetParentGroupFromClientReq
- func (*UnsetParentGroupFromClientReq) Descriptor() ([]byte, []int)deprecated
- func (x *UnsetParentGroupFromClientReq) GetParentGroupId() string
- func (*UnsetParentGroupFromClientReq) ProtoMessage()
- func (x *UnsetParentGroupFromClientReq) ProtoReflect() protoreflect.Message
- func (x *UnsetParentGroupFromClientReq) Reset()
- func (x *UnsetParentGroupFromClientReq) String() string
- type UnsetParentGroupFromClientRes
- func (*UnsetParentGroupFromClientRes) Descriptor() ([]byte, []int)deprecated
- func (*UnsetParentGroupFromClientRes) ProtoMessage()
- func (x *UnsetParentGroupFromClientRes) ProtoReflect() protoreflect.Message
- func (x *UnsetParentGroupFromClientRes) Reset()
- func (x *UnsetParentGroupFromClientRes) String() string
Constants ¶
const ( ClientsService_Authenticate_FullMethodName = "/clients.v1.ClientsService/Authenticate" ClientsService_RetrieveEntity_FullMethodName = "/clients.v1.ClientsService/RetrieveEntity" ClientsService_RetrieveEntities_FullMethodName = "/clients.v1.ClientsService/RetrieveEntities" ClientsService_AddConnections_FullMethodName = "/clients.v1.ClientsService/AddConnections" ClientsService_RemoveConnections_FullMethodName = "/clients.v1.ClientsService/RemoveConnections" ClientsService_RemoveChannelConnections_FullMethodName = "/clients.v1.ClientsService/RemoveChannelConnections" ClientsService_UnsetParentGroupFromClient_FullMethodName = "/clients.v1.ClientsService/UnsetParentGroupFromClient" )
Variables ¶
var ClientsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "clients.v1.ClientsService", HandlerType: (*ClientsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Authenticate", Handler: _ClientsService_Authenticate_Handler, }, { MethodName: "RetrieveEntity", Handler: _ClientsService_RetrieveEntity_Handler, }, { MethodName: "RetrieveEntities", Handler: _ClientsService_RetrieveEntities_Handler, }, { MethodName: "AddConnections", Handler: _ClientsService_AddConnections_Handler, }, { MethodName: "RemoveConnections", Handler: _ClientsService_RemoveConnections_Handler, }, { MethodName: "RemoveChannelConnections", Handler: _ClientsService_RemoveChannelConnections_Handler, }, { MethodName: "UnsetParentGroupFromClient", Handler: _ClientsService_UnsetParentGroupFromClient_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "clients/v1/clients.proto", }
ClientsService_ServiceDesc is the grpc.ServiceDesc for ClientsService 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_v1_clients_proto protoreflect.FileDescriptor
Functions ¶
func RegisterClientsServiceServer ¶
func RegisterClientsServiceServer(s grpc.ServiceRegistrar, srv ClientsServiceServer)
Types ¶
type AuthnReq ¶
type AuthnReq struct { ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` // contains filtered or unexported fields }
func (*AuthnReq) Descriptor
deprecated
func (*AuthnReq) GetClientId ¶
func (*AuthnReq) GetClientSecret ¶
func (*AuthnReq) ProtoMessage ¶
func (*AuthnReq) ProtoMessage()
func (*AuthnReq) ProtoReflect ¶
func (x *AuthnReq) ProtoReflect() protoreflect.Message
type AuthnRes ¶
type AuthnRes struct { Authenticated bool `protobuf:"varint,1,opt,name=authenticated,proto3" json:"authenticated,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AuthnRes) Descriptor
deprecated
func (*AuthnRes) GetAuthenticated ¶
func (*AuthnRes) ProtoMessage ¶
func (*AuthnRes) ProtoMessage()
func (*AuthnRes) ProtoReflect ¶
func (x *AuthnRes) ProtoReflect() protoreflect.Message
type ClientsServiceClient ¶
type ClientsServiceClient interface { // Authorize checks if the client is authorized to perform Authenticate(ctx context.Context, in *AuthnReq, opts ...grpc.CallOption) (*AuthnRes, error) RetrieveEntity(ctx context.Context, in *v1.RetrieveEntityReq, opts ...grpc.CallOption) (*v1.RetrieveEntityRes, error) RetrieveEntities(ctx context.Context, in *v1.RetrieveEntitiesReq, opts ...grpc.CallOption) (*v1.RetrieveEntitiesRes, error) AddConnections(ctx context.Context, in *v1.AddConnectionsReq, opts ...grpc.CallOption) (*v1.AddConnectionsRes, error) RemoveConnections(ctx context.Context, in *v1.RemoveConnectionsReq, opts ...grpc.CallOption) (*v1.RemoveConnectionsRes, error) RemoveChannelConnections(ctx context.Context, in *RemoveChannelConnectionsReq, opts ...grpc.CallOption) (*RemoveChannelConnectionsRes, error) UnsetParentGroupFromClient(ctx context.Context, in *UnsetParentGroupFromClientReq, opts ...grpc.CallOption) (*UnsetParentGroupFromClientRes, error) }
ClientsServiceClient is the client API for ClientsService 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.
ClientsService is a service that provides clients authorization functionalities for SuperMQ services.
func NewClientsServiceClient ¶
func NewClientsServiceClient(cc grpc.ClientConnInterface) ClientsServiceClient
type ClientsServiceServer ¶
type ClientsServiceServer interface { // Authorize checks if the client is authorized to perform Authenticate(context.Context, *AuthnReq) (*AuthnRes, error) RetrieveEntity(context.Context, *v1.RetrieveEntityReq) (*v1.RetrieveEntityRes, error) RetrieveEntities(context.Context, *v1.RetrieveEntitiesReq) (*v1.RetrieveEntitiesRes, error) AddConnections(context.Context, *v1.AddConnectionsReq) (*v1.AddConnectionsRes, error) RemoveConnections(context.Context, *v1.RemoveConnectionsReq) (*v1.RemoveConnectionsRes, error) RemoveChannelConnections(context.Context, *RemoveChannelConnectionsReq) (*RemoveChannelConnectionsRes, error) UnsetParentGroupFromClient(context.Context, *UnsetParentGroupFromClientReq) (*UnsetParentGroupFromClientRes, error) // contains filtered or unexported methods }
ClientsServiceServer is the server API for ClientsService service. All implementations must embed UnimplementedClientsServiceServer for forward compatibility.
ClientsService is a service that provides clients authorization functionalities for SuperMQ services.
type RemoveChannelConnectionsReq ¶
type RemoveChannelConnectionsReq struct { ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // contains filtered or unexported fields }
func (*RemoveChannelConnectionsReq) Descriptor
deprecated
func (*RemoveChannelConnectionsReq) Descriptor() ([]byte, []int)
Deprecated: Use RemoveChannelConnectionsReq.ProtoReflect.Descriptor instead.
func (*RemoveChannelConnectionsReq) GetChannelId ¶
func (x *RemoveChannelConnectionsReq) GetChannelId() string
func (*RemoveChannelConnectionsReq) ProtoMessage ¶
func (*RemoveChannelConnectionsReq) ProtoMessage()
func (*RemoveChannelConnectionsReq) ProtoReflect ¶
func (x *RemoveChannelConnectionsReq) ProtoReflect() protoreflect.Message
func (*RemoveChannelConnectionsReq) Reset ¶
func (x *RemoveChannelConnectionsReq) Reset()
func (*RemoveChannelConnectionsReq) String ¶
func (x *RemoveChannelConnectionsReq) String() string
type RemoveChannelConnectionsRes ¶
type RemoveChannelConnectionsRes struct {
// contains filtered or unexported fields
}
func (*RemoveChannelConnectionsRes) Descriptor
deprecated
func (*RemoveChannelConnectionsRes) Descriptor() ([]byte, []int)
Deprecated: Use RemoveChannelConnectionsRes.ProtoReflect.Descriptor instead.
func (*RemoveChannelConnectionsRes) ProtoMessage ¶
func (*RemoveChannelConnectionsRes) ProtoMessage()
func (*RemoveChannelConnectionsRes) ProtoReflect ¶
func (x *RemoveChannelConnectionsRes) ProtoReflect() protoreflect.Message
func (*RemoveChannelConnectionsRes) Reset ¶
func (x *RemoveChannelConnectionsRes) Reset()
func (*RemoveChannelConnectionsRes) String ¶
func (x *RemoveChannelConnectionsRes) String() string
type UnimplementedClientsServiceServer ¶
type UnimplementedClientsServiceServer struct{}
UnimplementedClientsServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedClientsServiceServer) AddConnections ¶
func (UnimplementedClientsServiceServer) AddConnections(context.Context, *v1.AddConnectionsReq) (*v1.AddConnectionsRes, error)
func (UnimplementedClientsServiceServer) Authenticate ¶
func (UnimplementedClientsServiceServer) RemoveChannelConnections ¶
func (UnimplementedClientsServiceServer) RemoveChannelConnections(context.Context, *RemoveChannelConnectionsReq) (*RemoveChannelConnectionsRes, error)
func (UnimplementedClientsServiceServer) RemoveConnections ¶
func (UnimplementedClientsServiceServer) RemoveConnections(context.Context, *v1.RemoveConnectionsReq) (*v1.RemoveConnectionsRes, error)
func (UnimplementedClientsServiceServer) RetrieveEntities ¶
func (UnimplementedClientsServiceServer) RetrieveEntities(context.Context, *v1.RetrieveEntitiesReq) (*v1.RetrieveEntitiesRes, error)
func (UnimplementedClientsServiceServer) RetrieveEntity ¶
func (UnimplementedClientsServiceServer) RetrieveEntity(context.Context, *v1.RetrieveEntityReq) (*v1.RetrieveEntityRes, error)
func (UnimplementedClientsServiceServer) UnsetParentGroupFromClient ¶
func (UnimplementedClientsServiceServer) UnsetParentGroupFromClient(context.Context, *UnsetParentGroupFromClientReq) (*UnsetParentGroupFromClientRes, error)
type UnsafeClientsServiceServer ¶
type UnsafeClientsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeClientsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClientsServiceServer will result in compilation errors.
type UnsetParentGroupFromClientReq ¶
type UnsetParentGroupFromClientReq struct { ParentGroupId string `protobuf:"bytes,1,opt,name=parent_group_id,json=parentGroupId,proto3" json:"parent_group_id,omitempty"` // contains filtered or unexported fields }
func (*UnsetParentGroupFromClientReq) Descriptor
deprecated
func (*UnsetParentGroupFromClientReq) Descriptor() ([]byte, []int)
Deprecated: Use UnsetParentGroupFromClientReq.ProtoReflect.Descriptor instead.
func (*UnsetParentGroupFromClientReq) GetParentGroupId ¶
func (x *UnsetParentGroupFromClientReq) GetParentGroupId() string
func (*UnsetParentGroupFromClientReq) ProtoMessage ¶
func (*UnsetParentGroupFromClientReq) ProtoMessage()
func (*UnsetParentGroupFromClientReq) ProtoReflect ¶
func (x *UnsetParentGroupFromClientReq) ProtoReflect() protoreflect.Message
func (*UnsetParentGroupFromClientReq) Reset ¶
func (x *UnsetParentGroupFromClientReq) Reset()
func (*UnsetParentGroupFromClientReq) String ¶
func (x *UnsetParentGroupFromClientReq) String() string
type UnsetParentGroupFromClientRes ¶
type UnsetParentGroupFromClientRes struct {
// contains filtered or unexported fields
}
func (*UnsetParentGroupFromClientRes) Descriptor
deprecated
func (*UnsetParentGroupFromClientRes) Descriptor() ([]byte, []int)
Deprecated: Use UnsetParentGroupFromClientRes.ProtoReflect.Descriptor instead.
func (*UnsetParentGroupFromClientRes) ProtoMessage ¶
func (*UnsetParentGroupFromClientRes) ProtoMessage()
func (*UnsetParentGroupFromClientRes) ProtoReflect ¶
func (x *UnsetParentGroupFromClientRes) ProtoReflect() protoreflect.Message
func (*UnsetParentGroupFromClientRes) Reset ¶
func (x *UnsetParentGroupFromClientRes) Reset()
func (*UnsetParentGroupFromClientRes) String ¶
func (x *UnsetParentGroupFromClientRes) String() string