Versions in this module Expand all Collapse all v1 v1.0.1 Jun 2, 2026 v1.0.0 Jun 2, 2026 Changes in this version + func CreateBO(bloCtx BloContext, bObj IBusinessObject) error + func DeleteOne[ResourceType IBusinessObject](handlerFunc func(webCtx WebContext) (ResourceType, hstatus.Code, string)) *oneForNoneEndpoint[ResourceType] + func Error(msg string, params ...any) error + func ErrorC(cause error, msg string, params ...any) error + func GenericHandleCreate[BOTYPE IBusinessObject]() *oneForOneEndpoint[BOTYPE, BOTYPE] + func GenericHandleDelete[BOTYPE IBusinessObject](idProp IField) *oneForNoneEndpoint[BOTYPE] + func GenericHandleRead[BOTYPE IBusinessObject](idProp IField, loadingType LoadingType) *oneForNoneEndpoint[BOTYPE] + func GenericHandleUpdate[BOTYPE IBusinessObject](loadingType LoadingType) *oneForOneEndpoint[BOTYPE, BOTYPE] + func GetManyWithParams[ResourceType IBusinessObject, QueryParamsType IURLQueryParams](...) *manyForOneEndpoint[QueryParamsType, ResourceType] + func GetMany[ResourceType IBusinessObject](handlerFunc func(webCtx WebContext) ([]ResourceType, hstatus.Code, string), ...) *manyForNoneEndpoint[ResourceType] + func GetOne[ResourceType IBusinessObject](handlerFunc func(webCtx WebContext) (ResourceType, hstatus.Code, string), ...) *oneForNoneEndpoint[ResourceType] + func HandleGetAll[ResourceType IBusinessObject](webCtx WebContext) ([]ResourceType, hstatus.Code, string) + func HttpGet(url string, failOnBadStatusCode bool) *outgoingHttpRequest + func HttpGetBObjList[ResponseType IBusinessObject](outReq *outgoingHttpRequest, responseList []ResponseType) ([]ResponseType, hstatus.Code, error) + func HttpGetBObject[ResponseType IBusinessObject](outReq *outgoingHttpRequest, responseObj ResponseType) (ResponseType, hstatus.Code, error) + func HttpGetResponseAs[ResponseType any](outReq *outgoingHttpRequest, responseObj *ResponseType) (*ResponseType, hstatus.Code, error) + func HttpPost(url string, failOnBadStatusCode bool) *outgoingHttpRequest + func HttpPut(url string, failOnBadStatusCode bool) *outgoingHttpRequest + func In(module moduleName) *moduleClassRegitry + func LoadBOs[ResourceType IBusinessObject](bloCtx BloContext, model IBusinessObjectModel, loadingType LoadingType) ([]ResourceType, error) + func NewBaseConfig() *serverConfig + func PostManyGetMany[InputType, ResourceType IBusinessObject](...) *manyForManyEndpoint[InputType, ResourceType] + func PostOneGetOne[InputType, ResourceType IBusinessObject](...) *oneForOneEndpoint[InputType, ResourceType] + func PutOne[InputType, ResourceType IBusinessObject](...) *oneForOneEndpoint[ResourceType, ResourceType] + func RecoverError(msg string, params ...any) + func RegisterConfig(cfgObj IServerConfig) + func RegisterDataLoader(fn dataLoader, migrationPhase bool) + func RegisterModel(name className, model IBusinessObjectModel) + func UpdateBO(bloCtx BloContext, input IBusinessObject, loadingType LoadingType) error + type AppContext interface + CustomConfig func() ICustomConfig + type BObjID int64 + type BigIntField struct + func NewBigIntField(owner IBusinessObjectModel, name string, multiple bool) *BigIntField + func (f *BigIntField) Max(max int64) *BigIntField + func (f *BigIntField) Min(min int64) *BigIntField + type BloContext interface + GetDaoContext func() DaoContext + type BoolField struct + func NewBoolField(owner IBusinessObjectModel, name string, multiple bool) *BoolField + func (f *BoolField) SetDefaultValue(val string) *field + func (f *BoolField) SetNotPersisted() *field + type BusinessObject struct + ID BObjID + func (thisBO *BusinessObject) ChangeAfterInsert(BloContext) error + func (thisBO *BusinessObject) ChangeBeforeInsert(BloContext) error + func (thisBO *BusinessObject) GetID() BObjID + func (thisBO *BusinessObject) GetModel() IBusinessObjectModel + func (thisBO *BusinessObject) IsValid(BloContext) error + func (thisBO *BusinessObject) Load(loadingType LoadingType, with ...*LoadingScenario) *LoadingScenario + type DB struct + func GetDB(dbID DatabaseID) *DB + func (thisDB *DB) Exec(query string, args ...any) (sql.Result, error) + func (thisDB *DB) Query(query string, args ...any) (*sql.Rows, error) + type DaoContext interface + type DatabaseID string + type DateField struct + func NewDateField(owner IBusinessObjectModel, name string, multiple bool) *DateField + func (f *DateField) SetDefaultValue(val string) *field + func (f *DateField) SetNotPersisted() *field + type DoubleField struct + func NewDoubleField(owner IBusinessObjectModel, name string, multiple bool) *DoubleField + func (f *DoubleField) Max(max float64) *DoubleField + func (f *DoubleField) Min(min float64) *DoubleField + type EndpointGroup struct + Description string + Name string + func NewEndpointGroup(name string, description string) *EndpointGroup + type EnumField struct + func NewEnumField(owner IBusinessObjectModel, name string, multiple bool, enumName string) *EnumField + func (f *EnumField) Only(values ...IEnum) *EnumField + func (f *EnumField) SetDefaultValue(val string) *field + func (f *EnumField) SetNotPersisted() *field + type IBaseConfig interface + type IBusinessObject interface + ChangeAfterInsert func(BloContext) error + ChangeBeforeInsert func(BloContext) error + GetID func() BObjID + GetModel func() IBusinessObjectModel + IsValid func(BloContext) error + func DeleteBO(bloCtx BloContext, idProp IField, idPropVal string) (IBusinessObject, error) + func ReadBO(bloCtx BloContext, idProp IField, idPropVal string, loadingType LoadingType) (IBusinessObject, error) + type IBusinessObjectModel interface + ID func() IField + SetAbstract func() + SetDescription func(description string) + SetInDB func(db *DB) + SetNotPersisted func() + func NewBusinessObjectModel() IBusinessObjectModel + type IClass interface + NewObject func() any + NewSlice func() any + type IClassCore interface + AsInterface func() IClassCore + GetValueAsString func(IBusinessObject, string) string + SetValueAsString func(IBusinessObject, string, string) error + func NewClassCore(srcPath, class, lastModification string) IClassCore + type ICustomConfig interface + type IEnum interface + Val func() int + Values func() map[int]string + type IField interface + type IOutgoingHttpRequest interface + WithBasicAuth func(user, pass string) IOutgoingHttpRequest + WithData func(dataObj any) IOutgoingHttpRequest + WithHeader func(key, value string) IOutgoingHttpRequest + WithTimeout func(timeout time.Duration) IOutgoingHttpRequest + type IServerConfig interface + CustomConfig func() ICustomConfig + type IURLQueryParams interface + type IURLQueryParamsModel interface + func NewURLQueryParamsModel() IURLQueryParamsModel + type IUser interface + GetUsername func() string + type IntField struct + func NewIntField(owner IBusinessObjectModel, name string, multiple bool) *IntField + func (f *IntField) Max(max int) *IntField + func (f *IntField) Min(min int) *IntField + type LoadingScenario struct + func With(relationship *Relationship, with ...*LoadingScenario) *LoadingScenario + type LoadingType string + type PropertyType int + const PropertyTypeBOOL + const PropertyTypeDATE + const PropertyTypeENUM + const PropertyTypeINT + const PropertyTypeINT64 + const PropertyTypeREAL32 + const PropertyTypeREAL64 + const PropertyTypeRELATIONSHIP + const PropertyTypeSTRING + const PropertyTypeUNKNOWN + func (thisProperty PropertyType) String() string + func (thisProperty PropertyType) Val() int + func (thisProperty PropertyType) Values() map[int]string + type RealField struct + func NewRealField(owner IBusinessObjectModel, name string, multiple bool) *RealField + func (f *RealField) Max(max float32) *RealField + func (f *RealField) Min(min float32) *RealField + type Relationship struct + func NewPolyRelationship(owner IBusinessObjectModel, name string, multiple bool) *Relationship + func NewRelationship(owner IBusinessObjectModel, name string, multiple bool, ...) *Relationship + func (r *Relationship) SetChildToParent(backRefRelation *Relationship) *Relationship + func (r *Relationship) SetOneWay() *Relationship + func (r *Relationship) SetSourceToTarget(backRefRelation *Relationship) *Relationship + func (r *Relationship) SetTargets(targets ...IBusinessObjectModel) *Relationship + type ServerContext interface + Start func() + func NewServer() ServerContext + type StringField struct + func NewStringField(owner IBusinessObjectModel, name string, multiple bool) *StringField + func (f *StringField) SetDefaultValue(val string) *field + func (f *StringField) SetNotPersisted() *field + func (sf *StringField) SetSize(size int, atLeast ...int) *field + type URLQueryParams struct + type WebContext interface + GetBloContext func() BloContext + GetResource func() IBusinessObjectModel + GetResourceLoadingType func() LoadingType + GetTargetRefOrID func() string