api

package
v0.0.0-...-bda8e1c Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler struct update

func NewHandler

func NewHandler(db *database.Connection, logger logging.Logger) *Handler

NewHandler function update

func (*Handler) CheckKeeperRegistration

func (h *Handler) CheckKeeperRegistration(w http.ResponseWriter, r *http.Request)

func (*Handler) CreateJobData

func (h *Handler) CreateJobData(w http.ResponseWriter, r *http.Request)

func (*Handler) CreateKeeperData

func (h *Handler) CreateKeeperData(w http.ResponseWriter, r *http.Request)

func (*Handler) CreateQuorumData

func (h *Handler) CreateQuorumData(w http.ResponseWriter, r *http.Request)

func (*Handler) CreateTaskData

func (h *Handler) CreateTaskData(w http.ResponseWriter, r *http.Request)

func (*Handler) CreateTaskHistory

func (h *Handler) CreateTaskHistory(w http.ResponseWriter, r *http.Request)

func (*Handler) GetAllJobs

func (h *Handler) GetAllJobs(w http.ResponseWriter, r *http.Request)

func (*Handler) GetAllKeepers

func (h *Handler) GetAllKeepers(w http.ResponseWriter, r *http.Request)

func (*Handler) GetAllQuorums

func (h *Handler) GetAllQuorums(w http.ResponseWriter, r *http.Request)

func (*Handler) GetJobData

func (h *Handler) GetJobData(w http.ResponseWriter, r *http.Request)

func (*Handler) GetJobsByUserAddress

func (h *Handler) GetJobsByUserAddress(w http.ResponseWriter, r *http.Request)

func (*Handler) GetKeeperData

func (h *Handler) GetKeeperData(w http.ResponseWriter, r *http.Request)

func (*Handler) GetKeeperPeerInfo

func (h *Handler) GetKeeperPeerInfo(w http.ResponseWriter, r *http.Request)

func (*Handler) GetLatestJobID

func (h *Handler) GetLatestJobID(w http.ResponseWriter, r *http.Request)

func (*Handler) GetQuorumData

func (h *Handler) GetQuorumData(w http.ResponseWriter, r *http.Request)

func (*Handler) GetQuorumNoForRegistration

func (h *Handler) GetQuorumNoForRegistration(w http.ResponseWriter, r *http.Request)

func (*Handler) GetTaskData

func (h *Handler) GetTaskData(w http.ResponseWriter, r *http.Request)

func (*Handler) GetTaskFees

func (h *Handler) GetTaskFees(w http.ResponseWriter, r *http.Request)

func (*Handler) GetTaskHistory

func (h *Handler) GetTaskHistory(w http.ResponseWriter, r *http.Request)

func (*Handler) GetUserData

func (h *Handler) GetUserData(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateJobData

func (h *Handler) UpdateJobData(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateKeeperData

func (h *Handler) UpdateKeeperData(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateQuorumData

func (h *Handler) UpdateQuorumData(w http.ResponseWriter, r *http.Request)

type Server

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

func NewServer

func NewServer(db *database.Connection, processName logging.ProcessName) *Server

func (*Server) Start

func (s *Server) Start(port string) error

Jump to

Keyboard shortcuts

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