matterbridge/vendor/github.com/status-im/status-go/protocol/requests/fetch_messages.go
Michal Iskierko 6d31343205 feat: Waku v2 bridge
Issue #12610
2024-02-22 17:07:59 +01:00

20 lines
285 B
Go

package requests
import (
"errors"
)
var ErrFetchMessagesInvalidID = errors.New("fetch-messages: invalid id")
type FetchMessages struct {
ID string `json:"id"`
}
func (c *FetchMessages) Validate() error {
if len(c.ID) == 0 {
return ErrFetchMessagesInvalidID
}
return nil
}