authn

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: Apache-2.0 Imports: 18 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	SubCmd   string `json:"sub_cmd"`
	UserName string `json:"user_name"`
	Url      string `json:"url,omitempty"`
	AAGUID   string `json:"aaguid,omitempty"`
	Key      string `json:"key,omitempty"`
	Counter  uint64 `json:"counter,omitempty"`
	Token    string `json:"token,omitempty"`
}

func (*Cmd) Exec

func (ac *Cmd) Exec(_ io.Writer) (r Result, err error)

func (Cmd) TryReadJSON

func (ac Cmd) TryReadJSON(r io.Reader) Cmd

func (*Cmd) Validate

func (ac *Cmd) Validate() (err error)

type Result

type Result struct {
	SubCmd string `json:"sub_cmd,omitempty"`
	Token  string `json:"token"`
}

func (Result) String

func (r Result) String() string

Jump to

Keyboard shortcuts

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