common

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package common contains types used by all update code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashBytes

func HashBytes(b []byte) string

func HashValue

func HashValue(a any) (string, error)

func MapKeys

func MapKeys[T comparable, V any](in map[T]V) []T

func MapValues

func MapValues[K comparable, V any](in map[K]V) []V

Types

type UpdateContext

type UpdateContext struct {
	Querier    db.Querier
	Logger     *slog.Logger
	SystemPk   int64
	FeedPk     int64
	FeedConfig *api.FeedConfig
}

Jump to

Keyboard shortcuts

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