io

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2016 License: BSD-3-Clause Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserService

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

UserService is an implementation of multipass.UserService which writes all method input to the writer element.

func NewUserService

func NewUserService(w io.Writer) *UserService

NewUserService returns a new UserService instance with the given io.Writer as the writer element.

func (*UserService) Authorized

func (s *UserService) Authorized(handle, method, rawurl string) bool

Authorized implements the multipass.UserService.Authorized method. It writes the given arguments to the UserService's writer element followed by a newline character.

func (*UserService) Close

func (s *UserService) Close() error

Close implements the multipass.UserService.Close method. It always returns nil.

func (*UserService) Listed

func (s *UserService) Listed(handle string) bool

Listed implements the multipass.UserService.Listed method. It writes the given arguments to the UserService's writer element followed by a newline character. It returns true when the length of the given handle is more than 0.

func (*UserService) Notify

func (s *UserService) Notify(handle, loginurl string) error

Notify implements the multipass.UserService.Notify method. It writes the given arguments to the UserService's writer element followed by a newline character.

Jump to

Keyboard shortcuts

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