config

package
v0.0.0-...-8886d92 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Environments     Environments
	Conn             *Conn
	GrpcPubSubServer PubSubServer
	Logger           Logger
}

type Conn

type Conn struct {
	DB *sql.DB
}

Conn holds the database connection Pool

type DataAccessLayer

type DataAccessLayer struct {
	PortNumber string
}

type DataCollectionLayer

type DataCollectionLayer struct {
	Workers           int
	JobsBuffer        int
	ResultBuffer      int
	LogsBuffer        int
	ReceiverTimeOut   int
	MessagePerReceive int
	MessageBatchSize  int
}

type Environments

type Environments struct {
	Paragraph           Paragraph
	ServiceLog          ServiceLog
	PubSub              PubSub
	DataAccessLayer     DataAccessLayer
	DataCollectionLayer DataCollectionLayer
}

type Logger

type Logger struct {
	Logger zerolog.Logger
}

type MyPool

type MyPool struct {
	MaxOpenDBConn      int
	MaxIdleDbConn      int
	MaxDbLifeTime      int
	PingContextTimeout int
}

MyPool holds the Connection pool settings values

type Paragraph

type Paragraph struct {
	SentenceCount int
	WordCount     int
}

type PubSub

type PubSub struct {
	ProjectID         string
	TopicID           string
	SubscriptionID    string
	ServicePublishers uint
	ServiceNamePool   uint
	MessageBatch      uint
	MessageFrequency  uint // for time.Duration in milliseconds
}

type PubSubServer

type PubSubServer struct {
	Conn *grpc.ClientConn
}

PubSubServer Holds Client Connection for pstest

type ServiceLog

type ServiceLog struct {
	ServiceNameCharLength uint
}

Jump to

Keyboard shortcuts

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