proto

package
v0.0.0-...-53ff5f4 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_service_proto protoreflect.FileDescriptor
View Source
var Mgmt_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Mgmt",
	HandlerType: (*MgmtServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUserWithLoginPassword",
			Handler:    _Mgmt_CreateUserWithLoginPassword_Handler,
		},
		{
			MethodName: "CreateUserWithTelegram",
			Handler:    _Mgmt_CreateUserWithTelegram_Handler,
		},
		{
			MethodName: "GetAllUsers",
			Handler:    _Mgmt_GetAllUsers_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _Mgmt_GetUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _Mgmt_UpdateUser_Handler,
		},
		{
			MethodName: "BlockUser",
			Handler:    _Mgmt_BlockUser_Handler,
		},
		{
			MethodName: "UnblockUser",
			Handler:    _Mgmt_UnblockUser_Handler,
		},
		{
			MethodName: "CreateService",
			Handler:    _Mgmt_CreateService_Handler,
		},
		{
			MethodName: "GetAllServices",
			Handler:    _Mgmt_GetAllServices_Handler,
		},
		{
			MethodName: "GetService",
			Handler:    _Mgmt_GetService_Handler,
		},
		{
			MethodName: "CreateAccount",
			Handler:    _Mgmt_CreateAccount_Handler,
		},
		{
			MethodName: "CreateAccountWithName",
			Handler:    _Mgmt_CreateAccountWithName_Handler,
		},
		{
			MethodName: "GetAllAccounts",
			Handler:    _Mgmt_GetAllAccounts_Handler,
		},
		{
			MethodName: "GetAccount",
			Handler:    _Mgmt_GetAccount_Handler,
		},
		{
			MethodName: "UpdateAccount",
			Handler:    _Mgmt_UpdateAccount_Handler,
		},
		{
			MethodName: "AttachUserToAccount",
			Handler:    _Mgmt_AttachUserToAccount_Handler,
		},
		{
			MethodName: "AttachAccountToService",
			Handler:    _Mgmt_AttachAccountToService_Handler,
		},
		{
			MethodName: "RemoveAccountFromService",
			Handler:    _Mgmt_RemoveAccountFromService_Handler,
		},
		{
			MethodName: "CreatePermission",
			Handler:    _Mgmt_CreatePermission_Handler,
		},
		{
			MethodName: "GetPermission",
			Handler:    _Mgmt_GetPermission_Handler,
		},
		{
			MethodName: "GetAllPermission",
			Handler:    _Mgmt_GetAllPermission_Handler,
		},
		{
			MethodName: "GetFilteredPermissions",
			Handler:    _Mgmt_GetFilteredPermissions_Handler,
		},
		{
			MethodName: "DeletePermission",
			Handler:    _Mgmt_DeletePermission_Handler,
		},
		{
			MethodName: "GetUserPermissions",
			Handler:    _Mgmt_GetUserPermissions_Handler,
		},
		{
			MethodName: "AddUserPermission",
			Handler:    _Mgmt_AddUserPermission_Handler,
		},
		{
			MethodName: "RemoveUserPermission",
			Handler:    _Mgmt_RemoveUserPermission_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service.proto",
}

Mgmt_ServiceDesc is the grpc.ServiceDesc for Mgmt service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMgmtServer

func RegisterMgmtServer(s grpc.ServiceRegistrar, srv MgmtServer)

Types

type Access

type Access struct {
	Access uint64 `protobuf:"varint,1,opt,name=access,proto3" json:"access,omitempty"`
	// contains filtered or unexported fields
}

func (*Access) Descriptor deprecated

func (*Access) Descriptor() ([]byte, []int)

Deprecated: Use Access.ProtoReflect.Descriptor instead.

func (*Access) GetAccess

func (x *Access) GetAccess() uint64

func (*Access) ProtoMessage

func (*Access) ProtoMessage()

func (*Access) ProtoReflect

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

func (*Access) Reset

func (x *Access) Reset()

func (*Access) String

func (x *Access) String() string

type Account

type Account struct {
	Id   uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*Account) Descriptor deprecated

func (*Account) Descriptor() ([]byte, []int)

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetCode

func (x *Account) GetCode() string

func (*Account) GetId

func (x *Account) GetId() uint32

func (*Account) GetName

func (x *Account) GetName() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type AddUserPermissionRequest

