Documentation ¶
Index ¶
- func Run()
- func RunTyped[T any]()
- type Application
- type ApplicationConfigurationLoader
- type Configuration
- type ConfigurationFilePathProvider
- type ConfigurationFileReader
- type ConfigurationJsonFileReader
- type ConfigurationLoader
- type ConfigurationValueProvider
- type DataDeserialiser
- type DataInserter
- type DataReader
- type EnvironmentValueProvider
- type FilePathProvider
- type FileReader
- type FirestoreDataInserter
- type GinPubSubBodyReader
- type GinRouterBuilder
- type HttpRequestBodyDataReader
- type IoReaderGenerator
- type IoutilReader
- type JsonDataDeserialiser
- type JsonReader
- type JsonValueProvider
- type PubSubBody
- type PubSubBodyReader
- type PubSubPushRequestHandler
- type Reader
- type RequestHandler
- type RouterBuilder
- type ValueProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶ added in v0.1.2
type Application struct {
// contains filtered or unexported fields
}
func BuildApplication ¶ added in v0.1.2
func BuildApplication[T any]() Application
func NewApplication ¶ added in v0.1.2
func NewApplication(router *gin.Engine) *Application
func (Application) Run ¶ added in v0.1.2
func (this Application) Run()
type ApplicationConfigurationLoader ¶ added in v0.2.0
type ApplicationConfigurationLoader struct {
// contains filtered or unexported fields
}
func NewApplicationConfigurationLoader ¶ added in v0.2.0
func NewApplicationConfigurationLoader( projectIDProvider ValueProvider, collectionNameProvider ValueProvider, ) *ApplicationConfigurationLoader
func (ApplicationConfigurationLoader) Load ¶ added in v0.2.0
func (this ApplicationConfigurationLoader) Load() Configuration
type Configuration ¶ added in v0.1.2
func NewConfiguration ¶ added in v0.1.2
func NewConfiguration(projectID string, collectionName string) *Configuration
type ConfigurationFilePathProvider ¶ added in v0.1.2
type ConfigurationFilePathProvider struct {
// contains filtered or unexported fields
}
func NewConfigurationFilePathProvider ¶ added in v0.1.2
func NewConfigurationFilePathProvider(fileName string) *ConfigurationFilePathProvider
func (ConfigurationFilePathProvider) Get ¶ added in v0.1.2
func (this ConfigurationFilePathProvider) Get() string
type ConfigurationFileReader ¶ added in v0.2.0
type ConfigurationFileReader struct {
// contains filtered or unexported fields
}
func NewConfigurationFileReader ¶ added in v0.2.0
func NewConfigurationFileReader(filePathProvider FilePathProvider) *ConfigurationFileReader
func (ConfigurationFileReader) Read ¶ added in v0.2.0
func (this ConfigurationFileReader) Read() []byte
type ConfigurationJsonFileReader ¶ added in v0.1.2
type ConfigurationJsonFileReader struct {
// contains filtered or unexported fields
}
func NewConfigurationJsonFileReader ¶ added in v0.1.2
func NewConfigurationJsonFileReader(configurationFileReader FileReader) *ConfigurationJsonFileReader
func (ConfigurationJsonFileReader) Read ¶ added in v0.1.2
func (this ConfigurationJsonFileReader) Read() map[string]interface{}
type ConfigurationLoader ¶ added in v0.1.2
type ConfigurationLoader interface {
Load() Configuration
}
type ConfigurationValueProvider ¶ added in v0.2.0
type ConfigurationValueProvider struct {
// contains filtered or unexported fields
}
func CreateConfigurationValueProvider ¶ added in v0.2.0
func CreateConfigurationValueProvider( jsonKey string, environmentKey string, configurationJson map[string]interface{}) ConfigurationValueProvider
func (ConfigurationValueProvider) Get ¶ added in v0.2.0
func (this ConfigurationValueProvider) Get() (string, bool)
type DataDeserialiser ¶ added in v0.1.2
type DataInserter ¶ added in v0.1.2
type DataInserter[T any] interface { Insert(data T) }
type DataReader ¶ added in v0.1.2
type EnvironmentValueProvider ¶ added in v0.2.0
type EnvironmentValueProvider struct {
// contains filtered or unexported fields
}
func NewEnvironmentValueProvider ¶ added in v0.2.0
func NewEnvironmentValueProvider(key string) *EnvironmentValueProvider
func (EnvironmentValueProvider) Get ¶ added in v0.2.0
func (this EnvironmentValueProvider) Get() (string, bool)
type FilePathProvider ¶ added in v0.1.2
type FilePathProvider interface {
Get() string
}
type FileReader ¶ added in v0.1.2
type FileReader interface {
Read() []byte
}
type FirestoreDataInserter ¶ added in v0.1.2
type FirestoreDataInserter[T any] struct { // contains filtered or unexported fields }
func NewFirestoreDataInserter ¶ added in v0.1.2
func NewFirestoreDataInserter[T any](configuration Configuration) *FirestoreDataInserter[T]
func (FirestoreDataInserter[T]) Insert ¶ added in v0.1.2
func (this FirestoreDataInserter[T]) Insert(data T)
type GinPubSubBodyReader ¶ added in v0.1.2
type GinPubSubBodyReader struct {
// contains filtered or unexported fields
}
func NewGinPubSubBodyReader ¶ added in v0.1.2
func NewGinPubSubBodyReader( reader Reader, pubSubBodyDeserialiser DataDeserialiser[PubSubBody]) *GinPubSubBodyReader
func (GinPubSubBodyReader) Read ¶ added in v0.1.2
func (this GinPubSubBodyReader) Read(ginContext *gin.Context) PubSubBody
type GinRouterBuilder ¶ added in v0.1.2
type GinRouterBuilder[T any] struct { // contains filtered or unexported fields }
func NewGinRouterBuilder ¶ added in v0.1.2
func NewGinRouterBuilder[T any](requestHandler RequestHandler[T]) *GinRouterBuilder[T]
func (GinRouterBuilder[T]) Build ¶ added in v0.1.2
func (this GinRouterBuilder[T]) Build() *gin.Engine
type HttpRequestBodyDataReader ¶ added in v0.1.2
type HttpRequestBodyDataReader[T any] struct { // contains filtered or unexported fields }
func NewHttpRequestBodyDataReader ¶ added in v0.1.2
func NewHttpRequestBodyDataReader[T any]( pubSubBodyReader PubSubBodyReader, dataDeserialiser DataDeserialiser[T]) *HttpRequestBodyDataReader[T]
func (HttpRequestBodyDataReader[T]) Read ¶ added in v0.1.2
func (this HttpRequestBodyDataReader[T]) Read(ginContext *gin.Context) T
type IoReaderGenerator ¶ added in v0.1.2
type IoutilReader ¶ added in v0.1.2
type IoutilReader struct{}
type JsonDataDeserialiser ¶ added in v0.1.2
type JsonDataDeserialiser[T any] struct{}
func (JsonDataDeserialiser[T]) Deserialise ¶ added in v0.1.2
func (this JsonDataDeserialiser[T]) Deserialise(data []byte) T
type JsonReader ¶ added in v0.2.0
type JsonReader interface {
Read() map[string]interface{}
}
type JsonValueProvider ¶ added in v0.2.0
type JsonValueProvider struct {
// contains filtered or unexported fields
}
func NewJsonValueProvider ¶ added in v0.2.0
func NewJsonValueProvider(key string) *JsonValueProvider
func (JsonValueProvider) Get ¶ added in v0.2.0
func (this JsonValueProvider) Get() (string, bool)
type PubSubBody ¶
type PubSubBodyReader ¶ added in v0.1.2
type PubSubBodyReader interface {
Read(ginContext *gin.Context) PubSubBody
}
type PubSubPushRequestHandler ¶ added in v0.1.2
type PubSubPushRequestHandler[T any] struct { // contains filtered or unexported fields }
func (PubSubPushRequestHandler[T]) Handle ¶ added in v0.1.2
func (this PubSubPushRequestHandler[T]) Handle(ginContext *gin.Context)
type RequestHandler ¶ added in v0.1.2
type RouterBuilder ¶ added in v0.1.2
type ValueProvider ¶ added in v0.2.0
Source Files ¶
- application.go
- application_configuration_loader.go
- build_application.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_inserter.go
- data_reader.go
- environment_value_provider.go
- file_path_provider.go
- file_reader.go
- firestore_data_inserter.go
- gin_pub_sub_body_reader.go
- gin_router_builder.go
- http_request_body_data_reader.go
- io_reader_generator.go
- ioutil_reader.go
- json_data_deserialiser.go
- json_reader.go
- json_value_provider.go
- pub_sub_body.go
- pub_sub_body_reader.go
- pub_sub_push_request_handler.go
- reader.go
- request_handler.go
- router_builder.go
- run.go
- run_typed.go
- value_provider.go
Directories ¶
Path | Synopsis |
---|---|
tests
|
|
integration-mapped
Module
|
|
integration-typed
Module
|
|
integration-untyped
Module
|
Click to show internal directories.
Click to hide internal directories.