session

package
v0.0.0-...-da4fad4 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: Apache-2.0 Imports: 2 Imported by: 22

Documentation

Overview

Package session provides session management utility and token storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	// The session's configuration.
	Config phpipam.Config

	// The session token.
	Token Token
}

Session represents a PHPIPAM session.

func NewSession

func NewSession(configs ...phpipam.Config) *Session

NewSession creates a new session based off supplied configs. It is up to the client for each controller implementation to log in and refresh the token. This is provided in the base client.Client implementation.

type Token

type Token struct {
	// The token string.
	String string `json:"token"`
}

Token represents a PHPIPAM session token.

Jump to

Keyboard shortcuts

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