submissions

package
v0.0.0-...-43fbf64 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2017 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 GetParameters

type GetParameters struct {
	Id string `json:"id"`
}

type SearchParameters

type SearchParameters struct {
	SHA256    string `json:"sha256"`
	ObjName   string `json:"obj_name"`
	Source    string `json:"source"`
	DateStart string `json:"date"`
	DateStop  string `json:"date"`
	Limit     string `json:"limit"`
	Filtering string `json:"filtering"`
}

type Submission

type Submission struct {
	Id      string    `json:"id"`
	SHA256  string    `json:"sha256"`
	UserId  string    `json:"user_id"`
	Source  string    `json:"source"`
	Date    time.Time `json:"date"`
	ObjName string    `json:"obj_name"`
	Tags    []string  `json:"tags"`
	Comment string    `json:"comment"`
}

Jump to

Keyboard shortcuts

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