Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrNotFound modelError = "models: resource not found" ErrIDInvalid privateError = "models: ID provided was invalid" ErrURLInvalid modelError = "Invalid URL provided" ErrUniqueURLRequired modelError = "URL must be unique" ErrCreatePass modelError = "Could not create pass" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PassService ¶
type PassService interface {
PassDB
}
func NewPassService ¶
func NewPassService(db *sql.DB) PassService
type Service ¶
type Service struct {
PassService
// Datasource name.
DSN string
// contains filtered or unexported fields
}
func NewServices ¶
Click to show internal directories.
Click to hide internal directories.