server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is server providers.

Functions

func HealthHandler

func HealthHandler() *nethttp.ServeMux

func NewGRPCServer

func NewGRPCServer(
	c *conf.Bootstrap,
	movieProvider *adaptor.MovieProvider,
) *grpc.Server

NewGRPCServer new a gRPC server.

func NewHTTPServer

func NewHTTPServer(
	c *conf.Bootstrap,
	movieProvider *adaptor.MovieProvider,
) *http.Server

NewHTTPServer new a HTTP server.

func NewWorker

func NewWorker(c *conf.Bootstrap, job *Job) *worker.Worker

Types

type Job

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

func NewJob

func NewJob(c *conf.Bootstrap, i4kSyncTask *task.I4kSyncTask) *Job

func (*Job) Start

func (j *Job) Start(ctx context.Context) error

func (*Job) Stop

func (j *Job) Stop(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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