settings

package
v0.0.0-...-fb979a2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package settings repository for settings

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GetOne(key string) (*models.Setting, error)
	GetAll() ([]models.Setting, error)
	AddOrUpdate(key string, value string) error
	DeleteAll() error
	Exist(key string) (bool, error)
}

Repository Interface for the repo

func New

func New(db *gorm.DB) Repository

New constructor

Jump to

Keyboard shortcuts

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