public

package
v0.0.0-...-7be9f71 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Overview

Package public API controller

This is the public api of the service - all operations are projected with JWTs if required.

Index

Constants

View Source
const ControllerName = "public"

Variables

This section is empty.

Functions

func NewController

func NewController(ctx gousu.IContext) gousu.IController

NewController creates a new preinitialized instance of Controller

Types

type Controller

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

Controller is the public api controller

func (*Controller) Health

func (c *Controller) Health() error

Health checks if the api server has thrown unresolvable internal errors

func (*Controller) Name

func (c *Controller) Name() string

func (*Controller) Start

func (c *Controller) Start() error

Start starts the api server in a new go-func

func (*Controller) Stop

func (c *Controller) Stop() error

Stop currently does nothing

type IController

type IController interface {
	gousu.IController
}

IController is the interface of the public api controller

Jump to

Keyboard shortcuts

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