Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	*echo.Group
	Deps *Dependencies
	V1   *v1.Handlers
}

API contains the APIs for CoreKit

func New

func New(deps *Dependencies) *API

New instantiates the handlers for CoreKit

type Dependencies

type Dependencies struct {
	Router         routing.IRouter
	APIGroup       *echo.Group
	DB             db.IHarmonyDB
	Config         *config.Config
	AuthManager    *auth.Manager
	StorageManager *storage.Manager
	Logger         logger.ILogger
	State          *state.State
	Sonyflake      *sonyflake.Sonyflake
}

Dependencies are items that an API needs to function

Source Files

Directories

Path Synopsis
v1