moove

package
v0.0.0-...-a65319e Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	URL string
	// contains filtered or unexported fields
}

func (APIClient) GetMooveComponents

func (api APIClient) GetMooveComponents(circleIDHeader, circleID string, workspaceID uuid.UUID) ([]byte, errors.Error)

type APIUseCases

type APIUseCases interface {
	GetMooveComponents(circleIDHeader, circleID string, workspaceID uuid.UUID) ([]byte, errors.Error)
}

func NewAPIClient

func NewAPIClient(url string, timeout time.Duration) APIUseCases

type Main

type Main struct {
	Db *gorm.DB
}

func (Main) FindUserByEmail

func (main Main) FindUserByEmail(email string) (User, errors.Error)

func (Main) GetUserPermissions

func (main Main) GetUserPermissions(userID, workspaceID uuid.UUID) ([]string, errors.Error)

type Permission

type Permission struct {
	Name string
}

type PermissionsResult

type PermissionsResult struct {
	Permissions json.RawMessage
}

type UseCases

type UseCases interface {
	FindUserByEmail(email string) (User, errors.Error)
	GetUserPermissions(userID, workspaceID uuid.UUID) ([]string, errors.Error)
}

func NewMain

func NewMain(mooveDb *gorm.DB) UseCases

type User

type User struct {
	util.BaseModel
	Email  string
	Name   string
	IsRoot bool
}

Jump to

Keyboard shortcuts

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