server

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: GPL-2.0 Imports: 13 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           *gorm.DB
	SearchClient *opensearch.Client
	Cron         *cron.Cron
	Redis        *redis.Client
}

Server ...

func NewServer

func NewServer() *Server

func (*Server) BulkIndexAll

func (s *Server) BulkIndexAll()

BulkIndexAll ...

func (*Server) GetUpdates

func (s *Server) GetUpdates()

GetUpdates ...

func (*Server) OpenCron

func (s *Server) OpenCron() error

OpenCron ...

func (*Server) OpenPostgres

func (m *Server) OpenPostgres() error

OpenPostgres ...

func (*Server) OpenRedis

func (s *Server) OpenRedis() error

func (*Server) OpenSearch

func (s *Server) OpenSearch() error

func (*Server) RegisterJobs

func (s *Server) RegisterJobs()

Register Jobs ...

func (*Server) StartHttpServer

func (s *Server) StartHttpServer()

Jump to

Keyboard shortcuts

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