api

package
v0.0.0-...-1edc23f Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(s Storage) *Handler

func (*Handler) AddHandlers

func (h *Handler) AddHandlers(md *httpmiddleware.Middleware)

type Storage

type Storage interface {
	InsertRecord(ctx context.Context, database, collection string, record interface{}) (string, error)
	FindByID(ctx context.Context, database, collection, _id string) (map[string]interface{}, error)
}

Jump to

Keyboard shortcuts

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