contextx

package
v0.0.0-...-748419f Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSchema

func GetSchema(ctx context.Context) string

func SetSchema

func SetSchema(ctx context.Context, schema string) context.Context

Types

type H

type H struct {
	// contains filtered or unexported fields
}

func WithContext

func WithContext(ctx context.Context) *H

func (*H) Context

func (h *H) Context() context.Context

func (*H) WithValue

func (h *H) WithValue(k types.ContextKey, v any) *H

type Tenant

type Tenant struct {
	ID     int64
	Schema string
	Name   string
	Domain string
}

Tenant object of tenant in context

Jump to

Keyboard shortcuts

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