mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-26 20:17:07 -05:00
* refactored the models to be strongly typed with structs and mapstruct to decompose the dynamic parts of the JMAP payloads * externalized large JSON strings for tests into .json files under testdata/ * added a couple of fantasy Graph groupware APIs to explore further options * added k6 scripts to test those graph/me/messages APIs, with a setup program to set up users in LDAP, fill their IMAP inbox, activate them in Stalwart, cleaning things up, etc...
16 lines
327 B
Go
16 lines
327 B
Go
package jmap
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/opencloud-eu/opencloud/pkg/log"
|
|
)
|
|
|
|
type ApiClient interface {
|
|
Command(ctx context.Context, logger *log.Logger, session *Session, request Request) ([]byte, error)
|
|
}
|
|
|
|
type WellKnownClient interface {
|
|
GetWellKnown(username string, logger *log.Logger) (WellKnownResponse, error)
|
|
}
|