mirror of
https://github.com/volatiletech/authboss.git
synced 2025-03-19 21:28:00 +02:00
16 lines
430 B
Go
16 lines
430 B
Go
package authboss
|
|
|
|
import "context"
|
|
|
|
// RenderLoader is an object that understands how to load display templates.
|
|
// It's possible that Init() is a no-op if the responses are JSON or anything
|
|
// else.
|
|
type RenderLoader interface {
|
|
Init(names string) (Renderer, error)
|
|
}
|
|
|
|
// Renderer is a type that can render a given template with some data.
|
|
type Renderer interface {
|
|
Render(ctx context.Context, data HTMLData) ([]byte, error)
|
|
}
|