music

package module
v0.0.0-...-3e42ba9 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: MIT Imports: 1 Imported by: 0

README

sequence-diagrams

Code to accompany blog post: https://engineering.infinityworks.com/sequence-diagrams/

Run make test to generate the diagrams. The diagram path on the filesystem will be printed to the console.

The project structure follows the standard package layout described here

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidID = Error{
	Code:   "INVALID_ID",
	Detail: "The ID is not valid",
}
View Source
var ServerError = Error{
	Code:   "SERVER_ERROR",
	Detail: "Sorry, something went wrong",
}
View Source
var UserNotFound = Error{
	Code:   "USER_NOT_FOUND",
	Detail: "Artist not found",
}

Functions

This section is empty.

Types

type Album

type Album struct {
	Title string `json:"title"`
}

type AlbumRepository

type AlbumRepository interface {
	GetByArtist(artistID uuid.UUID) ([]Album, error)
}

type Artist

type Artist struct {
	Name string `json:"name"`
}

type ArtistRepository

type ArtistRepository interface {
	GetByID(id uuid.UUID) (Artist, error)
}

type Error

type Error struct {
	Code   string      `json:"code"`
	Detail string      `json:"detail"`
	Meta   interface{} `json:"meta,omitempty"`
}

func (Error) Error

func (r Error) Error() string

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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