api

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportTypesEndpoints

func ImportTypesEndpoints(config config.Config, control Controller, router *httprouter.Router)

func Start

func Start(config config.Config, control Controller) (err error)

Types

type Controller

type Controller interface {
	ReadImportType(id string, jwt auth.Token) (result model.ImportType, err error, errCode int)
	CheckAccessToImportType(jwt auth.Token, id string, action model.AuthAction) (err error, code int)
	CreateImportType(importType model.ImportType, jwt auth.Token) (result model.ImportType, err error, code int)
	SetImportType(importType model.ImportType, jwt auth.Token) (err error, code int)
	DeleteImportType(id string, jwt auth.Token) (err error, errCode int)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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