package
0.0.0-20250331114127-736dde6625db
Repository: https://github.com/sdslabs/gasper.git
Documentation: pkg.go.dev
# Functions
NewLoadBalancer returns a new LoadBalancer instance.
NewProxyInfo returns a new ProxyInfo container.
NewProxyStorage returns a new ProxyStorage container.
NewRecordStorage returns a new instance of RecordStorage data structure.
NewResErr returns a ResponseError type with the given message Alternatively, you can provinde an error interface that can replace the Msg Both msg and error cannot be nil (empty).
# Constants
AppMaker holds the name of `appmaker` microservice.
DbMaker holds the name of `dbmaker` microservice.
DefaultCPUs is the default number of CPUs allotted to a container.
DefaultMemory is the default memory allotted to a container.
GenDNS holds the name of `gendns` microservice.
GenProxy holds the name of `genproxy` microservice.
GenProxySSL holds the name of `genproxy` microservice with SSL support.
GenSSH holds the name of `genssh` microservice.
Jikan holds the name of `jikan` microservice.
Master holds the name of `master` microservice.
MongoDB holds the name of `mongodb` mongo component under `dbmaker`.
MongoDBGasper holds the name of `mongodb_gasper` mongo component under `master`.
MySQL holds the name of `mysql` component under `dbmaker`.
PostgreSQL holds the name of `postgresql` component under 'dbmaker'.
Redis holds the name of `redis` component under 'dbmaker'.
RedisGasper holds the name of `redis_gasper` redis component under `master`.
# Variables
ErrNoContainer is the error message when a container lookup fails.
# Structs
ApplicationConfig is the configuration required for creating an application.
ApplicationContainer is the configuration for creating a container for running an application.
Context stores the information related to building and running an application.
CPUStats defines a struct for storing a container's CPU statistics.
CPUUsageStats defines a struct for storing a container's CPU usage statistics.
DatabaseConfig is the configuration required for creating a database.
DatabaseContainer is the configuration for creating a container for running an database service.
Email stores email id of a user.
Git stores the information related to the application's git repository.
InstanceBindings defines the struct for storing both the instance's server and node urls.
LoadBalancer is a data structure for load balancing requests among multiple instances using round-robin scheduling algorithm.
Login is the request body binding for login.
MemoryStats defines a struct for storing a container's memory statistics.
Metrics defines a struct for storing container metrics.
PasswordUpdate is the request body for updating a user's password.
ProxyInfo is a container for establishing a reverse-proxy connection.
ProxyStorage maps the application name to its appropriate reverse-proxy container.
RecordStorage is the data structure for storing records.
No description provided by the author
No description provided by the author
Resources defines the resources requested by an application.
Stats defines a struct for storing container statistics.
No description provided by the author
No description provided by the author
No description provided by the author
User stores user related information.
# Interfaces
Application is the interface for creating an application.
Database is the interface for creating a database.
Instance is the interface for dealing with both applications and databases.
ResponseError is a type for declaring response error from server.
# Type aliases
M is a shorthand notation for map[string]interface{}.