store

package
v0.0.0-...-83390d5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2016 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InsertAction = iota
	GetAction    = iota
	DeleteAction = iota
	HasAction    = iota
)

Deffine the diferrent type of request

Variables

This section is empty.

Functions

func SubmitAction

func SubmitAction(sub *Action)

SubmitAction send the given request to the store

Types

type Action

type Action struct {
	Action       int
	Challenge    *request.Challenge
	ResponseChan chan *request.Challenge
}

Action define the action to do associeted with the challenge and have a channel to get the response of a get for example

func NewAction

func NewAction(action int, challenge *request.Challenge) *Action

NewAction return a pointer to a Action struct Build automaticly the response channel

type RmObj

type RmObj struct {
	// contains filtered or unexported fields
}

RmObj is a struct to transit the remove request betweens go routines

func (RmObj) Less

func (r RmObj) Less(thanItem btree.Item) bool

Less to implement the btre package

Jump to

Keyboard shortcuts

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