server

package
v0.0.0-...-3832215 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API int

implement custom type this is used to convert functions to methods as it is the requirement og rpc to have methods

func (*API) AddItem

func (a *API) AddItem(item Item, reply *Item) error

func (*API) CreateItem

func (a *API) CreateItem(item Item, reply *Item) error

func (*API) DeleteItem

func (a *API) DeleteItem(toDelete Item, reply *Item) error

func (*API) EditItem

func (a *API) EditItem(edit Item, reply *Item) error

func (*API) GetByName

func (a *API) GetByName(title string, reply *Item) error

func (*API) GetDB

func (a *API) GetDB(empty string, reply *[]Item) error

type Item

type Item struct {
	Title string
	Body  string
}

Jump to

Keyboard shortcuts

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