service

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(c *di.Container)

Types

type Service

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

func New

func New(
	codebaseService *service_codebase.Service,
	userService service_user.Service,
	workspaceService service_workspace.Service,
	aclProvider *provider_acl.Provider,
	organizationService *service_organization.Service,
) *Service

func (*Service) CanRead

func (s *Service) CanRead(ctx context.Context, obj interface{}) error

CanRead checks if the user has the read permission on the given object.

func (*Service) CanWrite

func (s *Service) CanWrite(ctx context.Context, obj interface{}) error

CanWrite checks if the user has the write permission on the given object.

func (*Service) GetAllower

func (s *Service) GetAllower(ctx context.Context, obj interface{}) (*unidiff.Allower, error)

Jump to

Keyboard shortcuts

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