da

package
v0.0.0-...-2b0c82f Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(userAssetRepos domain.IUserAssetRepository) da.PaymentService

Types

type Options

type Options struct {
	Server        *ServerOptions                                `mapstructure:"server"`
	MysqlDBClient *injectors.MysqlDBClientOptions               `mapstructure:"mysqlDBClient"`
	RmqConsumers  map[string]*subscriber.RmqPushConsumerOptions `mapstructure:"rmqConsumers"`
}

Options payment da opts

func Configure

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

Configure inject config

func DefaultOptions

func DefaultOptions() *Options

DefaultOptions default opts

func (*Options) String

func (m *Options) String() (str string)

type Server

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

func NewServer

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

NewServer build server with wire, dependency obj inject, so init random

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"`
	ProjectName               string                 `mapstructure:"projectName"`
	LogMeta                   map[string]interface{} `mapstructure:"logMeta"`
	OltpGrpcCollectorEndpoint string                 `mapstructure:"oltpCollectorGrpcEndpoint"`
}

func DefaultServerOptions

func DefaultServerOptions() *ServerOptions

DefaultServerOptions default opts

Directories

Path Synopsis
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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