types

package
Version: v0.0.0-...-a2e7767 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionType

type ActionType int
var (
	Nil        ActionType = 0
	BufferSize ActionType = 1
	KAndV      ActionType = 2
)

type BufferType

type BufferType int
var (
	None              BufferType = 0
	Slice             BufferType = 1
	PreAllocatedSlice BufferType = 2
	LinkedList        BufferType = 3
)

type Event

type Event struct {
	Type   EventType
	Source []byte
	Time   time.Time
	Params map[string]interface{}
}

type EventHandler

type EventHandler interface {
	Process(event *Event) bool
}

type EventType

type EventType int
var (
	ReadRequest  EventType = 1
	WriteRequest EventType = 2
	CreateBuffer EventType = 3
	AppendBuffer EventType = 4
	CommitBuffer EventType = 5
	WriteBlock   EventType = 6
	ReadBlock    EventType = 7
	CacheNotice  EventType = 8
	LimitNotice  EventType = 9
)

Jump to

Keyboard shortcuts

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