user

package
v0.0.0-...-6f95374 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetUIDCtx

func SetUIDCtx(ctx context.Context, id ID) context.Context

SetUIDCtx IDをContextに設定するメソッド.

Types

type ID

type ID uuid.UUID

func GenerateID

func GenerateID() ID

GenerateID IDを新規に発行する関数.

func GenerateZeroID

func GenerateZeroID() ID

func GetUIDCtx

func GetUIDCtx(ctx context.Context) ID

GetUIDCtx IDをContextから取得するメソッド.

func NewID

func NewID(value string) (ID, error)

NewID IDを作成するファクトリー関数.

func (ID) String

func (uid ID) String() string

String IDを文字列型として提供するメソッド.

func (ID) Value

func (uid ID) Value() uuid.UUID

Value IDをuuid.UUID型として提供するメソッド.

Jump to

Keyboard shortcuts

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