Versions in this module Expand all Collapse all v0 v0.0.2 Feb 22, 2023 Changes in this version + const JWTAuthScopes + func RegisterHandlers(router EchoRouter, si ServerInterface) + func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string) + type CreateJSONBody = Tree + type CreateJSONRequestBody = CreateJSONBody + type EchoRouter interface + CONNECT func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + DELETE func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + GET func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + HEAD func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + OPTIONS func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + PATCH func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + POST func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + PUT func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + TRACE func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + type Error struct + Code int32 + Message string + type ListParams struct + Limit *int32 + type PGX struct + func (P PGX) Count() (int32, error) + func (P PGX) Create(object Tree) (*Tree, error) + func (P PGX) Delete(id int32) error + func (P PGX) Exist(id int32) bool + func (P PGX) Get(id int32) (*Tree, error) + func (P PGX) GetMaxId() (int32, error) + func (P PGX) IsTreeActive(id int32) bool + func (P PGX) List(offset, limit int) ([]*TreeList, error) + func (P PGX) SearchTreesByName(pattern string) ([]*TreeList, error) + func (P PGX) Update(id int32, object Tree) (*Tree, error) + type ServerInterface interface + Create func(ctx echo.Context) error + Delete func(ctx echo.Context, treeId int32) error + Get func(ctx echo.Context, treeId int32) error + List func(ctx echo.Context, params ListParams) error + Update func(ctx echo.Context, treeId int32) error + type ServerInterfaceWrapper struct + Handler ServerInterface + func (w *ServerInterfaceWrapper) Create(ctx echo.Context) error + func (w *ServerInterfaceWrapper) Delete(ctx echo.Context) error + func (w *ServerInterfaceWrapper) Get(ctx echo.Context) error + func (w *ServerInterfaceWrapper) List(ctx echo.Context) error + func (w *ServerInterfaceWrapper) Update(ctx echo.Context) error + type Service struct + JwtDuration int + JwtSecret []byte + Log *log.Logger + Store Storage + func (s Service) Create(ctx echo.Context) error + func (s Service) Delete(ctx echo.Context, objectId int32) error + func (s Service) Get(ctx echo.Context, objectId int32) error + func (s Service) List(ctx echo.Context, params ListParams) error + func (s Service) Update(ctx echo.Context, objectId int32) error + type Storage interface + Count func() (int32, error) + Create func(object Tree) (*Tree, error) + Delete func(id int32) error + Exist func(id int32) bool + Get func(id int32) (*Tree, error) + GetMaxId func() (int32, error) + IsTreeActive func(id int32) bool + List func(offset, limit int) ([]*TreeList, error) + SearchTreesByName func(pattern string) ([]*TreeList, error) + Update func(id int32, object Tree) (*Tree, error) + func GetStorageInstance(dbDriver string, db database.DB, l *log.Logger) (Storage, error) + type Tree struct + Comment *string + CreateTime time.Time + Creator int32 + Description *string + ExternalId *int32 + Id int32 + IdValidator *int32 + InactivationReason *string + InactivationTime *time.Time + IsActive bool + IsValidated *bool + LastModificationTime *time.Time + LastModificationUser *int32 + Name string + type TreeList struct + CreateTime time.Time + Creator int32 + Description *string + ExternalId *int32 + Id int32 + IsActive bool + Name string