Documentation ¶
Index ¶
- type Application
- type ApplicationConfigurationLoader
- type Configuration
- type ConfigurationFilePathProvider
- type ConfigurationFileReader
- type ConfigurationJsonFileReader
- type ConfigurationLoader
- type ConfigurationValueProvider
- type DataDeserialiser
- type DataReader
- type EnvironmentValueProvider
- type FilePathProvider
- type FileReader
- type GinPubSubBodyReader
- type GinRouterBuilder
- type HttpRequestBodyDataReader
- type IoutilReader
- type JsonDataDeserialiser
- type JsonValueProvider
- type PubSubBody
- type PubSubBodyReader
- type Reader
- type RequestHandler
- type ValueProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶
func NewApplication(router *gin.Engine) *Application
func (Application) Run ¶
func (this Application) Run()
type ApplicationConfigurationLoader ¶
type ApplicationConfigurationLoader struct {
// contains filtered or unexported fields
}
func NewApplicationConfigurationLoader ¶
func NewApplicationConfigurationLoader( projectIDProvider ValueProvider, collectionNameProvider ValueProvider, ) *ApplicationConfigurationLoader
func (ApplicationConfigurationLoader) Load ¶
func (this ApplicationConfigurationLoader) Load() Configuration
type Configuration ¶
func GenerateConfiguration ¶
func GenerateConfiguration(fileName string) Configuration
func NewConfiguration ¶
func NewConfiguration(projectID string, collectionName string) *Configuration
type ConfigurationFilePathProvider ¶
type ConfigurationFilePathProvider struct {
// contains filtered or unexported fields
}
func NewConfigurationFilePathProvider ¶
func NewConfigurationFilePathProvider(fileName string) *ConfigurationFilePathProvider
func (ConfigurationFilePathProvider) Get ¶
func (this ConfigurationFilePathProvider) Get() string
type ConfigurationFileReader ¶
type ConfigurationFileReader struct {
// contains filtered or unexported fields
}
func NewConfigurationFileReader ¶
func NewConfigurationFileReader(filePathProvider FilePathProvider) *ConfigurationFileReader
func (ConfigurationFileReader) Read ¶
func (this ConfigurationFileReader) Read() []byte
type ConfigurationJsonFileReader ¶
type ConfigurationJsonFileReader struct {
// contains filtered or unexported fields
}
func NewConfigurationJsonFileReader ¶
func NewConfigurationJsonFileReader(configurationFileReader FileReader) *ConfigurationJsonFileReader
func (ConfigurationJsonFileReader) Read ¶
func (this ConfigurationJsonFileReader) Read() map[string]interface{}
type ConfigurationLoader ¶
type ConfigurationLoader interface {
Load() Configuration
}
type ConfigurationValueProvider ¶
type ConfigurationValueProvider struct {
// contains filtered or unexported fields
}
func CreateConfigurationValueProvider ¶
func CreateConfigurationValueProvider( jsonKey string, environmentKey string, configurationJson map[string]interface{}) ConfigurationValueProvider
func (ConfigurationValueProvider) Get ¶
func (this ConfigurationValueProvider) Get() (string, bool)
type DataDeserialiser ¶
type DataReader ¶
type EnvironmentValueProvider ¶
type EnvironmentValueProvider struct {
// contains filtered or unexported fields
}
func NewEnvironmentValueProvider ¶
func NewEnvironmentValueProvider(key string) *EnvironmentValueProvider
func (EnvironmentValueProvider) Get ¶
func (this EnvironmentValueProvider) Get() (string, bool)
type FilePathProvider ¶
type FilePathProvider interface {
Get() string
}
type FileReader ¶
type FileReader interface {
Read() []byte
}
type GinPubSubBodyReader ¶
type GinPubSubBodyReader struct {
// contains filtered or unexported fields
}
func NewGinPubSubBodyReader ¶
func NewGinPubSubBodyReader( reader Reader, pubSubBodyDeserialiser DataDeserialiser[PubSubBody]) *GinPubSubBodyReader
func (GinPubSubBodyReader) Read ¶
func (this GinPubSubBodyReader) Read(ginContext *gin.Context) PubSubBody
type GinRouterBuilder ¶
type GinRouterBuilder struct {
// contains filtered or unexported fields
}
func NewGinRouterBuilder ¶
func NewGinRouterBuilder() *GinRouterBuilder
func (GinRouterBuilder) AddGet ¶
func (this GinRouterBuilder) AddGet(routePath string, handler gin.HandlerFunc)
func (GinRouterBuilder) AddPost ¶
func (this GinRouterBuilder) AddPost(routePath string, handler gin.HandlerFunc)
func (GinRouterBuilder) Build ¶
func (this GinRouterBuilder) Build() *gin.Engine
type HttpRequestBodyDataReader ¶
type HttpRequestBodyDataReader[T any] struct { // contains filtered or unexported fields }
func NewHttpRequestBodyDataReader ¶
func NewHttpRequestBodyDataReader[T any]( pubSubBodyReader PubSubBodyReader, dataDeserialiser DataDeserialiser[T]) *HttpRequestBodyDataReader[T]
func (HttpRequestBodyDataReader[T]) Read ¶
func (this HttpRequestBodyDataReader[T]) Read(ginContext *gin.Context) T
type IoutilReader ¶
type IoutilReader struct{}
type JsonDataDeserialiser ¶
type JsonDataDeserialiser[T any] struct{}
func (JsonDataDeserialiser[T]) Deserialise ¶
func (this JsonDataDeserialiser[T]) Deserialise(data []byte) T
type JsonValueProvider ¶
type JsonValueProvider struct {
// contains filtered or unexported fields
}
func NewJsonValueProvider ¶
func NewJsonValueProvider(key string) *JsonValueProvider
func (JsonValueProvider) Get ¶
func (this JsonValueProvider) Get() (string, bool)
type PubSubBody ¶
type PubSubBodyReader ¶
type PubSubBodyReader interface {
Read(ginContext *gin.Context) PubSubBody
}
type RequestHandler ¶
type ValueProvider ¶
Source Files ¶
- application.go
- application_configuration_loader.go
- configuration.go
- configuration_file_path_provider.go
- configuration_file_reader.go
- configuration_json_file_reader.go
- configuration_loader.go
- configuration_value_provider.go
- create_configuration_value_provider.go
- data_deserialiser.go
- data_reader.go
- environment_value_provider.go
- file_path_provider.go
- file_reader.go
- generate_configuration.go
- gin_pub_sub_body_reader.go
- gin_router_builder.go
- http_request_body_data_reader.go
- ioutil_reader.go
- json_data_deserialiser.go
- json_value_provider.go
- pub_sub_body.go
- pub_sub_body_reader.go
- reader.go
- request_handler.go
- value_provider.go
Click to show internal directories.
Click to hide internal directories.