api

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	LoginURL(option *LoginOption) string
	LogoutURL(option *LogoutOption) string
	ValidateURL(option ValidateOption) string
	ProxyValidateURL(option ValidateOption) string

	GetParser(contentType string) (parser.Parser, bool)
	SetParser(contentType string, parser parser.Parser)
}

func NewAPIv2

func NewAPIv2(serverURL, serviceURL string) API

type LoginOption

type LoginOption struct {
	// will overwrite service url
	CallbackPath string

	Renew bool

	Gateway bool
}

type LogoutOption

type LogoutOption struct {
	// will overwrite service url
	CallbackPath string
}

type ValidateOption

type ValidateOption struct {
	Path   string
	Ticket string
	Renew  bool
	PgtURL string
	Format string
}

Jump to

Keyboard shortcuts

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