model

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientIP

func GetClientIP(ctx context.Context) net.IP

func SetClientIP

func SetClientIP(ctx context.Context, ip net.IP) context.Context

func SetUser

func SetUser(ctx context.Context, user *User) context.Context

Types

type ClientIPKey

type ClientIPKey struct{}

type User

type User struct {
	Username string
}

func GetUser

func GetUser(ctx context.Context) *User

type UserCtxKey

type UserCtxKey struct{}

Jump to

Keyboard shortcuts

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