14 lines
242 B
Go
14 lines
242 B
Go
package plugin
|
|
|
|
import (
|
|
"github.com/Neur0toxine/sshpoke/internal/server/driver/util"
|
|
)
|
|
|
|
type Params struct {
|
|
Token string `mapstructure:"token" validate:"required"`
|
|
}
|
|
|
|
func (p *Params) Validate() error {
|
|
return util.Validator.Struct(p)
|
|
}
|