rest

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package rest provides rest api logic

Package rest provides rest api logic

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Index(w http.ResponseWriter, r *http.Request) (int, error)
	GetMeta(w http.ResponseWriter, r *http.Request) (int, error)
	GetMetas(w http.ResponseWriter, r *http.Request) (int, error)
	GetMetaInverse(w http.ResponseWriter, r *http.Request) (int, error)
	GetMetasInverse(w http.ResponseWriter, r *http.Request) (int, error)
	SetMeta(w http.ResponseWriter, r *http.Request) (int, error)
	SetMetas(w http.ResponseWriter, r *http.Request) (int, error)
	DeleteMeta(w http.ResponseWriter, r *http.Request) (int, error)
	DeleteMetas(w http.ResponseWriter, r *http.Request) (int, error)
	DeleteMetaInverse(w http.ResponseWriter, r *http.Request) (int, error)
	DeleteMetasInverse(w http.ResponseWriter, r *http.Request) (int, error)
}

func New

func New(opts ...Option) Handler

type Option

type Option func(*handler)

func WithMeta

func WithMeta(m meta.MetaServer) Option

Jump to

Keyboard shortcuts

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