ASPDatebase

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Domain string

Functions

func Create

func Create(requestJWS JWSProcess2.RequestJWS, dbm *DBMutex) (err error)

Create create ASP(compact string) in datebase,if return error,make sure store fail.

func Delete

func Delete(requetsJWS JWSProcess2.RequestJWS, dbm *DBMutex) (err error)

Delete delete ASP(compact string) in datebase,if return error,make sure delete fail,but not make sure the jws exist.

func GetASP

func GetASP(id string, dbm *DBMutex) string

GetASP get ASP(compact string) by id from datebase if not exist,will return "".

func Update

func Update(requestJWS JWSProcess2.RequestJWS, dbm *DBMutex) (err error)

Update update ASP(compact string) in datebase,if return error,make sure update fail.

Types

type DBMutex added in v0.0.6

type DBMutex struct {
	Db   *rosedb.DB
	Lock *sync.Mutex
}

func SetupDb added in v0.0.6

func SetupDb(dir mo.Option[string]) (*DBMutex, error)

Jump to

Keyboard shortcuts

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