grpc

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 10 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 {
	Bind string `yaml:"bind"`
	Port uint16 `yaml:"port"`
}

type Server

type Server struct {
	StartTime time.Time
	DB        *database.Database
	Redis     *redis.Redis
	// contains filtered or unexported fields
}

func New

func New(conf *Config, r *redis.Redis, db *database.Database, st time.Time) *Server

func (*Server) Start

func (s *Server) Start(shutdownch chan struct{}) error

func (*Server) Stop

func (s *Server) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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