Electroneum
cachedb_backend Struct Reference

#include <cachedb.h>

Public Attributes

const char * name
 
int(* init )(struct module_env *, struct cachedb_env *)
 
void(* deinit )(struct module_env *, struct cachedb_env *)
 
int(* lookup )(struct module_env *, struct cachedb_env *, char *, struct sldns_buffer *)
 
void(* store )(struct module_env *, struct cachedb_env *, char *, uint8_t *, size_t)
 

Detailed Description

Backend call routines

Definition at line 71 of file cachedb.h.

Member Data Documentation

◆ deinit

void(* cachedb_backend::deinit) (struct module_env *, struct cachedb_env *)

Deinit - close db for program exit

Definition at line 79 of file cachedb.h.

◆ init

int(* cachedb_backend::init) (struct module_env *, struct cachedb_env *)

Init(env, cachedb_env): false on setup failure

Definition at line 76 of file cachedb.h.

◆ lookup

int(* cachedb_backend::lookup) (struct module_env *, struct cachedb_env *, char *, struct sldns_buffer *)

Lookup (env, cachedb_env, key, result_buffer): true if found

Definition at line 82 of file cachedb.h.

◆ name

const char* cachedb_backend::name

backend name

Definition at line 73 of file cachedb.h.

◆ store

void(* cachedb_backend::store) (struct module_env *, struct cachedb_env *, char *, uint8_t *, size_t)

Store (env, cachedb_env, key, data, data_len)

Definition at line 86 of file cachedb.h.


The documentation for this struct was generated from the following file: