wakeup

package
v0.0.0-...-efa0d0c Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2016 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package wakeup defines interfaces for waking up remote services, likely running on mobile devices (e.g., Android, iOS).

Index

Constants

This section is empty.

Variables

View Source
var WakeUpDesc rpc.InterfaceDesc = descWakeUp

WakeUpDesc describes the WakeUp interface.

Functions

This section is empty.

Types

type WakeUpClientMethods

type WakeUpClientMethods interface {
	// Register returns a rooted name where the service should mount itself
	// in order to be woken up using the provided wakeup token.
	Register(_ *context.T, token string, _ ...rpc.CallOpt) (string, error)
}

WakeUpClientMethods is the client interface containing WakeUp methods.

WakeUp interface defines methods for services that wish to be woken up remotely.

type WakeUpClientStub

type WakeUpClientStub interface {
	WakeUpClientMethods
	rpc.UniversalServiceMethods
}

WakeUpClientStub adds universal methods to WakeUpClientMethods.

func WakeUpClient

func WakeUpClient(name string) WakeUpClientStub

WakeUpClient returns a client stub for WakeUp.

type WakeUpServerMethods

type WakeUpServerMethods interface {
	// Register returns a rooted name where the service should mount itself
	// in order to be woken up using the provided wakeup token.
	Register(_ *context.T, _ rpc.ServerCall, token string) (string, error)
}

WakeUpServerMethods is the interface a server writer implements for WakeUp.

WakeUp interface defines methods for services that wish to be woken up remotely.

type WakeUpServerStub

type WakeUpServerStub interface {
	WakeUpServerStubMethods
	// Describe the WakeUp interfaces.
	Describe__() []rpc.InterfaceDesc
}

WakeUpServerStub adds universal methods to WakeUpServerStubMethods.

func WakeUpServer

func WakeUpServer(impl WakeUpServerMethods) WakeUpServerStub

WakeUpServer returns a server stub for WakeUp. It converts an implementation of WakeUpServerMethods into an object that may be used by rpc.Server.

type WakeUpServerStubMethods

type WakeUpServerStubMethods WakeUpServerMethods

WakeUpServerStubMethods is the server interface containing WakeUp methods, as expected by rpc.Server. There is no difference between this interface and WakeUpServerMethods since there are no streaming methods.

Jump to

Keyboard shortcuts

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