commands

package
v0.0.0-...-839bc5d Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckCombiner

type CheckCombiner func(ctx context.Context, functions []CheckFunction, limit int) (*base.PermissionCheckResponse, error)

CheckCombiner .

type CheckCommand

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

CheckCommand -

func (*CheckCommand) Execute

func (command *CheckCommand) Execute(ctx context.Context, request *base.PermissionCheckRequest) (response *base.PermissionCheckResponse, err error)

Execute - there are two option for request's permission field. - relation - action

type CheckFunction

type CheckFunction func(ctx context.Context) (*base.PermissionCheckResponse, error)

CheckFunction -

type CheckOption

type CheckOption func(*CheckCommand)

CheckOption - Option type

func ConcurrencyLimit

func ConcurrencyLimit(limit int) CheckOption

ConcurrencyLimit - Defines concurrency limit

type CheckResponse

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

CheckResponse -

type ExpandCombiner

type ExpandCombiner func(ctx context.Context, functions []ExpandFunction) ExpandResponse

ExpandCombiner .

type ExpandCommand

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

ExpandCommand -

func NewExpandCommand

NewExpandCommand -

func (*ExpandCommand) Execute

func (command *ExpandCommand) Execute(ctx context.Context, request *base.PermissionExpandRequest) (response *base.PermissionExpandResponse, err error)

Execute -

type ExpandFunction

type ExpandFunction func(ctx context.Context, expandChain chan<- ExpandResponse)

ExpandFunction -

type ExpandResponse

type ExpandResponse struct {
	Response *base.PermissionExpandResponse
	Err      error
}

ExpandResponse -

type ICheckCommand

type ICheckCommand interface {
	Execute(ctx context.Context, request *base.PermissionCheckRequest) (response *base.PermissionCheckResponse, err error)
}

ICheckCommand -

type IExpandCommand

type IExpandCommand interface {
	Execute(ctx context.Context, request *base.PermissionExpandRequest) (response *base.PermissionExpandResponse, err error)
}

IExpandCommand -

type ILookupEntityCommand

type ILookupEntityCommand interface {
	Execute(ctx context.Context, request *base.PermissionLookupEntityRequest) (response *base.PermissionLookupEntityResponse, err error)
	Stream(ctx context.Context, request *base.PermissionLookupEntityRequest, server base.Permission_LookupEntityStreamServer) (err error)
}

ILookupEntityCommand -

type ILookupSchemaCommand

type ILookupSchemaCommand interface {
	Execute(ctx context.Context, request *base.PermissionLookupSchemaRequest) (response *base.PermissionLookupSchemaResponse, err error)
}

ILookupSchemaCommand -

type LookupEntityCommand

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

LookupEntityCommand -

func NewLookupEntityCommand

NewLookupEntityCommand -

func (*LookupEntityCommand) Execute

Execute -

func (*LookupEntityCommand) Stream

Stream -

type LookupSchemaCommand

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

LookupSchemaCommand -

func NewLookupSchemaCommand

func NewLookupSchemaCommand(schemaReader repositories.SchemaReader) *LookupSchemaCommand

NewLookupSchemaCommand -

func (*LookupSchemaCommand) Execute

Execute -

type SchemaLookupCombiner

type SchemaLookupCombiner func(ctx context.Context, functions []SchemaLookupFunction) SchemaLookupDecision

SchemaLookupCombiner .

type SchemaLookupDecision

type SchemaLookupDecision struct {
	Can bool
	Err error
}

SchemaLookupDecision -

type SchemaLookupFunction

type SchemaLookupFunction func(ctx context.Context, lookupChan chan<- SchemaLookupDecision)

SchemaLookupFunction -

Jump to

Keyboard shortcuts

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