gomini

package module
v0.0.0-...-260a924 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func AutoMigrate

func AutoMigrate(obj ...interface{})

func Id

func Id() string

func JwtToken

func JwtToken(js string) string

func LoadCfg

func LoadCfg()

func Req2json

func Req2json(r *http.Request) (string, string, error)

func Validate

func Validate() *validate

Types

type Functor

type Functor[T any] struct {
	// contains filtered or unexported fields
}

func (*Functor[T]) Join

func (f *Functor[T]) Join() (T, error)

func (*Functor[T]) Map

func (f *Functor[T]) Map(fn func(T) (T, error)) *Functor[T]

func (*Functor[T]) Of

func (f *Functor[T]) Of(mod T, err error) *Functor[T]

type JsonClaims

type JsonClaims struct {
	Payload string `json:"payload"`
	jwt.RegisteredClaims
}

type Router

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

func (*Router) Handle

func (r *Router) Handle(req *http.Request) ([]byte, error)

func (*Router) Register

func (r *Router) Register(srv interface{}, service grpc.ServiceDesc)

Jump to

Keyboard shortcuts

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