aclclient

package
v0.3.19-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "common.acl.aclclient"

Variables

This section is empty.

Functions

This section is empty.

Types

type AclJoiningClient

type AclJoiningClient interface {
	app.Component
	AclGetRecords(ctx context.Context, spaceId, aclHead string) ([]*consensusproto.RawRecordWithId, error)
	RequestJoin(ctx context.Context, spaceId string, payload list.RequestJoinPayload) error
}

func NewAclJoiningClient

func NewAclJoiningClient() AclJoiningClient

type AclSpaceClient

type AclSpaceClient interface {
	app.Component
	GenerateInvite() (list.InviteResult, error)
	AddRecord(ctx context.Context, consRec *consensusproto.RawRecord) error
	RemoveAccounts(ctx context.Context, payload list.AccountRemovePayload) error
	AcceptRequest(ctx context.Context, payload list.RequestAcceptPayload) error
}

func NewAclSpaceClient

func NewAclSpaceClient() AclSpaceClient

type GetRecordsResponse

type GetRecordsResponse struct {
	Records []*consensusproto.RawRecordWithId
}

type InviteResponse

type InviteResponse struct {
	InviteRec *consensusproto.RawRecord
	InviteKey crypto.PrivKey
}

type InviteSaveFunc

type InviteSaveFunc func()

Jump to

Keyboard shortcuts

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