controllers

package
Version: v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerCommon

type ControllerCommon struct {
	// contains filtered or unexported fields
}

func NewControllerCommon

func NewControllerCommon(adaptors *adaptors.Adaptors,
	stream *stream.StreamService,
	endpoint endpoint.IEndpoint) *ControllerCommon

func (*ControllerCommon) Err

func (c *ControllerCommon) Err(client *stream.Client, message stream.Message, err error)

func (*ControllerCommon) GetMobile

func (c *ControllerCommon) GetMobile(client *stream.Client) (mobile *m.Mobile, err error)

func (*ControllerCommon) GetServer

func (c *ControllerCommon) GetServer(client *stream.Client) (server *m.Server, err error)

type ControllerMobile

type ControllerMobile struct {
	*ControllerCommon
}

func NewControllerMobile

func NewControllerMobile(common *ControllerCommon,
	stream *stream.StreamService) *ControllerMobile

func (*ControllerMobile) ListMobileTokens

func (c *ControllerMobile) ListMobileTokens(client *stream.Client, message stream.Message)

func (*ControllerMobile) RegisterMobile

func (c *ControllerMobile) RegisterMobile(client *stream.Client, message stream.Message)

func (*ControllerMobile) RemoveMobileToken

func (c *ControllerMobile) RemoveMobileToken(client *stream.Client, message stream.Message)

type ControllerServer

type ControllerServer struct {
	*ControllerCommon
}

func NewControllerServer

func NewControllerServer(common *ControllerCommon,
	stream *stream.StreamService) *ControllerServer

func (*ControllerServer) RegisterServer

func (c *ControllerServer) RegisterServer(client *stream.Client, message stream.Message)

func (*ControllerServer) RemoveServerToken

func (c *ControllerServer) RemoveServerToken(client *stream.Client, message stream.Message)

type Controllers

type Controllers struct {
	Server *ControllerServer
	Mobile *ControllerMobile
}

func NewControllers

func NewControllers(adaptors *adaptors.Adaptors,
	stream *stream.StreamService,
	endpoint endpoint.IEndpoint) *Controllers

Jump to

Keyboard shortcuts

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