vxservices

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 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 SandboxUser

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

type UsersV0

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

UsersV0 responds to requests about appspace users for the appspace

func (*UsersV0) HandleMessage

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

HandleMessage processes a command and payload from the reverse listener

type V0Services

type V0Services struct {
	UsersModel domain.ReverseServiceI
	AppspaceDB domain.ReverseServiceI
}

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

func (*V0Services) HandleMessage

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

HandleMessage passes the message along to the relevant service

type VXServices

type VXServices struct {
	AppspaceUsersV0 interface {
		Get(appspaceID domain.AppspaceID, proxyID domain.ProxyID) (domain.AppspaceUser, error)
		GetAll(appspaceID domain.AppspaceID) ([]domain.AppspaceUser, error)
	}
	V0AppspaceDB serviceGetter
}

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

func (*VXServices) Get

func (x *VXServices) Get(appspace *domain.Appspace, api domain.APIVersion) (service domain.ReverseServiceI)

Get returns a reverse service for the appspace

Jump to

Keyboard shortcuts

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