action

package
v0.0.0-...-cbaa3f3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Id         int64
	ActionType string
	ItemId     int64
	UserId     int64
	BrowserId  int64
	RemoteAddr string
	Referer    string

	Created int64
}

type ActionApi

type ActionApi struct {
	// contains filtered or unexported fields
}

func NewActionApi

func NewActionApi(db *gorp.DbMap) (*ActionApi, error)

func (*ActionApi) AddBrowser

func (a *ActionApi) AddBrowser(ua string) Browser

func (*ActionApi) AddEvent

func (a *ActionApi) AddEvent(atype string, item, user, browser int64, remoteAddr, referer string) error

func (*ActionApi) GetBrowser

func (a *ActionApi) GetBrowser(bid string) Browser

func (*ActionApi) GetBrowserById

func (a *ActionApi) GetBrowserById(bid int64) Browser

func (*ActionApi) UpdateBrowser

func (a *ActionApi) UpdateBrowser(b Browser) error

type Browser

type Browser struct {
	Id  int64
	Bid string

	UserAgent   string
	Resolution  int64
	JavaScript  bool
	Webp        bool
	LinkQuality bool
	Tested      bool

	Created int64
	Updated int64
	Deleted int64
	Version int64
}

Jump to

Keyboard shortcuts

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