db

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2017 License: Apache-2.0 Imports: 6 Imported by: 4

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

func InsertActionLogRow

func InsertActionLogRow(namespace string, entityType string, entitySource string, violationType string, violationSource string, action string)

func InsertVLOGRow

func InsertVLOGRow(vEntity libs.ViolatableEntity, violation violations.Violation, entityType string)

func InsertVactionRow

func InsertVactionRow(namespace string, entityType string, entitySource string, violationType string, violationSource string, actions map[string][]time.Time)

Types

type VActionRow

type VActionRow struct {
	Namespace string
	Type      string
	Source    string
	VType     string
	VSource   string
	Actions   map[string][]time.Time
	CreatedAt time.Time
	ExpiresAt time.Time
}

func SelectVActionRow

func SelectVActionRow(vEntity libs.ViolatableEntity, violation violations.Violation, entityType string) VActionRow

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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