ssormotel

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTracing

func NewTracing(opts ...Option) *tracing

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithAttributes

func WithAttributes(attrs ...attribute.KeyValue) Option

func WithQueryStatement

func WithQueryStatement() Option

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

type Read

type Read func(ctx context.Context) error

type Tracing

type Tracing interface {
	StartForRead(context.Context, Read) error
	StartForWrite(context.Context, Write) (int64, error)
	SetStatement(string)
	UnsetStatement()
}

type Write

type Write func(ctx context.Context) (int64, error)

Jump to

Keyboard shortcuts

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