harukap

package module
v0.0.0-...-35b844d Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 10 Imported by: 0

README

harukap

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthPlugin

type AuthPlugin interface {
	GetAuthInfo() (*commons.AuthInfo, error)
	AuthName() string
	GetAuthUserByToken(token string) (commons.AuthUser, error)
	TokenTypeName() string
}

type HarukaAppEngine

type HarukaAppEngine struct {
	ConfigProvider       *config.Provider
	Plugins              []HarukaPlugin
	LoggerPlugin         *youlog.Plugin
	HttpService          *haruka.Engine
	RPCService           *rpc.HarukaRPCService
	OnPluginInitComplete func()
}

func NewHarukaAppEngine

func NewHarukaAppEngine() *HarukaAppEngine

func (*HarukaAppEngine) Run

func (e *HarukaAppEngine) Run()

func (*HarukaAppEngine) RunRPC

func (e *HarukaAppEngine) RunRPC()

func (*HarukaAppEngine) UsePlugin

func (e *HarukaAppEngine) UsePlugin(plugins ...HarukaPlugin)

type HarukaPlugin

type HarukaPlugin interface {
	OnInit(e *HarukaAppEngine) error
}

Jump to

Keyboard shortcuts

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