interfaces

package
v0.0.0-...-4e19a70 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookService

type BookService interface {
	CreateBook(title string) shared.Book
}

BookService is an interface which allows creating books.

type BorrowService

type BorrowService interface {
	Borrow(user shared.User, book shared.Book)
}

BorrowService is an interface which allows borrowing books.

type BorrowingFormatter

type BorrowingFormatter interface {
	Format(user shared.User, book shared.Book) string
}

BorrowingFormatter is an interface which allows formatting borrowings.

type LoggerService

type LoggerService interface {
	Info(message string, values ...interface{})
	Debug(message string, values ...interface{})
}

LoggerService is an interface which allows printing important messages.

type UserService

type UserService interface {
	CreateUser(name string) shared.User
}

UserService is an interface which allows creating users.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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