17 lines
477 B
Go
17 lines
477 B
Go
|
package requests
|
||
|
|
||
|
import (
|
||
|
"gopkg.in/go-playground/validator.v9"
|
||
|
|
||
|
"github.com/status-im/status-go/server/pairing"
|
||
|
)
|
||
|
|
||
|
type InputConnectionStringForBootstrapping struct {
|
||
|
ConnectionString string `json:"connectionString" validate:"required"`
|
||
|
ReceiverClientConfig *pairing.ReceiverClientConfig `json:"receiverClientConfig" validate:"required"`
|
||
|
}
|
||
|
|
||
|
func (r *InputConnectionStringForBootstrapping) Validate() error {
|
||
|
return validator.New().Struct(r)
|
||
|
}
|