Versions in this module Expand all Collapse all v0 v0.4.8 Nov 3, 2024 Changes in this version + var UserRegisterHash = make(map[string]string) + type EventService interface + CreateEvemt func(m model.EventModel) model.EventModel + DeleteEvent func(uuid string) + DeleteEventBySerial func(serial string) + GetEventByUUID func(uuid string) (m model.EventModel) + GetEvents func() (list []model.EventModel) + func NewEventService(db *gorm.DB) EventService + type Repository interface + Event func() EventService + Gateway func() external.ManagementService + MessageBus func() *message_bus.ClientWithResponses + User func() UserService + var MyService Repository + func NewService(db *gorm.DB, RuntimePath string) Repository + type UserService interface + CreateUser func(m model.UserDBModel) model.UserDBModel + DeleteAllUser func() + DeleteUserById func(id string) + GetAllUserName func() (list []model.UserDBModel) + GetKeyPair func() (*ecdsa.PrivateKey, *ecdsa.PublicKey) + GetUserAllInfoById func(id string) (m model.UserDBModel) + GetUserAllInfoByName func(userName string) (m model.UserDBModel) + GetUserCount func() (userCount int64) + GetUserInfoById func(id string) (m model.UserDBModel) + GetUserInfoByUserName func(userName string) (m model.UserDBModel) + UpLoadFile func(file multipart.File, name string) error + UpdateUser func(m model.UserDBModel) + UpdateUserPassword func(m model.UserDBModel) + func NewUserService(db *gorm.DB) UserService