func (o Options) Verify() error {
	if o.Mode != ModeBoth &&
		o.Mode != ModeRelay &&
		o.Mode != ModeTransit {
		return ErrOptionsMode
	}

	if o.Relay.CleaningInterval > o.Relay.ChannelExpiration {
		return ErrOptionsCleaning
	}

	return o.Logging.Verify()
}
//Verify checks the Options fields for validity.
//Returns an error if a problem is incountered
Verify checks the Options fields for validity.
Returns an error if a problem is incountered
// Verify checks the Options fields for validity . // Returns an error if a problem is incountered
func (o Options) Verify() error {
	if o.Mode != ModeBoth &&
		o.Mode != ModeRelay &&
		o.Mode != ModeTransit {
		return ErrOptionsMode
	}
	if o.Relay.CleaningInterval > o.Relay.ChannelExpiration {
		return ErrOptionsCleaning
	}
	return o.Logging.Verify()
}
func ( o Options ) Verify ( ) error { if o . Mode != ModeBoth && o . Mode != ModeRelay && o . Mode != ModeTransit { return ErrOptionsMode } if o . Relay . CleaningInterval > o . Relay . ChannelExpiration { return ErrOptionsCleaning } return o . Logging . Verify ( ) }
Verify checks the Options fields for validity.
Verify checks the Options fields for validity .