Documentation ¶
Index ¶
- func Run()
- func RunTyped[T any]()
- type Application
- type Configuration
- type ConfigurationCreator
- type ConfigurationFilePathProvider
- type ConfigurationJsonFileReader
- type ConfigurationLoader
- type DataDeserialiser
- type DataInserter
- type DataReader
- type FilePathProvider
- type FileReader
- type FirestoreDataInserter
- type GinPubSubBodyReader
- type GinRouterBuilder
- type HttpRequestBodyDataReader
- type IoReaderGenerator
- type IoutilReader
- type JsonConfigurationCreator
- type JsonConfigurationLoader
- type JsonDataDeserialiser
- type PubSubBody
- type PubSubBodyReader
- type PubSubPushRequestHandler
- type Reader
- type RequestHandler
- type RouterBuilder
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 Configuration ¶ added in v0.1.2
func NewConfiguration ¶ added in v0.1.2
func NewConfiguration(projectID string, collectionName string) *Configuration
type ConfigurationCreator ¶ added in v0.1.2
type ConfigurationCreator interface {
Create(configurationJson []byte) 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 ConfigurationJsonFileReader ¶ added in v0.1.2
type ConfigurationJsonFileReader struct {
// contains filtered or unexported fields
}
func NewConfigurationJsonFileReader ¶ added in v0.1.2
func NewConfigurationJsonFileReader(filePathProvider FilePathProvider) *ConfigurationJsonFileReader
func (ConfigurationJsonFileReader) Read ¶ added in v0.1.2
func (this ConfigurationJsonFileReader) Read() []byte
type ConfigurationLoader ¶ added in v0.1.2
type ConfigurationLoader interface {
Load() Configuration
}
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 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 JsonConfigurationCreator ¶ added in v0.1.2
type JsonConfigurationCreator struct{}
func (JsonConfigurationCreator) Create ¶ added in v0.1.2
func (this JsonConfigurationCreator) Create(configurationJson []byte) Configuration
type JsonConfigurationLoader ¶ added in v0.1.2
type JsonConfigurationLoader struct {
// contains filtered or unexported fields
}
func NewJsonConfigurationLoader ¶ added in v0.1.2
func NewJsonConfigurationLoader( fileReader FileReader, configuratoinCreator ConfigurationCreator) *JsonConfigurationLoader
func (JsonConfigurationLoader) Load ¶ added in v0.1.2
func (this JsonConfigurationLoader) Load() Configuration
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 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
Source Files ¶
- application.go
- build_application.go
- configuration.go
- configuration_creator.go
- configuration_file_path_provider.go
- configuration_json_file_reader.go
- configuration_loader.go
- data_deserialiser.go
- data_inserter.go
- data_reader.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_configuration_creator.go
- json_configuration_loader.go
- json_data_deserialiser.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
Directories ¶
Path | Synopsis |
---|---|
tests
|
|
integration-mapped
Module
|
|
integration-typed
Module
|
|
integration-untyped
Module
|
Click to show internal directories.
Click to hide internal directories.