papp

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Name is the name of the compiled software.
	Name string
	// Version is the version of the compiled software.
	Version string
)

go build -ldflags "-X main.Version=x.y.z"

Functions

func CtxGetUserId

func CtxGetUserId(ctx context.Context) (int32, bool)

func CtxSetUserId

func CtxSetUserId(ctx context.Context, userId int32) context.Context

func GenToken

func GenToken(userId int32) (string, error)

func ParseToken

func ParseToken(tokenString string) (*claims, error)

func RunKratosApp

func RunKratosApp(kratosServers ...kratosServer)

Types

type ServiceConfig

type ServiceConfig struct {
	Http httpConfig
	Grpc grpcConfig
}

Jump to

Keyboard shortcuts

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