mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
735a422230
* chore_: create v2 endpoints for status.go to use status-backend server * feat_: support using http for media server (#6060)
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)
|
|
}
|