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: 0

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