core

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitApp

func InitApp(opts ...kratosx.Option) *kratosx.App

InitApp 初始化系统

Types

type Conf

type Conf struct {
	Setting struct {
		Name      string
		Debug     bool
		Title     string
		Desc      string
		Copyright string
		Logo      string
		Watermark string
	}
	ChangePasswordType string

	// jwt 白名单
	JWT struct {
		Whitelist map[string]bool
	}
}

type Context

type Context struct {
	kratosx.Context
}

func MustContext

func MustContext(ctx context.Context, opts ...kratosx.ContextOptionFunc) Context

func (Context) Auth

func (c Context) Auth() *types2.AuthorizeInfo

func (Context) Clone

func (c Context) Clone() Context

func (Context) Config

func (Context) Config() *Conf

func (Context) Transaction

func (c Context) Transaction(fn func(ctx Context) error, name ...string) error

Jump to

Keyboard shortcuts

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