apiplugin

package
Version: v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2016 License: Apache-2.0 Imports: 1 Imported by: 8

Documentation

Index

Constants

View Source
const (
	License      = "license"
	Registry     = "registry"
	Account      = "account"
	Catalog      = "catalog"
	Search       = "search"
	RegistryAuth = "registryauth"
	Db           = "db"
)

Variables

View Source
var ApiPlugins map[string]*ApiPlugin

Functions

func Add

func Add(plugin *ApiPlugin)

Types

type ApiPlugin

type ApiPlugin struct {
	Name         string
	Dependencies []string
	Instance     CraneApi
}

type CraneApi

type CraneApi interface {
	ApiRegister(router *gin.Engine, middlewares ...gin.HandlerFunc)
}

Source Files

Jump to

Keyboard shortcuts

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