scopes

package
v0.0.0-...-2572d14 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IDScope

func IDScope[T IdTypes](ids ...T) filter.Scope

func NoScope

func NoScope() filter.Scope

NoScope - no-op scope

Types

type IdTypes

type IdTypes interface {
	~int | ~uint |
		~int64 | ~uint64 |
		~int32 | ~uint32 |
		~int16 | ~uint16 |
		~int8 | ~uint8 |
		~string | uuid.UUID
}

type ScopedById

type ScopedById[T IdTypes] struct {
	filter.Scope
	Ids []T
}

Jump to

Keyboard shortcuts

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