func Deactivate(
	ctx context.Context,
	be *backend.Backend,
	clientID []byte,
) (*db.ClientInfo, error) {
	return be.DB.DeactivateClient(ctx, db.IDFromBytes(clientID))
}
Deactivate deactivates the given client.
package clients
import (
	"context"
	"errors"
	"github.com/yorkie-team/yorkie/pkg/document/change"
	"github.com/yorkie-team/yorkie/yorkie/backend"
	"github.com/yorkie-team/yorkie/yorkie/backend/db"
)
var (
	ErrInvalidClientKey = errors.New("invalid client key")
	ErrInvalidClientID = errors.New("invalid client id")
)
func Activate(
	ctx context.Context,
	be *backend.Backend,
	clientKey string,
) (*db.ClientInfo, error) {
	return be.DB.ActivateClient(ctx, clientKey)
}