company

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func (Controller) CreateTokenCompany

func (c Controller) CreateTokenCompany(token *api.Token) (string, error)

func (Controller) DeleteTokenCompany

func (c Controller) DeleteTokenCompany(tokenID uuid.UUID) error

func (Controller) GetAllTokenCompany

func (c Controller) GetAllTokenCompany(companyID uuid.UUID) (*[]api.Token, error)

type IController

type IController interface {
	CreateTokenCompany(*api.Token) (string, error)
	DeleteTokenCompany(tokenID uuid.UUID) error
	GetAllTokenCompany(repositoryID uuid.UUID) (*[]api.Token, error)
}

func NewController

func NewController(postgresRead relational.InterfaceRead, postgresWrite relational.InterfaceWrite) IController

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