auth

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	ServerID string `csv:"cfgId"`
	Port     int    `csv:"noHolidaysTime"`
	Dev      bool   `csv:"holidaysTime"`
}

type LoginServer

type LoginServer interface {
	app.Server
	Init(...Option) error
	Options() Options
}

func NewLoginServer

func NewLoginServer(opts ...Option) LoginServer

type Option

type Option func(*Options)

func AfterStart

func AfterStart(fn func() error) Option

func AfterStop

func AfterStop(fn func() error) Option

func BeforeStart

func BeforeStart(fn func() error) Option

func BeforeStop

func BeforeStop(fn func() error) Option

func Context1

func Context1(ctx context.Context) Option

func HandleSignal

func HandleSignal(b bool) Option

type Options

type Options struct {
	Rds *redis.Store
	//mysql
	//mq
	BeforeStart []func() error
	BeforeStop  []func() error
	AfterStart  []func() error
	AfterStop   []func() error

	Context context.Context

	Signal bool
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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