cache

package
v0.0.0-...-03e13da Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: BSD-3-Clause Imports: 8 Imported by: 2

Documentation

Overview

Package cache provides database connection for store the result as a cache

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseDB

func CloseDB() error

CloseDB closes the database connection

func DeleteToken

func DeleteToken(id string) error

DeleteToken deletes the specify token from the database

func GetTokenInfo

func GetTokenInfo(id string) (model.GetOutput, error)

GetTokenInfo gets the results of the token id from database

func PutNewToken

func PutNewToken(id string, ip ...string) error

PutNewToken register new token to database

func UpdateTokenInfo

func UpdateTokenInfo(id string, result model.Result) error

UpdateTokenInfo updates the results for specified token id

Types

This section is empty.

Jump to

Keyboard shortcuts

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