Documentation ¶
Overview ¶
Package service Date: 2024/3/6 11:07 Author: Amu Description:
Package service Date: 2024/3/27 16:06 Author: Amu Description:
Package service Date: 2024/3/6 11:08 Author: Amu Description:
Package service Date: 2024/3/6 11:08 Author: Amu Description:
Package service Date: 2024/3/6 11:08 Author: Amu Description:
Package service Date: 2024/03/19 17:33:57 Author: Amu Description:
Package service Date: 2024/3/27 17:04 Author: Amu Description:
Package service Date: 2024/3/6 11:09 Author: Amu Description:
Package service Date: 2024/3/6 11:00 Author: Amu Description:
Package service Date: 2024/3/6 13:34 Author: Amu Description:
Package service Date: 2024/3/11 10:38 Author: Amu Description:
Index ¶
- Constants
- Variables
- func Init(ctx context.Context, opts ...Option) (func(), error)
- func InitAuth(config *Config, authStore *jwtauth.Store, db *database.DB) (auth.Auther, func(), error)
- func InitAuthStore(config *Config) (*jwtauth.Store, func(), error)
- func InitHttpServer(ctx context.Context, config *Config, app *fiber.App) func()
- func NewDB(config *Config, models *model.Models) (*database.DB, error)
- func NewFiberApp(config *Config, r IRouter) *fiber.App
- func NewLogger(config *Config) *logger.Logger
- func Run(ctx context.Context, opts ...Option) error
- type Auth
- type Config
- type DB
- type Disk
- type Ethernet
- type Fiber
- type Gorm
- type IRouter
- type InitData
- type Injector
- type Logger
- type LoggerHandler
- type Option
- type Prepare
- type PrepareData
- type Router
- type Task
- type TimedTask
- type User
- type Users
Constants ¶
View Source
const ( LatestDiskReadKey = "latest_disk_io_read_" LatestDisKWriteKey = "latest_disk_io_write_" LatestNetReceiveKey = "latest_net_io_receive_" LatestNetSendKey = "latest_net_io_send_" )
Variables ¶
View Source
var InjectorSet = wire.NewSet(NewInjector)
Functions ¶
func InitHttpServer ¶
func NewFiberApp ¶
Types ¶
type Config ¶
type Injector ¶
type Injector struct { App *fiber.App Router *Router Config *Config Prepare *Prepare Logger *logger.Logger Task *TimedTask }
func BuildInjector ¶
type LoggerHandler ¶
type LoggerHandler struct {
// contains filtered or unexported fields
}
func NewLoggerHandler ¶
func NewLoggerHandler() *LoggerHandler
func (*LoggerHandler) Handler ¶
func (l *LoggerHandler) Handler(c *websocket.Conn)
type PrepareData ¶
type PrepareData struct {
Users Users `yaml:"users"`
}
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) RegisterAPI ¶
func (a *Router) RegisterAPI(app *fiber.App)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package audit Date: 2022/11/9 10:18 Author: Amu Description:
|
Package audit Date: 2022/11/9 10:18 Author: Amu Description: |
api
Package api Date: 2022/11/9 10:18 Author: Amu Description:
|
Package api Date: 2022/11/9 10:18 Author: Amu Description: |
repository
Package repository Date: 2022/11/9 10:18 Author: Amu Description:
|
Package repository Date: 2022/11/9 10:18 Author: Amu Description: |
service
Package service Date: 2022/11/9 10:18 Author: Amu Description:
|
Package service Date: 2022/11/9 10:18 Author: Amu Description: |
Package auth Date: 2024/3/27 16:38 Author: Amu Description:
|
Package auth Date: 2024/3/27 16:38 Author: Amu Description: |
api
Package api Date: 2024/3/27 16:38 Author: Amu Description:
|
Package api Date: 2024/3/27 16:38 Author: Amu Description: |
repository
Package repository Date: 2024/3/27 16:39 Author: Amu Description:
|
Package repository Date: 2024/3/27 16:39 Author: Amu Description: |
service
Package service Date: 2024/3/27 16:39 Author: Amu Description:
|
Package service Date: 2024/3/27 16:39 Author: Amu Description: |
Package container Date: 2024/3/6 12:44 Author: Amu Description:
|
Package container Date: 2024/3/6 12:44 Author: Amu Description: |
api
Package api Date: 2024/3/6 12:44 Author: Amu Description:
|
Package api Date: 2024/3/6 12:44 Author: Amu Description: |
repository
Package repository Date: 2024/3/6 12:46 Author: Amu Description:
|
Package repository Date: 2024/3/6 12:46 Author: Amu Description: |
service
Package service Date: 2024/3/6 12:49 Author: Amu Description:
|
Package service Date: 2024/3/6 12:49 Author: Amu Description: |
Package host Date: 2024/3/6 12:43 Author: Amu Description:
|
Package host Date: 2024/3/6 12:43 Author: Amu Description: |
api
Package api Date: 2024/3/6 12:45 Author: Amu Description:
|
Package api Date: 2024/3/6 12:45 Author: Amu Description: |
repository
Package repository Date: 2024/3/6 12:53 Author: Amu Description:
|
Package repository Date: 2024/3/6 12:53 Author: Amu Description: |
service
Package service Date: 2024/3/6 12:53 Author: Amu Description:
|
Package service Date: 2024/3/6 12:53 Author: Amu Description: |
Package middleware Date: 2024/3/27 16:20 Author: Amu Description:
|
Package middleware Date: 2024/3/27 16:20 Author: Amu Description: |
Package model Date: 2022/11/9 10:18 Author: Amu Description:
|
Package model Date: 2022/11/9 10:18 Author: Amu Description: |
Package schema Date: 2022/11/9 10:18 Author: Amu Description:
|
Package schema Date: 2022/11/9 10:18 Author: Amu Description: |
Click to show internal directories.
Click to hide internal directories.