Documentation
¶
Index ¶
- Variables
- func Delete(dp *depot.Depot, id uint64) error
- type CreatePayload
- type GoogleSearchConsoleSite
- type Site
- func Create(dp *depot.Depot, organizationId uint64, payload *CreatePayload) (*Site, error)
- func List(dp *depot.Depot, organizationId uint64) ([]*Site, error)
- func Read(dp *depot.Depot, id uint64) (*Site, error)
- func ReadPublic(dp *depot.Depot, domain string) (*Site, error)
- func Update(dp *depot.Depot, id uint64, payload *UpdatePayload) (*Site, error)
- type UpdatePayload
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidGoogleOauthToken = errors.New("invalid Google oauth token")
)
Functions ¶
Types ¶
type CreatePayload ¶
type CreatePayload struct { Domain *string `json:"domain"` IsPublic *bool `json:"isPublic"` Name *string `json:"name"` SafeQueryParameters pq.StringArray `json:"safeQueryParameters"` }
type GoogleSearchConsoleSite ¶
type GoogleSearchConsoleSite struct {
SiteUrl string `json:"siteUrl"`
}
func ListGoogleSearchConsoleSites ¶
func ListGoogleSearchConsoleSites(dp *depot.Depot, organizationId uint64) ([]*GoogleSearchConsoleSite, error)
type Site ¶
type Site struct { CreatedAt time.Time `json:"createdAt"` Domain string `json:"domain"` GoogleSearchConsoleSiteUrl *string `json:"googleSearchConsoleSiteUrl"` HasEvents bool `json:"hasEvents"` Id uint64 `json:"id"` IsPublic bool `json:"isPublic"` Name string `json:"name"` SafeQueryParameters pq.StringArray `json:"safeQueryParameters" gorm:"type:text[]"` UpdatedAt time.Time `json:"updatedAt"` }
type UpdatePayload ¶
Click to show internal directories.
Click to hide internal directories.