Initial commit.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user