server

package
v0.0.0-...-57159d5 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const GG_CALENDAR_URL = "https://calendar.google.com/calendar/u/0/r"
View Source
const USER_URL_PATH = "/user"

Variables

ProviderSet is server providers.

Functions

func NewGRPCServer

func NewGRPCServer(c *conf.Server, logger log.Logger) *grpc.Server

NewGRPCServer new a gRPC server.

func NewHTTPServer

func NewHTTPServer(c *conf.Server, logger log.Logger,
	auth *service.AuthService,
	user *service.UserService,
	chat *service.ChatService,
) *http.Server

NewHTTPServer new an HTTP server.

Types

type CronServer

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

func NewCronServer

func NewCronServer(c *conf.Cron, logger log.Logger, srvs *service.CronService) (*CronServer, error)

func (*CronServer) Start

func (s *CronServer) Start(_ context.Context) error

func (*CronServer) Stop

func (s *CronServer) Stop(_ context.Context) error

type TGServer

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

func NewTGServer

func NewTGServer(c *conf.Server, logger log.Logger, _ *service.TGService, auth *service.AuthService, chat *service.ChatService) (*TGServer, error)

func (*TGServer) Start

func (s *TGServer) Start(ctx context.Context) error

func (*TGServer) Stop

func (s *TGServer) Stop(_ context.Context) error

Jump to

Keyboard shortcuts

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