sandboxservices

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppspaceService

type AppspaceService struct {
	Users domain.ReverseServiceI
}

AppspaceService is a twine handler for reverse services with API version 0

func (*AppspaceService) HandleMessage

func (s *AppspaceService) HandleMessage(message twine.ReceivedMessageI)

HandleMessage passes the message along to the relevant service

type SandboxUser

type SandboxUser struct {
	ProxyID     domain.ProxyID `json:"proxyId"`
	DisplayName string         `json:"displayName"`
	Avatar      string         `json:"avatar"`
}

type ServiceMaker

type ServiceMaker struct {
	AppspaceUserModel interface {
		Get(appspaceID domain.AppspaceID, proxyID domain.ProxyID) (domain.AppspaceUser, error)
		GetAll(appspaceID domain.AppspaceID) ([]domain.AppspaceUser, error)
	}
}

ServiceMaker holds the structs necessary to create a service for any api version

func (*ServiceMaker) Get

func (x *ServiceMaker) Get(appspace *domain.Appspace) (service domain.ReverseServiceI)

Get returns a reverse service for the appspace

type UsersService

type UsersService struct {
	AppspaceUserModel interface {
		Get(appspaceID domain.AppspaceID, proxyID domain.ProxyID) (domain.AppspaceUser, error)
		GetAll(appspaceID domain.AppspaceID) ([]domain.AppspaceUser, error)
	}
	// contains filtered or unexported fields
}

UsersService responds to requests about appspace users for the appspace

func (*UsersService) HandleMessage

func (u *UsersService) HandleMessage(message twine.ReceivedMessageI)

HandleMessage processes a command and payload from the reverse listener

Jump to

Keyboard shortcuts

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