flow

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package flow contains structures and utility method relating to client-server flow control configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter int32

Filter is a thread safe data structure which remembers 3 booleans, used to indicate which of three priority levels should be filtered. The underlying type should be seen as an implementation detail.

func NewFilter

func NewFilter() *Filter

NewFilter returns a Filter which is not set to filter anything.

func (*Filter) Get

func (f *Filter) Get() (low, medium, high bool)

Get returns the current state of the filter.

func (*Filter) Set

func (f *Filter) Set(low, medium, high bool)

Set sets the filter bits according to the provided booleans.

Jump to

Keyboard shortcuts

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