apiserver

package
v0.0.0-...-ef9407b Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterApiManager

func RegisterApiManager(api ApiManager)

RegisterApiManager will allow each version module to register itself

Types

type ApiManager

type ApiManager interface {
	// Initialize api manager with configuration
	Initialize(c core.Config) error
	// Get apimanager's version
	GetVersion() string
	// Mainloop method
	Run() error
}

ApiManager represent api manager interface for each version

func GetApiManager

func GetApiManager(c core.Config) (ApiManager, error)

GetApiManger return api manager specified by configuration

Directories

Path Synopsis
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

Jump to

Keyboard shortcuts

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