cmdb

package
v3.6.5-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ds store.DataStore)

Types

type Event

type Event struct {
	Id          int64     `db:"id,omitempty"             json:"id"`
	Code        int       `db:"code,omitempty"           json:"code"`
	Source      string    `db:"source,omitempty"         json:"source"`
	Description string    `db:"description,omitempty"    json:"description"`
	HostName    string    `db:"host_name,omitempty"      json:"host_name"`
	RemoteAddr  string    `db:"remote_addr,omitempty"    json:"remote_addr"`
	EventDate   time.Time `db:"event_date,omitempty"     json:"event_date"`
}

func (*Event) Create

func (this *Event) Create() (id int64, err error)

type Info

type Info struct {
	Client string `json:"client,omitempty"`
	Server string `json:"host,omitempty"`
	Proto  string `json:"proto,omitempty"`
	Method string `json:"method,omitempty"`
	Scheme string `json:"scheme,omitempty"`
	Path   string `json:"path,omitempty"`
	Store  string `json:"store,omitempty"`
}

func (*Info) Read

func (this *Info) Read() error

type Sequence

type Sequence struct {
	Ord       int64     `db:"ord,omitempty"            json:"ord"`
	IssueDate time.Time `db:"issue_date,omitempty"     json:"issue_date"`
}

func (*Sequence) Create

func (this *Sequence) Create() (id int64, err error)

type User

type User struct {
	Id       int64     `db:"id,omitempty"             json:"id"`
	Username string    `db:"username,omitempty"       json:"username"`
	Password string    `db:"password,omitempty"       json:"password"`
	Created  time.Time `db:"created,omitempty"        json:"created"`
	Locked   bool      `db:"locked,omitempty"         json:"locked"`
	Role     string    `db:"role,omitempty"           json:"role"`
}

func (*User) Create

func (this *User) Create() (id int64, err error)

func (*User) Read

func (this *User) Read() error

func (*User) VerifyAccess

func (this *User) VerifyAccess() error

func (*User) VerifyPassword

func (this *User) VerifyPassword(passwd string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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