count

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelChannel

func DelChannel(db string, channelId string)

func DelDB

func DelDB(db string)

func DelTable

func DelTable(db string, tableId string)

func DoInit

func DoInit()

func SetChannel

func SetChannel(db string, channelId string) chan *FlowCount

func SetDB

func SetDB(db string)

func SetTable

func SetTable(db string, tableId string)

Types

type CountContent

type CountContent struct {
	Time     int64
	Count    int64
	ByteSize int64
}

func GetFlowAll

func GetFlowAll(flowType string) []CountContent

func GetFlowByChannel

func GetFlowByChannel(db string, channelId string, flowType string) []CountContent

func GetFlowByDb

func GetFlowByDb(db string, flowType string) []CountContent

func GetFlowByTable

func GetFlowByTable(db string, tableId string, flowType string) []CountContent

type CountFlow

type CountFlow struct {
	Minute    []CountContent
	TenMinute []CountContent
	Hour      []CountContent
	EightHour []CountContent
	Day       []CountContent
	Content   *CountContent
}

type FlowCount

type FlowCount struct {
	Time     int64
	TableId  string
	Count    int64
	ByteSize int64
}

Jump to

Keyboard shortcuts

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