Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend implements the Backender interface. It fetches and constructs SEO page data responses from an external backend.
func NewBackend ¶
NewBackend creates a new instance of Backend.
func (*Backend) RevalidatorMaker ¶
func (s *Backend) RevalidatorMaker() func( path []byte, query []byte, queryHeaders [][2][]byte, ) ( status int, headers [][2][]byte, body []byte, releaseFn func(), err error, )
RevalidatorMaker builds a new revalidator for model.Response by catching a request into closure for be able to call backend later.
type Backender ¶
type Backender interface {
Fetch(
path []byte, query []byte, queryHeaders [][2][]byte,
) (
status int, headers [][2][]byte, body []byte, releaseFn func(), err error,
)
RevalidatorMaker() func(
path []byte, query []byte, queryHeaders [][2][]byte,
) (
status int, headers [][2][]byte, body []byte, releaseFn func(), err error,
)
}
Backender defines the interface for a repository that provides SEO page data.
Click to show internal directories.
Click to hide internal directories.