rest

package
v0.0.0-...-23ae872 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Listen     string `env:"LISTEN_ADDRESS,default=localhost:8080"`
	JwtSecret  string `env:"JWT_SECRET,default=superpuper"`
	PostsLimit int64  `env:"FRIENDS_POSTS_LIMIT,default=1000"`
}

type Service

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

func New

func New(config Config, log *logrus.Logger, prom *monitoring.Service, storage *storage.UserService, queue *queue.Service, auth *storage.UserService, chatApi chat_api.ChatServiceClient) (*Service, error)

func (*Service) Run

func (s *Service) Run(ctx context.Context) error

func (*Service) Shutdown

func (s *Service) Shutdown(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