internal

package
v0.0.0-...-704a905 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexOutOfRange = "index out of range"
	Unauthorized    = "unauthorized"
)

errors

View Source
const (
	SuccessCreated             = "success created"
	SuccessUpdated             = "success updated"
	SuccessDeleted             = "success deleted"
	SuccessAdded               = "success added"
	ToPlaylist                 = "to playlist"
	SuccessRemoved             = "success removed"
	FromPlaylist               = "from playlist"
	SuccessLiked               = "success liked"
	SuccessListened            = "success listened"
	SuccessAddedToFavorites    = "success added to favorites"
	SuccessRemoveFromFavorites = "success remove from favorites"
)

success

View Source
const (
	PlaylistId = "playlistId"
	TrackId    = "trackId"
)

query

View Source
const (
	FieldId     = "id"
	FieldToFind = "toFind"
	Hash        = "hash"
)

album fields

View Source
const (
	AssetsPrefix  = "assets/"
	AlbumPreName  = "album_"
	ArtistPreName = "artist_"
	TrackPreName  = "track_"
	Top           = 20
	SearchTop     = 5
)

others

View Source
const (
	ImgFormat = ".webp"
	Mp3Format = ".mp3"
)

formats

View Source
const (
	ErrorNothingToUpdate = "nothing to update (check id)"
)

db errors

View Source
const (
	Grpc = "gRPC"
)

clients

View Source
const (
	Postgres = "postgres"
)

db types

View Source
const (
	SessionIdKey = "session_id"
)

auth

View Source
const (
	Tcp = "tcp"
)

network

Variables

This section is empty.

Functions

func GetIdInt64ByFieldId

func GetIdInt64ByFieldId(ctx echo.Context) (int64, error)

func GetUserId

func GetUserId(ctx echo.Context, userUseCase user_domain.UserUseCase) (int64, error)

func UnauthorizedError

func UnauthorizedError(ctx echo.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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