model

package
v0.0.0-...-d4e64a4 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Status int    `json:"status"`
	Title  string `json:"title"`
	Detail string `json:"detail"`
}

func (*Error) IsNil

func (e *Error) IsNil() bool

type Errors

type Errors struct {
	Errors []*Error `json:"errors"`
}

func (*Errors) HasError

func (e *Errors) HasError() bool

func (*Errors) StatusCode

func (e *Errors) StatusCode() int

type ScanRequest

type ScanRequest struct {
	Url    url.URL
	Id     string
	Type   string
	Status string
	Result ScanResult
}

func NewScanRequest

func NewScanRequest(url url.URL, id, scanType string) ScanRequest

type ScanResult

type ScanResult struct {
	Url        string `json:"url"`
	Id         string `json:"id"`
	ResultCode int    `json:"code"`
	Message    string `json:"message"`
}

func NewScanResult

func NewScanResult(url url.URL, id string, code int, msg string) ScanResult

type ScanResultError

type ScanResultError struct {
	Message string `json:"message"`
}

type ScanResultResponse

type ScanResultResponse struct {
	Message string `json:"message"`
	Id      string `json:"Id"`
}

type ScanStatusResultResponse

type ScanStatusResultResponse struct {
	Status string     `json:"Status"`
	Id     string     `json:"Id"`
	Result ScanResult `json:"Result"`
}

Jump to

Keyboard shortcuts

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