contracts

package
v0.0.65 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind interface {
	Start() error
	Apply(*authentication.User, []byte) (ResponseImplementation, error)
	Compare(*authentication.User, []byte) (ResponseImplementation, error)
	Delete(*authentication.User, []byte) (ResponseImplementation, error)
	GetShared() interface{}
	Run(string, ...interface{}) ResponseOperator
}

type RequestOperator

type RequestOperator struct {
	User *authentication.User
	Data map[string]any
}

type ResponseImplementation

type ResponseImplementation struct {
	HttpStatus       int
	Explanation      string
	ErrorExplanation string
	Error            bool
	Success          bool
	Data             interface{}
}

type ResponseOperator

type ResponseOperator struct {
	HttpStatus       int
	Explanation      string
	ErrorExplanation string
	Error            bool
	Success          bool
	Data             map[string]any
}

Jump to

Keyboard shortcuts

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