service

package
v0.0.0-...-a078def Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLoggedOut = errors.New("you are not logged in")

Functions

This section is empty.

Types

type API

type API struct {
	User   store.User
	URL    store.URL
	Config config.JWT
}

func (API) Add

func (a API) Add(c echo.Context) error

func (API) Login

func (a API) Login(c echo.Context) error

func (API) Register

func (a API) Register(c echo.Context) error

func (API) Run

func (a API) Run()

type Server

type Server struct {
	URL       store.SQLURL
	Status    status.SQLStatus
	Duration  int
	Redis     status.RedisStatus
	Threshold int
	NatsConn  *nats.Conn
	NatsCfg   config.Nats
}

func (*Server) Publish

func (s *Server) Publish(u model.URL)

func (*Server) Run

func (s *Server) Run()

Jump to

Keyboard shortcuts

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