api

package
v0.0.0-...-5619aa3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	DB   storage.DataAccessLayer
	Port string
	Ctx  context.Context
}

Server - Dependancy injection through interfaces

func (Server) Create

func (s Server) Create(w http.ResponseWriter, r *http.Request)

Create - Http Handler for Creating Ticker Watches

func (Server) CreateWatch

func (s Server) CreateWatch(w http.ResponseWriter, r *http.Request)

Create - Http Handler for Creating Ticker Watches

func (Server) Delete

func (s Server) Delete(w http.ResponseWriter, r *http.Request)

Delete - Http Handler for Deleting Ticker Watcher

func (Server) Get

func (s Server) Get(w http.ResponseWriter, r *http.Request)

Get - Http Handler for Getting Ticker

func (Server) ListWatch

func (s Server) ListWatch(w http.ResponseWriter, r *http.Request)

ListWatch - Http Handler for Listing Watches

func (*Server) Router

func (s *Server) Router() http.Handler

Router - Endpoints in Http Server

func (*Server) Run

func (s *Server) Run()

Run - Start Http Server

func (*Server) SetupServer

func (s *Server) SetupServer()

SetupServer - Setup base HTTP Server

func (Server) TickerWatcherList

func (s Server) TickerWatcherList(w http.ResponseWriter, r *http.Request)

TickerWatcherList - Http Handler for Listing Tickers Watches

func (Server) Update

func (s Server) Update(w http.ResponseWriter, r *http.Request)

Update - Http Handler for Updating Ticker Watcher

Jump to

Keyboard shortcuts

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