api

package
v0.0.0-...-4396624 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2018 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(id string)

Validate is a public function for validating APIs

Types

type APIDef

type APIDef struct {
	APIModel      APIModel
	APIDefinition apidef.APIDefinition
	// contains filtered or unexported fields
}

func New

func New(name string) *APIDef

func (*APIDef) BucketName

func (api *APIDef) BucketName() string

func (*APIDef) Create

func (api *APIDef) Create(bdb *bolt.DB) error

Create is a public function for creating staged APIs

func (*APIDef) Find

func (apis *APIDef) Find(bdb *bolt.DB, id string) (interface{}, error)

Find is a public function for finding staged APIs

func (*APIDef) Group

func (api *APIDef) Group() string

func (*APIDef) Id

func (api *APIDef) Id() string

func (*APIDef) Name

func (api *APIDef) Name() string

func (*APIDef) RecordData

func (api *APIDef) RecordData() interface{}

type APIModel

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

Jump to

Keyboard shortcuts

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