Documentation
¶
Index ¶
- func ConvertToPbAppServeApp(asa model.AppServeApp) *pb.AppServeApp
- func ConvertToPbAppServeAppTask(task model.AppServeAppTask) *pb.AppServeAppTask
- type AsaAccessor
- func (x *AsaAccessor) Create(contractId string, app *pb.AppServeApp, task *pb.AppServeAppTask) (uuid.UUID, uuid.UUID, error)
- func (x *AsaAccessor) GetAppServeApp(id uuid.UUID) (*pb.AppServeAppCombined, error)
- func (x *AsaAccessor) GetAppServeApps(contractId string, showAll bool) ([]*pb.AppServeApp, error)
- func (x *AsaAccessor) Update(appServeAppId uuid.UUID, task *pb.AppServeAppTask) (uuid.UUID, error)
- func (x *AsaAccessor) UpdateEndpoint(id uuid.UUID, taskId uuid.UUID, endpoint string, previewEndpoint string, ...) error
- func (x *AsaAccessor) UpdateStatus(taskId uuid.UUID, status string, output string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToPbAppServeApp ¶
func ConvertToPbAppServeApp(asa model.AppServeApp) *pb.AppServeApp
func ConvertToPbAppServeAppTask ¶
func ConvertToPbAppServeAppTask(task model.AppServeAppTask) *pb.AppServeAppTask
Types ¶
type AsaAccessor ¶
type AsaAccessor struct {
// contains filtered or unexported fields
}
Accessor is an accessor to postgreSQL to query data.
func (*AsaAccessor) Create ¶
func (x *AsaAccessor) Create(contractId string, app *pb.AppServeApp, task *pb.AppServeAppTask) (uuid.UUID, uuid.UUID, error)
Create creates a new appServeApp in database.
func (*AsaAccessor) GetAppServeApp ¶
func (x *AsaAccessor) GetAppServeApp(id uuid.UUID) (*pb.AppServeAppCombined, error)
func (*AsaAccessor) GetAppServeApps ¶
func (x *AsaAccessor) GetAppServeApps(contractId string, showAll bool) ([]*pb.AppServeApp, error)
func (*AsaAccessor) Update ¶
func (x *AsaAccessor) Update(appServeAppId uuid.UUID, task *pb.AppServeAppTask) (uuid.UUID, error)
Update creates new appServeApp Task for existing appServeApp.
func (*AsaAccessor) UpdateEndpoint ¶
func (*AsaAccessor) UpdateStatus ¶
Click to show internal directories.
Click to hide internal directories.