type AddUserPermissionRequest struct {
	P      *Permission `protobuf:"bytes,1,opt,name=p,proto3" json:"p,omitempty"`
	UserId uint32      `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddUserPermissionRequest) Descriptor deprecated

func (*AddUserPermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddUserPermissionRequest.ProtoReflect.Descriptor instead.

func (*AddUserPermissionRequest) GetP

func (*AddUserPermissionRequest) GetUserId

func (x *AddUserPermissionRequest) GetUserId() uint32

func (*AddUserPermissionRequest) ProtoMessage

func (*AddUserPermissionRequest) ProtoMessage()

func (*AddUserPermissionRequest) ProtoReflect

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

func (*AddUserPermissionRequest) Reset

func (x *AddUserPermissionRequest) Reset()

func (*AddUserPermissionRequest) String

func (x *AddUserPermissionRequest) String() string

type AddUserPermissionResponse

type AddUserPermissionResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*AddUserPermissionResponse) Descriptor deprecated

func (*AddUserPermissionResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddUserPermissionResponse.ProtoReflect.Descriptor instead.

func (*AddUserPermissionResponse) GetOk

func (x *AddUserPermissionResponse) GetOk() bool

func (*AddUserPermissionResponse) ProtoMessage

func (*AddUserPermissionResponse) ProtoMessage()

func (*AddUserPermissionResponse) ProtoReflect

func (*AddUserPermissionResponse) Reset

func (x *AddUserPermissionResponse) Reset()

func (*AddUserPermissionResponse) String

func (x *AddUserPermissionResponse) String() string

type AttachAccountToServiceRequest

type AttachAccountToServiceRequest struct {
	ServiceId uint32 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	AccountId uint32 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AttachAccountToServiceRequest) Descriptor deprecated

func (*AttachAccountToServiceRequest) Descriptor() ([]byte, []int)

Deprecated: Use AttachAccountToServiceRequest.ProtoReflect.Descriptor instead.

func (*AttachAccountToServiceRequest) GetAccountId

func (x *AttachAccountToServiceRequest) GetAccountId() uint32

func (*AttachAccountToServiceRequest) GetServiceId

func (x *AttachAccountToServiceRequest) GetServiceId() uint32

func (*AttachAccountToServiceRequest) ProtoMessage

func (*AttachAccountToServiceRequest) ProtoMessage()

func (*AttachAccountToServiceRequest) ProtoReflect

func (*AttachAccountToServiceRequest) Reset

func (x *AttachAccountToServiceRequest) Reset()

func (*AttachAccountToServiceRequest) String

type AttachAccountToServiceResponse

type AttachAccountToServiceResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*AttachAccountToServiceResponse) Descriptor deprecated

func (*AttachAccountToServiceResponse) Descriptor() ([]byte, []int)

Deprecated: Use AttachAccountToServiceResponse.ProtoReflect.Descriptor instead.

func (*AttachAccountToServiceResponse) GetOk

func (*AttachAccountToServiceResponse) ProtoMessage

func (*AttachAccountToServiceResponse) ProtoMessage()

func (*AttachAccountToServiceResponse) ProtoReflect

func (*AttachAccountToServiceResponse) Reset

func (x *AttachAccountToServiceResponse) Reset()

func (*AttachAccountToServiceResponse) String

type AttachUserToAccountRequest

type AttachUserToAccountRequest struct {
	UserId    uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	AccountId uint32 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AttachUserToAccountRequest) Descriptor deprecated

func (*AttachUserToAccountRequest) Descriptor() ([]byte, []int)

Deprecated: Use AttachUserToAccountRequest.ProtoReflect.Descriptor instead.

func (*AttachUserToAccountRequest) GetAccountId

func (x *AttachUserToAccountRequest) GetAccountId() uint32

func (*AttachUserToAccountRequest) GetUserId

func (x *AttachUserToAccountRequest) GetUserId() uint32

func (*AttachUserToAccountRequest) ProtoMessage

func (*AttachUserToAccountRequest) ProtoMessage()

func (*AttachUserToAccountRequest) ProtoReflect

func (*AttachUserToAccountRequest) Reset

func (x *AttachUserToAccountRequest) Reset()

func (*AttachUserToAccountRequest) String

func (x *AttachUserToAccountRequest) String() string

type AttachUserToAccountResponse

type AttachUserToAccountResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*AttachUserToAccountResponse) Descriptor deprecated

func (*AttachUserToAccountResponse) Descriptor() ([]byte, []int)

Deprecated: Use AttachUserToAccountResponse.ProtoReflect.Descriptor instead.

func (*AttachUserToAccountResponse) GetOk

func (x *AttachUserToAccountResponse) GetOk() bool

func (*AttachUserToAccountResponse) ProtoMessage

func (*AttachUserToAccountResponse) ProtoMessage()

func (*AttachUserToAccountResponse) ProtoReflect

func (*AttachUserToAccountResponse) Reset

func (x *AttachUserToAccountResponse) Reset()

func (*AttachUserToAccountResponse) String

func (x *AttachUserToAccountResponse) String() string

type BlockUserRequest

type BlockUserRequest struct {
	UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockUserRequest) Descriptor deprecated

func (*BlockUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use BlockUserRequest.ProtoReflect.Descriptor instead.

func (*BlockUserRequest) GetUserId

func (x *BlockUserRequest) GetUserId() uint32

func (*BlockUserRequest) ProtoMessage

func (*BlockUserRequest) ProtoMessage()

func (*BlockUserRequest) ProtoReflect

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

func (*BlockUserRequest) Reset

func (x *BlockUserRequest) Reset()

func (*BlockUserRequest) String

func (x *BlockUserRequest) String() string

type BlockUserResponse

type BlockUserResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockUserResponse) Descriptor deprecated

func (*BlockUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use BlockUserResponse.ProtoReflect.Descriptor instead.

func (*BlockUserResponse) GetOk

func (x *BlockUserResponse) GetOk() bool

func (*BlockUserResponse) ProtoMessage

func (*BlockUserResponse) ProtoMessage()

func (*BlockUserResponse) ProtoReflect

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

func (*BlockUserResponse) Reset

func (x *BlockUserResponse) Reset()

func (*BlockUserResponse) String

func (x *BlockUserResponse) String() string

type CreateAccountRequest

type CreateAccountRequest struct {
	// contains filtered or unexported fields
}

func (*CreateAccountRequest) Descriptor deprecated

func (*CreateAccountRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAccountRequest.ProtoReflect.Descriptor instead.

func (*CreateAccountRequest) ProtoMessage

func (*CreateAccountRequest) ProtoMessage()

func (*CreateAccountRequest) ProtoReflect

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

func (*CreateAccountRequest) Reset

func (x *CreateAccountRequest) Reset()

func (*CreateAccountRequest) String

func (x *CreateAccountRequest) String() string

type CreateAccountResponse

type CreateAccountResponse struct {
	A *Account `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAccountResponse) Descriptor deprecated

func (*CreateAccountResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateAccountResponse.ProtoReflect.Descriptor instead.

func (*CreateAccountResponse) GetA

func (x *CreateAccountResponse) GetA() *Account

func (*CreateAccountResponse) ProtoMessage

func (*CreateAccountResponse) ProtoMessage()

func (*CreateAccountResponse) ProtoReflect

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

func (*CreateAccountResponse) Reset

func (x *CreateAccountResponse) Reset()

func (*CreateAccountResponse) String

func (x *CreateAccountResponse) String() string

type CreateAccountWithNameRequest

type CreateAccountWithNameRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAccountWithNameRequest) Descriptor deprecated

