objects

package
v0.0.0-...-a5a2c7f Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(c *context.Ctx, parametersRaw *json.RawMessage) *context.Response

func Get

func Get(c *context.Ctx, parametersRaw *json.RawMessage) *context.Response

func GetRoutes

func GetRoutes() map[string]func(*context.Ctx, *json.RawMessage) *context.Response
func Search(c *context.Ctx, parametersRaw *json.RawMessage) *context.Response

Types

type DownloadParameters

type DownloadParameters struct {
	SHA256 string `json:"sha256"`
}

type GetParameters

type GetParameters struct {
	SHA256 string `json:"sha256"`
}

type Object

type Object struct {
	SHA256      string   `json:"sha256"`
	SHA1        string   `json:"sha1"`
	MD5         string   `json:"md5"`
	MIME        string   `json:"mime"`
	Source      []string `json:"source"`
	ObjName     []string `json:"obj_name"`
	Submissions []string `json:"submissions"`
}

type SearchParameters

type SearchParameters struct {
	SHA256    string `json:"sha256"`
	MD5       string `json:"md5"`
	Hash      string `json:"hash"`
	MIME      string `json:"mime"`
	Limit     string `json:"limit"`
	Filtering string `json:"filtering"`
}

Jump to

Keyboard shortcuts

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