github.com/status-im/status-go@v1.1.0/protocol/requests/enable_installation_and_pair.go (about) 1 package requests 2 3 import ( 4 "errors" 5 ) 6 7 var ErrEnableInstallationAndPairInvalidID = errors.New("enable installation and pair: invalid installation id") 8 9 type EnableInstallationAndPair struct { 10 InstallationID string `json:"installationId"` 11 } 12 13 func (j *EnableInstallationAndPair) Validate() error { 14 if len(j.InstallationID) == 0 { 15 return ErrEnableInstallationAndPairInvalidID 16 } 17 18 return nil 19 }