remoteappspacemodel

package
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteAppspaceModel

type RemoteAppspaceModel struct {
	DB *domain.DB
	// contains filtered or unexported fields
}

AppspaceModel represents the model for app spaces

func (*RemoteAppspaceModel) Create

func (m *RemoteAppspaceModel) Create(userID domain.UserID, domainName string, ownerDropID string, dropID string) error

func (*RemoteAppspaceModel) Delete

func (m *RemoteAppspaceModel) Delete(userID domain.UserID, domainName string) error

func (*RemoteAppspaceModel) Get

func (m *RemoteAppspaceModel) Get(userID domain.UserID, domainName string) (domain.RemoteAppspace, error)

Get returns the remote appspace that matches the domain it returns sql.ErrNoRows if none found

func (*RemoteAppspaceModel) GetForUser

func (m *RemoteAppspaceModel) GetForUser(userID domain.UserID) ([]domain.RemoteAppspace, error)

func (*RemoteAppspaceModel) PrepareStatements

func (m *RemoteAppspaceModel) PrepareStatements()

PrepareStatements for appspace model

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL