Paranoia

package module
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: BSD-2-Clause Imports: 3 Imported by: 0

README

Paranoia framework - golang microservice engine

pipeline status coverage report Latest Release Go Reference

Documentations rus

Supported:

Database
  • Postgres
  • SQLite
  • MySQL
  • Clickhouse
  • MongoDB
  • Aerospike
Cache
  • Memory
  • Redis
  • Memcached
Servers
  • http
  • Kafka
Server middlewares
  • Restore from panic
  • Register timing middleware (default use)
Clients
  • http
  • Kafka
Other
  • Initialize base engine module from yaml config file

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(name string, config interfaces.IConfig, logger interfaces.ILogger) *Service

func (*Service) GetCache

func (t *Service) GetCache(key string) interfaces.ICache

func (*Service) GetClient added in v0.0.9

func (t *Service) GetClient(key string) interfaces.IClient

func (*Service) GetConfig added in v0.0.5

func (t *Service) GetConfig() interfaces.IConfig

func (*Service) GetController

func (t *Service) GetController(key string) interfaces.IController

func (*Service) GetDatabase

func (t *Service) GetDatabase(key string) interfaces.IDatabase

func (*Service) GetLogger

func (t *Service) GetLogger() interfaces.ILogger

func (*Service) GetMiddleware added in v0.0.9

func (t *Service) GetMiddleware(key string) interfaces.IMiddleware

func (*Service) GetModule

func (t *Service) GetModule(key string) interfaces.IModules

func (*Service) GetNoSql added in v0.0.5

func (t *Service) GetNoSql(key string) interfaces.INoSql

func (*Service) GetRepository

func (t *Service) GetRepository(key string) interfaces.IRepository

func (*Service) GetServer

func (t *Service) GetServer(key string) interfaces.IServer

func (*Service) GetStorage

func (t *Service) GetStorage(key string) interfaces.IStorage

func (*Service) Init

func (t *Service) Init() error

func (*Service) PushCache

func (t *Service) PushCache(c interfaces.ICache) interfaces.IService

func (*Service) PushClient added in v0.0.9

func (t *Service) PushClient(b interfaces.IClient) interfaces.IService

func (*Service) PushController

func (t *Service) PushController(b interfaces.IController) interfaces.IService

func (*Service) PushDatabase

func (t *Service) PushDatabase(b interfaces.IDatabase) interfaces.IService

func (*Service) PushMiddleware added in v0.0.9

func (t *Service) PushMiddleware(b interfaces.IMiddleware) interfaces.IService

func (*Service) PushModule

func (t *Service) PushModule(b interfaces.IModules) interfaces.IService

func (*Service) PushNoSql added in v0.0.5

func (t *Service) PushNoSql(b interfaces.INoSql) interfaces.IService

func (*Service) PushRepository

func (t *Service) PushRepository(b interfaces.IRepository) interfaces.IService

func (*Service) PushServer

func (t *Service) PushServer(b interfaces.IServer) interfaces.IService

func (*Service) PushStorage

func (t *Service) PushStorage(b interfaces.IStorage) interfaces.IService

func (*Service) SetMetrics added in v0.0.9

func (t *Service) SetMetrics(c interfaces.IMetrics)

func (*Service) Stop

func (t *Service) Stop() error

Directories

Path Synopsis
pkg
cache/memory Module
cache/redis Module
server/grpc Module
server/http Module
server/kafka Module
utils

Jump to

Keyboard shortcuts

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