nanoapirestify

package module
v0.0.0-...-e95d4bd Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 11 Imported by: 0

README

nanoapi-restify

Restify API for Entities

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSessNotFound = errors.New("session not found")

Functions

func Register

func Register[T VO](t T) error

func Setup

func Setup() error

Types

type BaseVO

type BaseVO struct {
	ID uint   `json:"id"`
	T  string `json:"t"`
}

func (*BaseVO) Id

func (b *BaseVO) Id() uint

func (*BaseVO) SetTenant

func (b *BaseVO) SetTenant(t string)

func (*BaseVO) Tenant

func (b *BaseVO) Tenant() string

type VO

type VO interface {
	SetTenant(t string)
	Tenant() string
	Id() uint
}

Jump to

Keyboard shortcuts

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