reviews

package
v0.0.0-...-2486f02 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Server  *ServerOptions                  `mapstructure:"server"`
	Ratings *injectors.RatingsClientOptions `mapstructure:"ratings"`
}

Options reviews opts

func Configure

func Configure(configProvider configparser.Provider) (*Options, error)

Configure inject config

func DefaultOptions

func DefaultOptions() *Options

DefaultOptions default opts

type Server

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

Server reviews server

func NewServer

func NewServer(ctx context.Context) (*Server, error)

func (*Server) Run

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

Run reviews server

type ServerOptions

type ServerOptions struct {
	Addr     string         `mapstructure:"addr"`
	LogLevel logutils.Level `mapstructure:"logLevel"`
}

ServerOptions server opts

func DefaultServerOptions

func DefaultServerOptions() *ServerOptions

DefaultServerOptions default opts

Jump to

Keyboard shortcuts

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