repository

package
v0.0.0-...-65b5557 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNilID is a general error that indicates the given UUID was uuid.Nil.
	ErrNilID = errors.New("nil id")
	// ErrNotFound is a general error that indicates specified record was not found.
	ErrNotFound = errors.New("not found")
	// ErrAlreadyExists is a general error that indicates the given record already exists.
	ErrAlreadyExists = errors.New("already exists")
	// ErrForbidden is a general error that indicates the operation is forbidden.
	ErrForbidden = errors.New("forbidden")
)

Functions

This section is empty.

Types

type Repository

type Repository interface {
	WorldRepository
}

type WorldRepository

type WorldRepository interface {
	// CreateWorldIfNotExists creates a new world record, if not exists.
	//
	// Returns created true if newly created, false otherwise.
	CreateWorldIfNotExists(world *model.World) (created bool, err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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