example

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Get

type Get struct {
	XFF string `api:"header,X-Forwarded-For"`
	UID string `api:"auth,required"`

	Store *Store

	Key   string `api:"in,out" json:"key"`
	Value any    `api:"out" json:"value"`
	// contains filtered or unexported fields
}

func (*Get) Do

func (this *Get) Do(c ctx.C) error

type Set

type Set struct {
	R api.Request `url:"/api/v1/set"`

	Store *Store

	Key   string `api:"in,out" json:"key"`
	Value any    `api:"in" json:"value"`
	Prev  any    `api:"out" json:"prev"`
}

func (*Set) Do

func (this *Set) Do(c ctx.C) error

type Store

type Store struct {
	Data map[string]any
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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