Versions in this module Expand all Collapse all v1 v1.1.0 Mar 31, 2021 v1.0.0 Nov 20, 2020 Changes in this version + const StructTagName + const StructTagSQL + var FieldNotFound = errors.New("field was not found") + func Default404Handler(app App) libhttp.Service + func DefaultLongPath(module Module, route Route) string + func GetCurrentDir() (dirAbsPath string, err error) + func GetGoEnv() (map[string]string, error) + func GetPackagePath(i interface{}) string + type App struct + Addr string + Config Config + Debug bool + Modules map[string]Module + Router *libhttp.Router + Verbose bool + func NewApp(addr string, config Config, verbose, debug bool, modules ...Module) App + func (app App) PrintConfig() + func (app App) PrintRoutes(addr string) + func (app App) Register(module Module) + func (app App) Routes() map[string]Route + type Config struct + EnableAuthOnOptions bool + OAuthAudience string + OAuthIssuer string + OAuthJsonWebKeySetsUrl string + TokenExtractors []string + func ParseConfig(path string) (config Config, err error) + type DefaultEntity struct + ID uuid.UUID + func (e *DefaultEntity) Index() uuid.UUID + func (e *DefaultEntity) SetIndex(u uuid.UUID) + type Entity interface + Index func() uuid.UUID + Name func() string + SetIndex func(u uuid.UUID) + Type func() reflect.Type + Value func(key string) (interface{}, error) + type GenericResponse struct + Error *string + Message interface{} + type Module interface + LongPath func(route Route) string + Namespace func() string + Routes func() map[string]Route + Version func() string + type Pipeline interface + Consume func(objs ...interface{}) (interface{}, error) + Init func(objs ...interface{}) (interface{}, error) + func LoadPipeline(path string) (Pipeline, error) + type Repository interface + CreateTable func(i Entity, ifNotExist bool) error + Delete func(i Entity) (bool, error) + DropTable func(i Entity, ifExists bool) error + Get func(i uuid.UUID) (Entity, error) + List func() []Entity + Save func(i Entity, fields ...string) error + Update func(i Entity, fields ...string) error + type Route struct + CurlExample string + Method string + MultiPartValidator *Validator + Path string + Service Service + TokenValidator ValidatorWithService + Validator *Validator + type Service func(app App) libhttp.Service + type Validator func(request libhttp.Request) (interface{}, error) + func GenerateJSONValidator(i interface{}) *Validator + func GenerateMultipartValidator(i interface{}, maxMemoryBytes int64) *Validator + type ValidatorWithService libhttp.Filter