github.com/status-im/status-go@v1.1.0/protocol/requests/clear_history.go (about) 1 package requests 2 3 import ( 4 "errors" 5 ) 6 7 var ErrClearHistoryInvalidID = errors.New("clear-history: invalid id") 8 9 type ClearHistory struct { 10 ID string `json:"id"` 11 } 12 13 func (c *ClearHistory) Validate() error { 14 if len(c.ID) == 0 { 15 return ErrClearHistoryInvalidID 16 } 17 18 return nil 19 }