agent

package
v0.0.0-...-5cada86 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitManager

func InitManager()

func RegisterHandlers

func RegisterHandlers(eng *gin.Engine)

func RegisterMiddleware

func RegisterMiddleware(eng *gin.Engine)

Types

type SongManager

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

func NewSongManager

func NewSongManager(db db.DB) (*SongManager, error)

func (*SongManager) AddSong

func (manager *SongManager) AddSong(song domain.Song) error

func (*SongManager) DeleteSong

func (manager *SongManager) DeleteSong(songId string) error

func (*SongManager) GetSongById

func (manager *SongManager) GetSongById(songId string) (domain.Song, error)

func (*SongManager) ListAllSong

func (manager *SongManager) ListAllSong() ([]domain.Song, error)

func (*SongManager) ListSongByMode

func (manager *SongManager) ListSongByMode(mode string, modeDetail string) ([]domain.Song, error)

type SongW

type SongW struct {
	Song domain.Song `json:"song"`
}

type User

type User struct {
	UserName  string
	FirstName string
	LastName  string
}

User demo

Jump to

Keyboard shortcuts

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