options

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Unlicense Imports: 1 Imported by: 0

Documentation

Overview

Package options provides some option configurations for the relay.

None of this package is actually in use, and the skip event function has not been implemented. In theory, this could be used for something but it currently isn't.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type O

type O func(*T)

O is a function that processes an options.T.

func WithSkipEventFunc

func WithSkipEventFunc(skipEventFunc func(*event.E) bool) O

WithSkipEventFunc is an options.T generator that adds a function to skip events.

type SkipEventFunc

type SkipEventFunc func(*event.E) bool

type T

type T struct {
	// SkipEventFunc is in theory a function to test whether an event should not
	// be sent in response to a query.
	SkipEventFunc
}

T is a collection of options.

func Default

func Default() *T

Default returns an uninitialised options.T.

Jump to

Keyboard shortcuts

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