userterm

package
v0.0.0-...-6f239a5 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ModuleName = "userterm"
View Source
var PayloadTerm = "term"

Functions

This section is empty.

Types

type InstalledUserTerm

type InstalledUserTerm struct {
	*UserTerm
	UserSystem *usersystem.UserSystem
}

func MustNewAndInstallTo

func MustNewAndInstallTo(s *usersystem.UserSystem) *InstalledUserTerm

func NewInstalledUserTerm

func NewInstalledUserTerm() *InstalledUserTerm

type Service

type Service interface {
	MustCurrentTerm(uid string) string
	MustStartNewTerm(uid string) string
	//Start start service
	Start() error
	//Stop stop service
	Stop() error
	//Purge purge user data cache
	Purge(string) error
}

type UserTerm

type UserTerm struct {
	herbsystem.NopModule
	Service
}

func MustGetModule

func MustGetModule(s *usersystem.UserSystem) *UserTerm

func New

func New() *UserTerm

func (*UserTerm) InstallProcess

func (s *UserTerm) InstallProcess(ctx context.Context, system herbsystem.System, next func(context.Context, herbsystem.System))

func (*UserTerm) ModuleName

func (s *UserTerm) ModuleName() string

func (*UserTerm) MustCheckSession

func (s *UserTerm) MustCheckSession(ctx context.Context, session *usersystem.Session) bool

func (*UserTerm) MustInitPayloads

func (s *UserTerm) MustInitPayloads(ctx context.Context, st usersystem.SessionType, uid string, payloads *authority.Payloads)

func (*UserTerm) StartService

func (s *UserTerm) StartService() error

func (*UserTerm) StopService

func (s *UserTerm) StopService() error

Jump to

Keyboard shortcuts

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