rest

package
v1.3.84 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api added in v1.2.36

type Api interface {
	ConfigureRouter(router *mux.Router)
}

func NewPprofApi added in v1.2.36

func NewPprofApi() Api

type AuthenticationApi added in v1.2.36

type AuthenticationApi interface {
	ConfigureRouter(r *mux.Router)
}

func NewAuthenticationApi added in v1.2.36

func NewAuthenticationApi(service service.AuthenticationService) AuthenticationApi

type AuthenticationRequest added in v1.2.36

type AuthenticationRequest struct {
	Username      string `json:"username"`
	Password      string `json:"password"`
	Term          string `json:"term"`
	MinimizeToken bool   `json:"minimize"`
}

type AuthenticationResponse added in v1.2.36

type AuthenticationResponse struct {
	Token Token `json:"token"`
}

type EventChannelApi added in v1.1.48

type EventChannelApi interface {
	ConfigureRouter(r *mux.Router)
}

func NewEventChannelApi added in v1.1.48

func NewEventChannelApi(container service.Container) EventChannelApi

type HealthApi added in v1.1.37

type HealthApi interface {
	ConfigureRouter(r *mux.Router)
}

func NewHealthApi added in v1.1.37

func NewHealthApi() HealthApi

type HealthResponse added in v1.1.37

type HealthResponse struct {
	Status string `json:"status"`
}

type LogApi added in v1.2.57

type LogApi interface {
	ConfigureRouter(r *mux.Router)
}

func NewLogApi added in v1.2.57

func NewLogApi(container service.Container) LogApi

type RecordApi added in v1.1.37

type RecordApi interface {
	ConfigureRouter(r *mux.Router)
}

func NewRecordApi added in v1.1.37

func NewRecordApi(container service.Container) RecordApi

type RefreshTokenRequest added in v1.2.36

type RefreshTokenRequest struct {
	Token string `json:"token"`
	Term  string `json:"term"`
}

type RefreshTokenResponse added in v1.2.36

type RefreshTokenResponse struct {
	Token Token `json:"token"`
}

type ResourceApi added in v1.1.37

type ResourceApi interface {
	ConfigureRouter(r *mux.Router)
}

func NewResourceApi added in v1.1.37

func NewResourceApi(container service.Container) ResourceApi

type Router

type Router interface {
	ConfigureRouter(router *mux.Router)
}

type Server

type Server interface {
	Init()
	ServeH2C(lis net.Listener)
	ServeHttp(lis net.Listener)
	ServeHttp2Tls(tls net.Listener)
}

func NewServer

func NewServer(container service.Container, config *model.AppConfig) Server

type ServiceCaller added in v1.1.37

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

func ServiceResponder added in v1.1.37

func ServiceResponder() ServiceCaller

func (ServiceCaller) Respond added in v1.1.37

func (s ServiceCaller) Respond(result interface{}, serviceError error)

func (ServiceCaller) Writer added in v1.1.37

type Token added in v1.2.36

type Token struct {
	Term       string    `json:"term"`
	Content    string    `json:"content"`
	Expiration time.Time `json:"expiration"`
}

type VersionApi added in v1.3.55

type VersionApi interface {
	ConfigureRouter(r *mux.Router)
}

func NewVersionApi added in v1.3.55

func NewVersionApi() VersionApi

type VersionResponse added in v1.3.55

type VersionResponse struct {
	Version string            `json:"version"`
	Modules map[string]string `json:"modules"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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