mycontext

package
v0.0.0-...-be912e8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsReplicationQuery

func IsReplicationQuery(ctx context.Context) bool

func WithQueryOrigin

func WithQueryOrigin(ctx context.Context, kind QueryOriginKind) context.Context

Types

type QueryOriginKey

type QueryOriginKey struct{}

type QueryOriginKind

type QueryOriginKind uint8
const (
	FrontendQueryOrigin QueryOriginKind = iota
	InternalQueryOrigin
	MySQLReplicationQueryOrigin
	PostgresReplicationQueryOrigin
)

func QueryOrigin

func QueryOrigin(ctx context.Context) QueryOriginKind

Jump to

Keyboard shortcuts

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