repository

package
v0.0.0-...-f00139d Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2019 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package repository handles storage access for Mailmock REST API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(from, limit int) (map[int]interface{}, bool)

All returns all objects currently stored.

func Len

func Len() int

Len gives the total number of objects stored.

func Reset

func Reset()

Reset removes all objects in storage.

func Store

func Store(o interface{}) int

Store stores th object and gives it an ID.

func Use

func Use(id int) interface{}

Use returns the object with ID or nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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