apis

package
v0.0.0-...-857ac39 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Router

func Router() *mux.Router

Types

type ApkIndexResource

type ApkIndexResource struct {
}

func (ApkIndexResource) GetPackageGraph

func (svc ApkIndexResource) GetPackageGraph(req *restful.Request, res *restful.Response)

func (ApkIndexResource) RegisterTo

func (svc ApkIndexResource) RegisterTo(container *restful.Container)

func (ApkIndexResource) Stats

func (svc ApkIndexResource) Stats(req *restful.Request, res *restful.Response)

type ApkiStats

type ApkiStats struct {
	GraphStats graph.Stats
}

type Err

type Err struct {
	Message string      `json:"message"`
	Code    string      `json:"code,omitempty"`
	Status  int         `json:"status"`
	Data    interface{} `json:"data,omitempty"`
	Reason  string      `json:"reason,omitempty"`
	Cause   error       `json:"-"`
	Errors  interface{} `json:"errors,omitempty"` // used for form error reporting
}

func FromError

func FromError(err interface{}) *Err

func (Err) Error

func (e Err) Error() string

type Relationship

type Relationship struct {
	Dependencies interface{} `json:"dependencies"`
}

Jump to

Keyboard shortcuts

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