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: 4 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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