server

package
v0.0.0-...-c38bb4e Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPServer

func NewHTTPServer(
	logger *log.Logger,
	conf *viper.Viper,
	jwt *jwt.JWT,
	userHandler *handler.UserHandler,
) *http.Server

Types

type Job

type Job struct {
	// contains filtered or unexported fields
}

func NewJob

func NewJob(
	log *log.Logger,
) *Job

func (*Job) Start

func (j *Job) Start(ctx context.Context) error

func (*Job) Stop

func (j *Job) Stop(ctx context.Context) error

type Migrate

type Migrate struct {
	// contains filtered or unexported fields
}

func NewMigrate

func NewMigrate(db *gorm.DB, log *log.Logger) *Migrate

func (*Migrate) Start

func (m *Migrate) Start(ctx context.Context) error

func (*Migrate) Stop

func (m *Migrate) Stop(ctx context.Context) error

type Task

type Task struct {
	// contains filtered or unexported fields
}

func NewTask

func NewTask(log *log.Logger) *Task

func (*Task) Start

func (t *Task) Start(ctx context.Context) error

func (*Task) Stop

func (t *Task) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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