func (*CreateAccountWithNameRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAccountWithNameRequest.ProtoReflect.Descriptor instead.

func (*CreateAccountWithNameRequest) GetName

func (x *CreateAccountWithNameRequest) GetName() string

func (*CreateAccountWithNameRequest) ProtoMessage

func (*CreateAccountWithNameRequest) ProtoMessage()

func (*CreateAccountWithNameRequest) ProtoReflect

func (*CreateAccountWithNameRequest) Reset

func (x *CreateAccountWithNameRequest) Reset()

func (*CreateAccountWithNameRequest) String

type CreateAccountWithNameResponse

type CreateAccountWithNameResponse struct {
	A *Account `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAccountWithNameResponse) Descriptor deprecated

func (*CreateAccountWithNameResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateAccountWithNameResponse.ProtoReflect.Descriptor instead.

func (*CreateAccountWithNameResponse) GetA

func (*CreateAccountWithNameResponse) ProtoMessage

func (*CreateAccountWithNameResponse) ProtoMessage()

func (*CreateAccountWithNameResponse) ProtoReflect

func (*CreateAccountWithNameResponse) Reset

func (x *CreateAccountWithNameResponse) Reset()

func (*CreateAccountWithNameResponse) String

type CreatePermissionRequest

type CreatePermissionRequest struct {
	ServiceId uint32  `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	Name      string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Access    *Access `protobuf:"bytes,3,opt,name=access,proto3" json:"access,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePermissionRequest) Descriptor deprecated

func (*CreatePermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreatePermissionRequest.ProtoReflect.Descriptor instead.

func (*CreatePermissionRequest) GetAccess

func (x *CreatePermissionRequest) GetAccess() *Access

func (*CreatePermissionRequest) GetName

func (x *CreatePermissionRequest) GetName() string

func (*CreatePermissionRequest) GetServiceId

func (x *CreatePermissionRequest) GetServiceId() uint32

func (*CreatePermissionRequest) ProtoMessage

func (*CreatePermissionRequest) ProtoMessage()

func (*CreatePermissionRequest) ProtoReflect

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

func (*CreatePermissionRequest) Reset

func (x *CreatePermissionRequest) Reset()

func (*CreatePermissionRequest) String

func (x *CreatePermissionRequest) String() string

type CreatePermissionResponse

type CreatePermissionResponse struct {
	P *Permission `protobuf:"bytes,1,opt,name=p,proto3" json:"p,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePermissionResponse) Descriptor deprecated

func (*CreatePermissionResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreatePermissionResponse.ProtoReflect.Descriptor instead.

func (*CreatePermissionResponse) GetP

func (*CreatePermissionResponse) ProtoMessage

func (*CreatePermissionResponse) ProtoMessage()

func (*CreatePermissionResponse) ProtoReflect

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

func (*CreatePermissionResponse) Reset

func (x *CreatePermissionResponse) Reset()

func (*CreatePermissionResponse) String

func (x *CreatePermissionResponse) String() string

type CreateServiceRequest

type CreateServiceRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateServiceRequest) Descriptor deprecated

func (*CreateServiceRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateServiceRequest.ProtoReflect.Descriptor instead.

func (*CreateServiceRequest) GetName

func (x *CreateServiceRequest) GetName() string

func (*CreateServiceRequest) ProtoMessage

func (*CreateServiceRequest) ProtoMessage()

func (*CreateServiceRequest) ProtoReflect

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

func (*CreateServiceRequest) Reset

func (x *CreateServiceRequest) Reset()

func (*CreateServiceRequest) String

func (x *CreateServiceRequest) String() string

type CreateServiceResponse

type CreateServiceResponse struct {
	S *Service `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateServiceResponse) Descriptor deprecated

func (*CreateServiceResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateServiceResponse.ProtoReflect.Descriptor instead.

func (*CreateServiceResponse) GetS

func (x *CreateServiceResponse) GetS() *Service

func (*CreateServiceResponse) ProtoMessage

func (*CreateServiceResponse) ProtoMessage()

func (*CreateServiceResponse) ProtoReflect

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

func (*CreateServiceResponse) Reset

func (x *CreateServiceResponse) Reset()

func (*CreateServiceResponse) String

func (x *CreateServiceResponse) String() string

type CreateUserWithLoginPasswordRequest

type CreateUserWithLoginPasswordRequest struct {
	Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"`
	Pass  string `protobuf:"bytes,2,opt,name=pass,proto3" json:"pass,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserWithLoginPasswordRequest) Descriptor deprecated

func (*CreateUserWithLoginPasswordRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserWithLoginPasswordRequest.ProtoReflect.Descriptor instead.

func (*CreateUserWithLoginPasswordRequest) GetLogin

func (*CreateUserWithLoginPasswordRequest) GetPass

func (*CreateUserWithLoginPasswordRequest) ProtoMessage

func (*CreateUserWithLoginPasswordRequest) ProtoMessage()

func (*CreateUserWithLoginPasswordRequest) ProtoReflect

func (*CreateUserWithLoginPasswordRequest) Reset

func (*CreateUserWithLoginPasswordRequest) String

type CreateUserWithLoginPasswordResponse

type CreateUserWithLoginPasswordResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserWithLoginPasswordResponse) Descriptor deprecated

func (*CreateUserWithLoginPasswordResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserWithLoginPasswordResponse.ProtoReflect.Descriptor instead.

func (*CreateUserWithLoginPasswordResponse) GetUser

func (*CreateUserWithLoginPasswordResponse) ProtoMessage

func (*CreateUserWithLoginPasswordResponse) ProtoMessage()

func (*CreateUserWithLoginPasswordResponse) ProtoReflect

func (*CreateUserWithLoginPasswordResponse) Reset

func (*CreateUserWithLoginPasswordResponse) String

type CreateUserWithTelegramRequest

type CreateUserWithTelegramRequest struct {
	Id    uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	UserN string `protobuf:"bytes,3,opt,name=user_n,json=userN,proto3" json:"user_n,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserWithTelegramRequest) Descriptor deprecated

func (*CreateUserWithTelegramRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserWithTelegramRequest.ProtoReflect.Descriptor instead.

func (*CreateUserWithTelegramRequest) GetId

func (*CreateUserWithTelegramRequest) GetName

func (*CreateUserWithTelegramRequest) GetUserN

func (x *CreateUserWithTelegramRequest) GetUserN() string

func (*CreateUserWithTelegramRequest) ProtoMessage

func (*CreateUserWithTelegramRequest) ProtoMessage()

func (*CreateUserWithTelegramRequest) ProtoReflect

func (*CreateUserWithTelegramRequest) Reset

func (x *CreateUserWithTelegramRequest) Reset()

func (*CreateUserWithTelegramRequest) String

type CreateUserWithTelegramResponse

type CreateUserWithTelegramResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserWithTelegramResponse) Descriptor deprecated

func (*CreateUserWithTelegramResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserWithTelegramResponse.ProtoReflect.Descriptor instead.

func (*CreateUserWithTelegramResponse) GetUser

func (x *CreateUserWithTelegramResponse) GetUser() *User

func (*CreateUserWithTelegramResponse) ProtoMessage

func (*CreateUserWithTelegramResponse) ProtoMessage()

func (*CreateUserWithTelegramResponse) ProtoReflect

func (*CreateUserWithTelegramResponse) Reset

func (x *CreateUserWithTelegramResponse) Reset()

func (*CreateUserWithTelegramResponse) String

type DeletePermissionRequest

type DeletePermissionRequest struct {
	P *Permission `protobuf:"bytes,1,opt,name=p,proto3" json:"p,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePermissionRequest) Descriptor deprecated

func (*DeletePermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeletePermissionRequest.ProtoReflect.Descriptor instead.

func (*DeletePermissionRequest) GetP

func (*DeletePermissionRequest) ProtoMessage

func (*DeletePermissionRequest) ProtoMessage()

func (*DeletePermissionRequest) ProtoReflect

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

func (*DeletePermissionRequest) Reset

func (x *DeletePermissionRequest) Reset()

func (*DeletePermissionRequest) String

func (x *DeletePermissionRequest) String() string

type DeletePermissionResponse

type DeletePermissionResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePermissionResponse) Descriptor deprecated

func (*DeletePermissionResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeletePermissionResponse.ProtoReflect.Descriptor instead.

func (*DeletePermissionResponse) GetOk

func (x *DeletePermissionResponse) GetOk() bool

func (*DeletePermissionResponse) ProtoMessage

func (*DeletePermissionResponse) ProtoMessage()

func (*DeletePermissionResponse) ProtoReflect

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

func (*DeletePermissionResponse) Reset

func (x *DeletePermissionResponse) Reset()

func (*DeletePermissionResponse) String

func (x *DeletePermissionResponse) String() string

type GetAccountRequest

type GetAccountRequest struct {
	Acc *Account `protobuf:"bytes,1,opt,name=acc,proto3" json:"acc,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountRequest) Descriptor deprecated

func (*GetAccountRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.

func (*GetAccountRequest) GetAcc

func (x *GetAccountRequest) GetAcc() *Account

func (*GetAccountRequest) ProtoMessage

func (*GetAccountRequest) ProtoMessage()

func (*GetAccountRequest) ProtoReflect

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

func (*GetAccountRequest) Reset

func (x *GetAccountRequest) Reset()

func (*GetAccountRequest) String

func (x *GetAccountRequest) String() string

type GetAccountResponse

type GetAccountResponse struct {
	A *Account `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountResponse) Descriptor deprecated

func (*GetAccountResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAccountResponse.ProtoReflect.Descriptor instead.

func (*GetAccountResponse) GetA

func (x *GetAccountResponse) GetA() *Account

func (*GetAccountResponse) ProtoMessage

func (*GetAccountResponse) ProtoMessage()

func (*GetAccountResponse) ProtoReflect

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

func (*GetAccountResponse) Reset

func (x *GetAccountResponse) Reset()

func (*GetAccountResponse) String

func (x *GetAccountResponse) String() string

type GetAllAccountsRequest

type GetAllAccountsRequest struct {
	// contains filtered or unexported fields
}

func (*GetAllAccountsRequest) Descriptor deprecated

func (*GetAllAccountsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAllAccountsRequest.ProtoReflect.Descriptor instead.

func (*GetAllAccountsRequest) ProtoMessage

func (*GetAllAccountsRequest) ProtoMessage()

func (*GetAllAccountsRequest) ProtoReflect

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

func (*GetAllAccountsRequest) Reset

func (x *GetAllAccountsRequest) Reset()

func (*GetAllAccountsRequest) String

func (x *GetAllAccountsRequest) String() string

type GetAllAccountsResponse

type GetAllAccountsResponse struct {
	As []*Account `protobuf:"bytes,1,rep,name=as,proto3" json:"as,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllAccountsResponse) Descriptor deprecated

func (*GetAllAccountsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAllAccountsResponse.ProtoReflect.Descriptor instead.

func (*GetAllAccountsResponse) GetAs

func (x *GetAllAccountsResponse) GetAs() []*Account

func (*GetAllAccountsResponse) ProtoMessage

func (*GetAllAccountsResponse) ProtoMessage()

func (*GetAllAccountsResponse) ProtoReflect

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

func (*GetAllAccountsResponse) Reset

func (x *GetAllAccountsResponse) Reset()

func (*GetAllAccountsResponse) String

func (x *GetAllAccountsResponse) String() string

type GetAllPermissionRequest

type GetAllPermissionRequest struct {
	// contains filtered or unexported fields
}

func (*GetAllPermissionRequest) Descriptor deprecated

func (*GetAllPermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAllPermissionRequest.ProtoReflect.Descriptor instead.

func (*GetAllPermissionRequest) ProtoMessage

func (*GetAllPermissionRequest) ProtoMessage()

func (*GetAllPermissionRequest) ProtoReflect

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

func (*GetAllPermissionRequest) Reset

func (x *GetAllPermissionRequest) Reset()

func (*GetAllPermissionRequest) String

func (x *GetAllPermissionRequest) String() string

type GetAllPermissionResponse

type GetAllPermissionResponse struct {
	P []*Permission `protobuf:"bytes,1,rep,name=p,proto3" json:"p,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllPermissionResponse) Descriptor deprecated

func (*GetAllPermissionResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAllPermissionResponse.ProtoReflect.Descriptor instead.

func (*GetAllPermissionResponse) GetP

func (x *GetAllPermissionResponse) GetP() []*Permission

func (*GetAllPermissionResponse) ProtoMessage

func (*GetAllPermissionResponse) ProtoMessage()

func (*GetAllPermissionResponse) ProtoReflect

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

func (*GetAllPermissionResponse) Reset

func (x *GetAllPermissionResponse) Reset()

func (*GetAllPermissionResponse) String

func (x *GetAllPermissionResponse) String() string

type GetAllServicesRequest

type GetAllServicesRequest struct {
	// contains filtered or unexported fields
}

func (*GetAllServicesRequest) Descriptor deprecated

func (*GetAllServicesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAllServicesRequest.ProtoReflect.Descriptor instead.

func (*GetAllServicesRequest) ProtoMessage

func (*GetAllServicesRequest) ProtoMessage()

func (*GetAllServicesRequest) ProtoReflect

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

func (*GetAllServicesRequest) Reset

func (x *GetAllServicesRequest) Reset()

func (*GetAllServicesRequest) String

func (x *GetAllServicesRequest) String() string

type GetAllServicesResponse

type GetAllServicesResponse struct {
	Ss []*Service `protobuf:"bytes,1,rep,name=ss,proto3" json:"ss,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllServicesResponse) Descriptor deprecated

func (*GetAllServicesResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAllServicesResponse.ProtoReflect.Descriptor instead.

func (*GetAllServicesResponse) GetSs

func (x *GetAllServicesResponse) GetSs() []*Service

func (*GetAllServicesResponse) ProtoMessage

func (*GetAllServicesResponse) ProtoMessage()

func (*GetAllServicesResponse) ProtoReflect

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

func (*GetAllServicesResponse) Reset

func (x *GetAllServicesResponse) Reset()

func (*GetAllServicesResponse) String

func (x *GetAllServicesResponse) String() string

type GetAllUsersRequest

type GetAllUsersRequest struct {
	// contains filtered or unexported fields
}

func (*GetAllUsersRequest) Descriptor deprecated

func (*GetAllUsersRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAllUsersRequest.ProtoReflect.Descriptor instead.

func (*GetAllUsersRequest) ProtoMessage

func (*GetAllUsersRequest) ProtoMessage()

func (*GetAllUsersRequest) ProtoReflect

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

func (*GetAllUsersRequest) Reset

func (x *GetAllUsersRequest) Reset()

func (*GetAllUsersRequest) String

func (x *GetAllUsersRequest) String() string

type GetAllUsersResponse

type GetAllUsersResponse struct {
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllUsersResponse) Descriptor deprecated

func (*GetAllUsersResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAllUsersResponse.ProtoReflect.Descriptor instead.

func (*GetAllUsersResponse) GetUsers

func (x *GetAllUsersResponse) GetUsers() []*User

func (*GetAllUsersResponse) ProtoMessage

func (*GetAllUsersResponse) ProtoMessage()

func (*GetAllUsersResponse) ProtoReflect

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

func (*GetAllUsersResponse) Reset

func (x *GetAllUsersResponse) Reset()

func (*GetAllUsersResponse) String

func (x *GetAllUsersResponse) String() string

type GetFilteredPermissionsRequest

type GetFilteredPermissionsRequest struct {
	P *Permission `protobuf:"bytes,1,opt,name=p,proto3" json:"p,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFilteredPermissionsRequest) Descriptor deprecated

func (*GetFilteredPermissionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetFilteredPermissionsRequest.ProtoReflect.Descriptor instead.

func (*GetFilteredPermissionsRequest) GetP

func (*GetFilteredPermissionsRequest) ProtoMessage

func (*GetFilteredPermissionsRequest) ProtoMessage()

func (*GetFilteredPermissionsRequest) ProtoReflect

func (*GetFilteredPermissionsRequest) Reset

func (x *GetFilteredPermissionsRequest) Reset()

func (*GetFilteredPermissionsRequest) String

type GetFilteredPermissionsResponse

type GetFilteredPermissionsResponse struct {
	Perm []*Permission `protobuf:"bytes,1,rep,name=perm,proto3" json:"perm,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFilteredPermissionsResponse) Descriptor deprecated

func (*GetFilteredPermissionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetFilteredPermissionsResponse.ProtoReflect.Descriptor instead.

func (*GetFilteredPermissionsResponse) GetPerm

func (*GetFilteredPermissionsResponse) ProtoMessage

func (*GetFilteredPermissionsResponse) ProtoMessage()

func (*GetFilteredPermissionsResponse) ProtoReflect

func (*GetFilteredPermissionsResponse) Reset

func (x *GetFilteredPermissionsResponse) Reset()

func (*GetFilteredPermissionsResponse) String

type GetPermissionRequest

type GetPermissionRequest struct {
	P *Permission `protobuf:"bytes,1,opt,name=p,proto3" json:"p,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPermissionRequest) Descriptor deprecated

func (*GetPermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetPermissionRequest.ProtoReflect.Descriptor instead.

func (*GetPermissionRequest) GetP

func (x *GetPermissionRequest) GetP() *Permission

func (*GetPermissionRequest) ProtoMessage

func (*GetPermissionRequest) ProtoMessage()

func (*GetPermissionRequest) ProtoReflect

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

func (*GetPermissionRequest) Reset

func (x *GetPermissionRequest) Reset()

func (*GetPermissionRequest) String

func (x *GetPermissionRequest) String() string

type GetPermissionResponse

type GetPermissionResponse struct {
	Perm *Permission `protobuf:"bytes,1,opt,name=perm,proto3" json:"perm,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPermissionResponse) Descriptor deprecated

func (*GetPermissionResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetPermissionResponse.ProtoReflect.Descriptor instead.

func (*GetPermissionResponse) GetPerm

func (x *GetPermissionResponse) GetPerm() *Permission

func (*GetPermissionResponse) ProtoMessage

func (*GetPermissionResponse) ProtoMessage()

func (*GetPermissionResponse) ProtoReflect

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

func (*GetPermissionResponse) Reset

func (x *GetPermissionResponse) Reset()

func (*GetPermissionResponse) String

func (x *GetPermissionResponse) String() string

type GetServiceRequest

type GetServiceRequest struct {
	Svc *Service `protobuf:"bytes,1,opt,name=svc,proto3" json:"svc,omitempty"`
	// contains filtered or unexported fields
}

func (*GetServiceRequest) Descriptor deprecated

func (*GetServiceRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetServiceRequest.ProtoReflect.Descriptor instead.

func (*GetServiceRequest) GetSvc

func (x *GetServiceRequest) GetSvc() *Service

func (*GetServiceRequest) ProtoMessage

func (*GetServiceRequest) ProtoMessage()

func (*GetServiceRequest) ProtoReflect

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

func (*GetServiceRequest) Reset

func (x *GetServiceRequest) Reset()

func (*GetServiceRequest) String

func (x *GetServiceRequest) String() string

type GetServiceResponse

type GetServiceResponse struct {
	S *Service `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"`
	// contains filtered or unexported fields
}

func (*GetServiceResponse) Descriptor deprecated

func (*GetServiceResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetServiceResponse.ProtoReflect.Descriptor instead.

func (*GetServiceResponse) GetS

func (x *GetServiceResponse) GetS() *Service

func (*GetServiceResponse) ProtoMessage

func (*GetServiceResponse) ProtoMessage()

func (*GetServiceResponse) ProtoReflect

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

func (*GetServiceResponse) Reset

func (x *GetServiceResponse) Reset()

func (*GetServiceResponse) String

func (x *GetServiceResponse) String() string

type GetUserPermissionsRequest

type GetUserPermissionsRequest struct {
	UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserPermissionsRequest) Descriptor deprecated

func (*GetUserPermissionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserPermissionsRequest.ProtoReflect.Descriptor instead.

func (*GetUserPermissionsRequest) GetUserId

func (x *GetUserPermissionsRequest) GetUserId() uint32

func (*GetUserPermissionsRequest) ProtoMessage

func (*GetUserPermissionsRequest) ProtoMessage()

func (*GetUserPermissionsRequest) ProtoReflect

func (*GetUserPermissionsRequest) Reset

func (x *GetUserPermissionsRequest) Reset()

func (*GetUserPermissionsRequest) String

func (x *GetUserPermissionsRequest) String() string

type GetUserPermissionsResponse

type GetUserPermissionsResponse struct {
	Permissions []*Permission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserPermissionsResponse) Descriptor deprecated

func (*GetUserPermissionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUserPermissionsResponse.ProtoReflect.Descriptor instead.

func (*GetUserPermissionsResponse) GetPermissions

func (x *GetUserPermissionsResponse) GetPermissions() []*Permission

func (*GetUserPermissionsResponse) ProtoMessage

func (*GetUserPermissionsResponse) ProtoMessage()

func (*GetUserPermissionsResponse) ProtoReflect

func (*GetUserPermissionsResponse) Reset

func (x *GetUserPermissionsResponse) Reset()

func (*GetUserPermissionsResponse) String

func (x *GetUserPermissionsResponse) String() string

type GetUserRequest

type GetUserRequest struct {
	UserReq *User `protobuf:"bytes,1,opt,name=user_req,json=userReq,proto3" json:"user_req,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

func (*GetUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetUserReq

func (x *GetUserRequest) GetUserReq() *User

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GetUserResponse

type GetUserResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated

func (*GetUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetUser

func (x *GetUserResponse) GetUser() *User

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

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

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

type MgmtClient

type MgmtClient interface {
	CreateUserWithLoginPassword(ctx context.Context, in *CreateUserWithLoginPasswordRequest, opts ...grpc.CallOption) (*CreateUserWithLoginPasswordResponse, error)
	CreateUserWithTelegram(ctx context.Context, in *CreateUserWithTelegramRequest, opts ...grpc.CallOption) (*CreateUserWithTelegramResponse, error)
	GetAllUsers(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetAllUsersResponse, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error)
	BlockUser(ctx context.Context, in *BlockUserRequest, opts ...grpc.CallOption) (*BlockUserResponse, error)
	UnblockUser(ctx context.Context, in *UnblockUserRequest, opts ...grpc.CallOption) (*UnblockUserResponse, error)
	CreateService(ctx context.Context, in *CreateServiceRequest, opts ...grpc.CallOption) (*CreateServiceResponse, error)
	GetAllServices(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetAllServicesResponse, error)
	GetService(ctx context.Context, in *GetServiceRequest, opts ...grpc.CallOption) (*GetServiceResponse, error)
	CreateAccount(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CreateAccountResponse, error)
	CreateAccountWithName(ctx context.Context, in *CreateAccountWithNameRequest, opts ...grpc.CallOption) (*CreateAccountWithNameResponse, error)
	GetAllAccounts(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetAllAccountsResponse, error)
	GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error)
	UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*UpdateAccountResponse, error)
	AttachUserToAccount(ctx context.Context, in *AttachUserToAccountRequest, opts ...grpc.CallOption) (*AttachUserToAccountResponse, error)
	AttachAccountToService(ctx context.Context, in *AttachAccountToServiceRequest, opts ...grpc.CallOption) (*AttachAccountToServiceResponse, error)
	RemoveAccountFromService(ctx context.Context, in *RemoveAccountFromServiceRequest, opts ...grpc.CallOption) (*RemoveAccountFromServiceResponse, error)
	CreatePermission(ctx context.Context, in *CreatePermissionRequest, opts ...grpc.CallOption) (*CreatePermissionResponse, error)
	GetPermission(ctx context.Context, in *GetPermissionRequest, opts ...grpc.CallOption) (*GetPermissionResponse, error)
	GetAllPermission(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetAllPermissionResponse, error)
	GetFilteredPermissions(ctx context.Context, in *GetFilteredPermissionsRequest, opts ...grpc.CallOption) (*GetFilteredPermissionsResponse, error)
	DeletePermission(ctx context.Context, in *DeletePermissionRequest, opts ...grpc.CallOption) (*DeletePermissionResponse, error)
	GetUserPermissions(ctx context.Context, in *GetUserPermissionsRequest, opts ...grpc.CallOption) (*GetUserPermissionsResponse, error)
	AddUserPermission(ctx context.Context, in *AddUserPermissionRequest, opts ...grpc.CallOption) (*AddUserPermissionResponse, error)
	RemoveUserPermission(ctx context.Context, in *RemoveUserPermissionRequest, opts ...grpc.CallOption) (*RemoveUserPermissionResponse, error)
}

MgmtClient is the client API for Mgmt 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 NewMgmtClient

func NewMgmtClient(cc grpc.ClientConnInterface) MgmtClient

type MgmtServer

type MgmtServer interface {
	CreateUserWithLoginPassword(context.Context, *CreateUserWithLoginPasswordRequest) (*CreateUserWithLoginPasswordResponse, error)
	CreateUserWithTelegram(context.Context, *CreateUserWithTelegramRequest) (*CreateUserWithTelegramResponse, error)
	GetAllUsers(context.Context, *emptypb.Empty) (*GetAllUsersResponse, error)
	GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
	UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
	BlockUser(context.Context, *BlockUserRequest) (*BlockUserResponse, error)
	UnblockUser(context.Context, *UnblockUserRequest) (*UnblockUserResponse, error)
	CreateService(context.Context, *CreateServiceRequest) (*CreateServiceResponse, error)
	GetAllServices(context.Context, *emptypb.Empty) (*GetAllServicesResponse, error)
	GetService(context.Context, *GetServiceRequest) (*GetServiceResponse, error)
	CreateAccount(context.Context, *emptypb.Empty) (*CreateAccountResponse, error)
	CreateAccountWithName(context.Context, *CreateAccountWithNameRequest) (*CreateAccountWithNameResponse, error)
	GetAllAccounts(context.Context, *emptypb.Empty) (*GetAllAccountsResponse, error)
	GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
	UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountResponse, error)
	AttachUserToAccount(context.Context, *AttachUserToAccountRequest) (*AttachUserToAccountResponse, error)
	AttachAccountToService(context.Context, *AttachAccountToServiceRequest) (*AttachAccountToServiceResponse, error)
	RemoveAccountFromService(context.Context, *RemoveAccountFromServiceRequest) (*RemoveAccountFromServiceResponse, error)
	CreatePermission(context.Context, *CreatePermissionRequest) (*CreatePermissionResponse, error)
	GetPermission(context.Context, *GetPermissionRequest) (*GetPermissionResponse, error)
	GetAllPermission(context.Context, *emptypb.Empty) (*GetAllPermissionResponse, error)
	GetFilteredPermissions(context.Context, *GetFilteredPermissionsRequest) (*GetFilteredPermissionsResponse, error)
	DeletePermission(context.Context, *DeletePermissionRequest) (*DeletePermissionResponse, error)
	GetUserPermissions(context.Context, *GetUserPermissionsRequest) (*GetUserPermissionsResponse, error)
	AddUserPermission(context.Context, *AddUserPermissionRequest) (*AddUserPermissionResponse, error)
	RemoveUserPermission(context.Context, *RemoveUserPermissionRequest) (*RemoveUserPermissionResponse, error)
	// contains filtered or unexported methods
}

MgmtServer is the server API for Mgmt service. All implementations must embed UnimplementedMgmtServer for forward compatibility

type Permission

type Permission struct {
	Id        uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Access    uint64 `protobuf:"varint,3,opt,name=access,proto3" json:"access,omitempty"`
	ServiceId uint32 `protobuf:"varint,4,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Permission) Descriptor deprecated

func (*Permission) Descriptor() ([]byte, []int)

Deprecated: Use Permission.ProtoReflect.Descriptor instead.

func (*Permission) GetAccess

func (x *Permission) GetAccess() uint64

func (*Permission) GetId

func (x *Permission) GetId() uint32

func (*Permission) GetName

func (x *Permission) GetName() string

func (*Permission) GetServiceId

func (x *Permission) GetServiceId() uint32

func (*Permission) ProtoMessage

func (*Permission) ProtoMessage()

func (*Permission) ProtoReflect

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

func (*Permission) Reset

func (x *Permission) Reset()

func (*Permission) String

func (x *Permission) String() string

type RemoveAccountFromServiceRequest

type RemoveAccountFromServiceRequest struct {
	ServiceId uint32 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	AccountId uint32 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveAccountFromServiceRequest) Descriptor deprecated

func (*RemoveAccountFromServiceRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveAccountFromServiceRequest.ProtoReflect.Descriptor instead.

func (*RemoveAccountFromServiceRequest) GetAccountId

func (x *RemoveAccountFromServiceRequest) GetAccountId() uint32

func (*RemoveAccountFromServiceRequest) GetServiceId

func (x *RemoveAccountFromServiceRequest) GetServiceId() uint32

func (*RemoveAccountFromServiceRequest) ProtoMessage

func (*RemoveAccountFromServiceRequest) ProtoMessage()

func (*RemoveAccountFromServiceRequest) ProtoReflect

func (*RemoveAccountFromServiceRequest) Reset

func (*RemoveAccountFromServiceRequest) String

type RemoveAccountFromServiceResponse

type RemoveAccountFromServiceResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveAccountFromServiceResponse) Descriptor deprecated

func (*RemoveAccountFromServiceResponse) Descriptor() ([]byte, []int)

Deprecated: Use RemoveAccountFromServiceResponse.ProtoReflect.Descriptor instead.

func (*RemoveAccountFromServiceResponse) GetOk

func (*RemoveAccountFromServiceResponse) ProtoMessage

func (*RemoveAccountFromServiceResponse) ProtoMessage()

func (*RemoveAccountFromServiceResponse) ProtoReflect

func (*RemoveAccountFromServiceResponse) Reset

func (*RemoveAccountFromServiceResponse) String

type RemoveUserPermissionRequest

type RemoveUserPermissionRequest struct {
	PermId uint32 `protobuf:"varint,1,opt,name=perm_id,json=permId,proto3" json:"perm_id,omitempty"`
	UserId uint32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveUserPermissionRequest) Descriptor deprecated

func (*RemoveUserPermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveUserPermissionRequest.ProtoReflect.Descriptor instead.

func (*RemoveUserPermissionRequest) GetPermId

func (x *RemoveUserPermissionRequest) GetPermId() uint32

func (*RemoveUserPermissionRequest) GetUserId

func (x *RemoveUserPermissionRequest) GetUserId() uint32

func (*RemoveUserPermissionRequest) ProtoMessage

func (*RemoveUserPermissionRequest) ProtoMessage()

func (*RemoveUserPermissionRequest) ProtoReflect

func (*RemoveUserPermissionRequest) Reset

func (x *RemoveUserPermissionRequest) Reset()

func (*RemoveUserPermissionRequest) String

func (x *RemoveUserPermissionRequest) String() string

type RemoveUserPermissionResponse

type RemoveUserPermissionResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveUserPermissionResponse) Descriptor deprecated

func (*RemoveUserPermissionResponse) Descriptor() ([]byte, []int)

Deprecated: Use RemoveUserPermissionResponse.ProtoReflect.Descriptor instead.

func (*RemoveUserPermissionResponse) GetOk

func (*RemoveUserPermissionResponse) ProtoMessage

func (*RemoveUserPermissionResponse) ProtoMessage()

func (*RemoveUserPermissionResponse) ProtoReflect

func (*RemoveUserPermissionResponse) Reset

func (x *RemoveUserPermissionResponse) Reset()

func (*RemoveUserPermissionResponse) String

type Service

type Service struct {
	Id   uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*Service) Descriptor deprecated

func (*Service) Descriptor() ([]byte, []int)

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetCode

func (x *Service) GetCode() string

func (*Service) GetId

func (x *Service) GetId() uint32

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

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

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

type UnblockUserRequest

type UnblockUserRequest struct {
	UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UnblockUserRequest) Descriptor deprecated

func (*UnblockUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use UnblockUserRequest.ProtoReflect.Descriptor instead.

func (*UnblockUserRequest) GetUserId

func (x *UnblockUserRequest) GetUserId() uint32

func (*UnblockUserRequest) ProtoMessage

func (*UnblockUserRequest) ProtoMessage()

func (*UnblockUserRequest) ProtoReflect

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

func (*UnblockUserRequest) Reset

func (x *UnblockUserRequest) Reset()

func (*UnblockUserRequest) String

func (x *UnblockUserRequest) String() string

type UnblockUserResponse

type UnblockUserResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*UnblockUserResponse) Descriptor deprecated

func (*UnblockUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use UnblockUserResponse.ProtoReflect.Descriptor instead.

func (*UnblockUserResponse) GetOk

func (x *UnblockUserResponse) GetOk() bool

func (*UnblockUserResponse) ProtoMessage

func (*UnblockUserResponse) ProtoMessage()

func (*UnblockUserResponse) ProtoReflect

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

func (*UnblockUserResponse) Reset

func (x *UnblockUserResponse) Reset()

func (*UnblockUserResponse) String

func (x *UnblockUserResponse) String() string

type UnimplementedMgmtServer

type UnimplementedMgmtServer struct {
}

UnimplementedMgmtServer must be embedded to have forward compatible implementations.

func (UnimplementedMgmtServer) BlockUser

func (UnimplementedMgmtServer) CreateAccount

func (UnimplementedMgmtServer) CreateService

func (UnimplementedMgmtServer) GetAccount

func (UnimplementedMgmtServer) GetAllAccounts

func (UnimplementedMgmtServer) GetAllPermission

func (UnimplementedMgmtServer) GetAllServices

func (UnimplementedMgmtServer) GetAllUsers

func (UnimplementedMgmtServer) GetPermission

func (UnimplementedMgmtServer) GetService

func (UnimplementedMgmtServer) GetUser

func (UnimplementedMgmtServer) UnblockUser

func (UnimplementedMgmtServer) UpdateAccount

func (UnimplementedMgmtServer) UpdateUser

type UnsafeMgmtServer

type UnsafeMgmtServer interface {
	// contains filtered or unexported methods
}

UnsafeMgmtServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MgmtServer will result in compilation errors.

type UpdateAccountRequest

type UpdateAccountRequest struct {
	Acc *Account `protobuf:"bytes,1,opt,name=acc,proto3" json:"acc,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAccountRequest) Descriptor deprecated

func (*UpdateAccountRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAccountRequest.ProtoReflect.Descriptor instead.

func (*UpdateAccountRequest) GetAcc

func (x *UpdateAccountRequest) GetAcc() *Account

func (*UpdateAccountRequest) ProtoMessage

func (*UpdateAccountRequest) ProtoMessage()

func (*UpdateAccountRequest) ProtoReflect

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

func (*UpdateAccountRequest) Reset

func (x *UpdateAccountRequest) Reset()

func (*UpdateAccountRequest) String

func (x *UpdateAccountRequest) String() string

type UpdateAccountResponse

type UpdateAccountResponse struct {
	A *Account `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAccountResponse) Descriptor deprecated

func (*UpdateAccountResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAccountResponse.ProtoReflect.Descriptor instead.

func (*UpdateAccountResponse) GetA

func (x *UpdateAccountResponse) GetA() *Account

func (*UpdateAccountResponse) ProtoMessage

func (*UpdateAccountResponse) ProtoMessage()

func (*UpdateAccountResponse) ProtoReflect

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

func (*UpdateAccountResponse) Reset

func (x *UpdateAccountResponse) Reset()

func (*UpdateAccountResponse) String

func (x *UpdateAccountResponse) String() string

type UpdateMapAccountResponse

type UpdateMapAccountResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMapAccountResponse) Descriptor deprecated

func (*UpdateMapAccountResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMapAccountResponse.ProtoReflect.Descriptor instead.

func (*UpdateMapAccountResponse) GetOk

func (x *UpdateMapAccountResponse) GetOk() bool

func (*UpdateMapAccountResponse) ProtoMessage

func (*UpdateMapAccountResponse) ProtoMessage()

func (*UpdateMapAccountResponse) ProtoReflect

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

func (*UpdateMapAccountResponse) Reset

func (x *UpdateMapAccountResponse) Reset()

func (*UpdateMapAccountResponse) String

func (x *UpdateMapAccountResponse) String() string

type UpdateMapUserResponse

type UpdateMapUserResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMapUserResponse) Descriptor deprecated

func (*UpdateMapUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMapUserResponse.ProtoReflect.Descriptor instead.

func (*UpdateMapUserResponse) GetOk

func (x *UpdateMapUserResponse) GetOk() bool

func (*UpdateMapUserResponse) ProtoMessage

func (*UpdateMapUserResponse) ProtoMessage()

func (*UpdateMapUserResponse) ProtoReflect

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

func (*UpdateMapUserResponse) Reset

func (x *UpdateMapUserResponse) Reset()

func (*UpdateMapUserResponse) String

func (x *UpdateMapUserResponse) String() string

type UpdateUserRequest

type UpdateUserRequest struct {
	UserReq *User `protobuf:"bytes,1,opt,name=user_req,json=userReq,proto3" json:"user_req,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

func (*UpdateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetUserReq

func (x *UpdateUserRequest) GetUserReq() *User

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type UpdateUserResponse

type UpdateUserResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserResponse) Descriptor deprecated

func (*UpdateUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.

func (*UpdateUserResponse) GetUser

func (x *UpdateUserResponse) GetUser() *User

func (*UpdateUserResponse) ProtoMessage

func (*UpdateUserResponse) ProtoMessage()

func (*UpdateUserResponse) ProtoReflect

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

func (*UpdateUserResponse) Reset

func (x *UpdateUserResponse) Reset()

func (*UpdateUserResponse) String

func (x *UpdateUserResponse) String() string

type User

type User struct {
	Id         uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Code       string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	Name       string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	TgName     string `protobuf:"bytes,4,opt,name=tg_name,json=tgName,proto3" json:"tg_name,omitempty"`
	TgId       uint64 `protobuf:"varint,5,opt,name=tg_id,json=tgId,proto3" json:"tg_id,omitempty"`
	TgUsername string `protobuf:"bytes,6,opt,name=tg_username,json=tgUsername,proto3" json:"tg_username,omitempty"`
	ParentId   uint32 `protobuf:"varint,7,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	AccountId  uint32 `protobuf:"varint,8,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Blocked    bool   `protobuf:"varint,9,opt,name=blocked,proto3" json:"blocked,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAccountId

func (x *User) GetAccountId() uint32

func (*User) GetBlocked

func (x *User) GetBlocked() bool

func (*User) GetCode

func (x *User) GetCode() string

func (*User) GetId

func (x *User) GetId() uint32

func (*User) GetName

func (x *User) GetName() string

func (*User) GetParentId

func (x *User) GetParentId() uint32

func (*User) GetTgId

func (x *User) GetTgId() uint64

func (*User) GetTgName

func (x *User) GetTgName() string

func (*User) GetTgUsername

func (x *User) GetTgUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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