session

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 2 Imported by: 1

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