client

package
v0.0.0-...-b2761b6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2014 License: GPL-3.0, GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

The client package implements the Ubuntu Push Notifications client-side daemon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is the Ubuntu Push Notifications client-side daemon.

func (*Client) Loop

func (client *Client) Loop()

Loop calls doLoop with the "real" handlers

func (*Client) Start

func (client *Client) Start(configPath string) error

Start calls doStart with the "real" starters

type ClientConfig

type ClientConfig struct {
	connectivity.ConnectivityConfig // q.v.
	// A reasonably larg timeout for receive/answer pairs
	ExchangeTimeout config.ConfigTimeDuration `json:"exchange_timeout"`
	// The server to connect to
	Addr config.ConfigHostPort
	// The PEM-encoded server certificate
	CertPEMFile string `json:"cert_pem_file"`
	// The logging level (one of "debug", "info", "error")
	LogLevel string `json:"log_level"`
}

ClientConfig holds the client configuration

Directories

Path Synopsis
The client/session package handles the minutiae of interacting with the Ubuntu Push Notifications server.
The client/session package handles the minutiae of interacting with the Ubuntu Push Notifications server.
levelmap
levelmap holds an implementation of the LevelMap that the client session uses to keep track of what messages it has seen.
levelmap holds an implementation of the LevelMap that the client session uses to keep track of what messages it has seen.

Jump to

Keyboard shortcuts

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