18 lines
326 B
Go
18 lines
326 B
Go
package configuration
|
|||
|
|
|
||
|
|
import "fmt"
|
||
|
|
|
||
|
|
// Outputs is an outputs configuration.
|
||
|
|
type Outputs struct {
|
||
|
|
NNTP *NNTP `json:"nntp"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// Validate validates configuration.
|
||
|
|
func (o *Outputs) Validate() error {
|
||
|
|
if err := o.NNTP.Validate(); err != nil {
|
||
|
|
return fmt.Errorf("validate outputs configuration: %w", err)
|
||
|
|
}
|
||
|
|
|
||
|
|
return nil
|
||
|
|
}
|