Documentation
¶
Index ¶
- func DecodeCursor(after *string) (*string, error)
- func EncodeCursor(i *string) graphql.ID
- func NewLogger(config *context.Config) *logging.Logger
- type AuthService
- type BrokerService
- func (b *BrokerService) CreateJob(serviceName string, moduleID string) error
- func (b *BrokerService) GetModule(serviceName string, moduleID string) (*model.ProtoModule, error)
- func (b *BrokerService) GetModuleConfiguration(serviceName string, moduleID string) (*model.Configuration, error)
- func (b *BrokerService) GetModuleStatus(serviceName string, moduleID string) (*model.ProtoStatus, error)
- type ConfigureService
- type RoleService
- func (r *RoleService) Count() (int, error)
- func (r *RoleService) CreateRole(role *model.Role) (*model.Role, error)
- func (r *RoleService) FindByName(name string) (*model.Role, error)
- func (r *RoleService) FindByUserId(userId *string) ([]*model.Role, error)
- func (r *RoleService) List(first *int32, after *string) ([]*model.Role, error)
- type UserService
- func (u *UserService) ComparePassword(userCredentials *model.UserCredentials) (*model.User, error)
- func (u *UserService) Count() (int, error)
- func (u *UserService) CreateUser(user *model.User) (*model.User, error)
- func (u *UserService) FindByEmail(email string) (*model.User, error)
- func (u *UserService) List(first *int32, after *string) ([]*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeCursor ¶
func EncodeCursor ¶
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService(config *context.Config, log *logging.Logger) *AuthService
func (*AuthService) ValidateJWT ¶
func (a *AuthService) ValidateJWT(tokenString *string) (*jwt.Token, error)
type BrokerService ¶ added in v0.1.2
type BrokerService struct {
// contains filtered or unexported fields
}
func NewBrokerService ¶ added in v0.1.2
func NewBrokerService(config *gcontext.Config, log *logging.Logger) *BrokerService
func (*BrokerService) CreateJob ¶ added in v0.1.2
func (b *BrokerService) CreateJob(serviceName string, moduleID string) error
TODO: CreateJob is essential for any UI elements to update from interactions
func (*BrokerService) GetModule ¶ added in v0.1.2
func (b *BrokerService) GetModule(serviceName string, moduleID string) (*model.ProtoModule, error)
GetModule : Sends a GRPC request to the broker for all the properties of the Module
func (*BrokerService) GetModuleConfiguration ¶ added in v0.1.2
func (b *BrokerService) GetModuleConfiguration(serviceName string, moduleID string) (*model.Configuration, error)
func (*BrokerService) GetModuleStatus ¶ added in v0.1.2
func (b *BrokerService) GetModuleStatus(serviceName string, moduleID string) (*model.ProtoStatus, error)
GetModuleStatus : Sends a GRPC request to the broker and expects a response that matches the ProtoStatus model
type ConfigureService ¶
type ConfigureService struct {
// contains filtered or unexported fields
}
func NewConfigureService ¶
func NewConfigureService(client pb.ConfigureEndpointClient, log *logging.Logger) *ConfigureService
func (*ConfigureService) Count ¶
func (c *ConfigureService) Count() (int, error)
func (*ConfigureService) FindById ¶
func (c *ConfigureService) FindById(confId string) (*model.Configuration, error)
func (*ConfigureService) List ¶
func (c *ConfigureService) List(first *int32, after *string) ([]*model.Configuration, error)
type RoleService ¶
type RoleService struct {
// contains filtered or unexported fields
}
func NewRoleService ¶
func NewRoleService(db *sqlx.DB, log *logging.Logger) *RoleService
func (*RoleService) Count ¶
func (r *RoleService) Count() (int, error)
func (*RoleService) CreateRole ¶
func (*RoleService) FindByName ¶
func (r *RoleService) FindByName(name string) (*model.Role, error)
func (*RoleService) FindByUserId ¶
func (r *RoleService) FindByUserId(userId *string) ([]*model.Role, error)
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(db *sqlx.DB, roleService *RoleService, log *logging.Logger) *UserService
func (*UserService) ComparePassword ¶
func (u *UserService) ComparePassword(userCredentials *model.UserCredentials) (*model.User, error)
func (*UserService) Count ¶
func (u *UserService) Count() (int, error)
func (*UserService) CreateUser ¶
func (*UserService) FindByEmail ¶
func (u *UserService) FindByEmail(email string) (*model.User, error)
Click to show internal directories.
Click to hide internal directories.