service

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Info

func Info() *info.Info

Info of the service

Types

type Config

type Config struct {
	Fcm       []*fcm.Config `mapstructure:"-"`
	Gcm       []*gcm.Config `mapstructure:"-"`
	Ans       []*ans.Config `mapstructure:"-"`
	ApiPort   string        `mapstructure:"grpc-port"`
	AdminPort string        `mapstructure:"http-port"`
}

func NewConfig

func NewConfig(src *viper.Viper) (*Config, error)

func (*Config) WalkConfigs

func (c *Config) WalkConfigs(fn func(interface{}) error) error

type Service

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

func New

func New(cfg *viper.Viper, logger *zap.Logger) (*Service, error)

func (*Service) Close

func (s *Service) Close() error

func (*Service) Run

func (s *Service) Run() error

Jump to

Keyboard shortcuts

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