api

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfValidCredentials

func CheckIfValidCredentials(partnerName, decodePassword string, db *sql.DB) error

func ParserHandler

func ParserHandler(w http.ResponseWriter, r *http.Request, mysqlStorage *storage.MySQLStorage)

func ResultsHandler

func ResultsHandler(w http.ResponseWriter, r *http.Request, mysqlStorage *storage.MySQLStorage)

func VerifyCredentialsAndCreateIfNotExists

func VerifyCredentialsAndCreateIfNotExists(partnerName, partnerPassword string, db *sql.DB) error

Already non-empty partner name and decoded password are given

Types

type Server

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

func NewServer

func NewServer(listenAddr string, db *storage.MySQLStorage, objectStore *storage.S3Storage, rTimeout, wTimeout time.Duration) *Server

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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