clients

package
v1.30.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetId

func (x *Client) GetId() int64

func (*Client) GetIsActive

func (x *Client) GetIsActive() bool

func (*Client) GetPrincipal

func (x *Client) GetPrincipal() string

func (*Client) GetType

func (x *Client) GetType() string

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) ProtoReflect

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

func (*Client) Reset

func (x *Client) Reset()

func (*Client) String

func (x *Client) String() string

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

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.

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 ClientService_UpdateRolesClient

type ClientService_UpdateRolesClient interface {
	Send(*Role) error
	Recv() (*Role, error)
	grpc.ClientStream
}

type ClientService_UpdateRolesServer

type ClientService_UpdateRolesServer interface {
	Send(*Role) error
	Recv() (*Role, 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) Descriptor() ([]byte, []int)

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetClientId

func (x *Role) GetClientId() int64

func (*Role) GetId

func (x *Role) GetId() int64

func (*Role) GetScopeId

func (x *Role) GetScopeId() int64

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

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

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

type UnimplementedClientServiceServer

type UnimplementedClientServiceServer struct {
}

UnimplementedClientServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedClientServiceServer) Create

func (UnimplementedClientServiceServer) CreateRole

func (UnimplementedClientServiceServer) Delete

func (UnimplementedClientServiceServer) IsOwner

func (UnimplementedClientServiceServer) List

func (UnimplementedClientServiceServer) Retrieve

func (UnimplementedClientServiceServer) Update

func (UnimplementedClientServiceServer) UpdateRoles

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.

Jump to

Keyboard shortcuts

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