sshpoke/internal/server/driver/plugin/params.go

14 lines
242 B
Go
Raw Normal View History

2023-11-17 20:39:00 +03:00
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)
}