api

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0, Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DocEndpoint added in v0.0.13

func DocEndpoint(config config.Config, control Controller, router *gin.Engine)

func ImportTypesEndpoints

func ImportTypesEndpoints(config config.Config, control Controller, router *gin.Engine)

func Start

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

Start godoc @title Import Repository API @description Repository to store metadata about import types. @BasePath / @securityDefinitions.apikey Bearer @in header @name Authorization

Types

type Controller

type Controller interface {
	ReadImportType(id string, token jwt.Token) (result model.ImportType, err error, errCode int)
	ListImportTypes(token jwt.Token, options model.ImportTypeListOptions) (result []model.ImportType, total int64, err error, errCode int)
	CreateImportType(importType model.ImportType, token jwt.Token) (result model.ImportType, err error, code int)
	SetImportType(importType model.ImportType, token jwt.Token) (err error, code int)
	DeleteImportType(id string, token jwt.Token) (err error, errCode int)
}

type ErrorResponse added in v0.0.13

type ErrorResponse string

Jump to

Keyboard shortcuts

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