model

package
v0.0.0-...-c2c271f Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model interface {
	GetId() string
	SetId(id string)
}

type UrlInfo

type UrlInfo struct {
	Url         string    `json:"url"`
	Description string    `json:"description"`
	HasMalware  bool      `json:"has_malware"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
	// contains filtered or unexported fields
}

func NewUrlInfo

func NewUrlInfo(url, description string, hasMalware bool) *UrlInfo

func (*UrlInfo) GetId

func (mdl *UrlInfo) GetId() string

func (*UrlInfo) SetId

func (m *UrlInfo) SetId(id string)

Jump to

Keyboard shortcuts

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