Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientInfo ¶
type Handler ¶
type Handler interface {
PushHandler
PullHandler
}
type Option ¶
type Option func(r *Replicache) error
type PullHandler ¶
type PullHandler interface {
HandlePull(ctx context.Context, pr PullRequest) (any, error)
}
type PullRequest ¶
type PullRequest struct {
ClientInfo
Tx *sql.Tx
}
type PushHandler ¶
type PushHandler interface {
HandlePush(ctx context.Context, pr PushRequest) error
}
type PushRequest ¶
type PushRequest struct {
ClientInfo
Mutations []Mutation
Tx *sql.Tx
}
type Replicache ¶
type Replicache struct {
// contains filtered or unexported fields
}
func NewReplicache ¶
func (*Replicache) PushHandler ¶
func (rep *Replicache) PushHandler() http.Handler
Click to show internal directories.
Click to hide internal directories.