db

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Here we'll store connection

Functions

func Connect

func Connect(hosts []string) error

This is wrapper for gocql

Types

type Context

type Context struct {
	Namespace string
	Results   map[string][]VActionResponseModel
}

type VActionResponseModel

type VActionResponseModel struct {
	Namespace       string
	Etype           string
	Created_at      time.Time
	Action          string
	Cluster         string
	Source          string
	ViolationSource string
	ViolationType   string
}

func (VActionResponseModel) GetAllByNameSpace

func (m VActionResponseModel) GetAllByNameSpace(namespace string) Context

func (VActionResponseModel) GetLastAction

func (m VActionResponseModel) GetLastAction() (*VActionResponseModel, error)

func (VActionResponseModel) GetLastActions added in v0.1.4

func (m VActionResponseModel) GetLastActions(numberOfRecent int) Context

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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