drpcsignal

package
v0.0.4 Latest Latest
Warning

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

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

README

package drpcsignal

import "storj.io/drpc/drpcsignal"

package drpcsignal holds a helper type to signal errors.

Usage

type Signal
type Signal struct {
}
func New
func New() Signal
func (*Signal) Err
func (s *Signal) Err() error
func (*Signal) Get
func (s *Signal) Get() (error, bool)
func (*Signal) IsSet
func (s *Signal) IsSet() bool
func (*Signal) Set
func (s *Signal) Set(err error) (ok bool)
func (*Signal) Signal
func (s *Signal) Signal() chan struct{}

Documentation

Overview

package drpcsignal holds a helper type to signal errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signal

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

func New

func New() Signal

func (*Signal) Err

func (s *Signal) Err() error

func (*Signal) Get

func (s *Signal) Get() (error, bool)

func (*Signal) IsSet

func (s *Signal) IsSet() bool

func (*Signal) Set

func (s *Signal) Set(err error) (ok bool)

func (*Signal) Signal

func (s *Signal) Signal() chan struct{}

Jump to

Keyboard shortcuts

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