status-go/mobile/requests/input_connection_string_for...

17 lines
477 B
Go
Raw Permalink Normal View History

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)
}