mycontentapiclient

package
v0.0.2-0...-cc4a623 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New[T mycontent.Data](
	httpc *http.Client,
	endpoint string,
	refsParam []string,
) *client[T]

func NewAttachment

func NewAttachment(
	httpc *http.Client,
	endpoint string,
	refsParam []string,
) *attachmentClient

func Sync

func Sync[T mycontent.Data](client *client[T], namespace string, data []T, optConfig OptionalConfig) *sync[T]

Types

type ExtractFiles

type ExtractFiles[T mycontent.Data] func(t []T) []**entity.File

type ExtractImages

type ExtractImages[T mycontent.Data] func(t []T) []ImageContext[T]

type ExtractOtherEntities

type ExtractOtherEntities[T any] func(t []T) []mycontent.Data

type ImageContext

type ImageContext[T mycontent.Data] struct {
	Base  T
	Image **entity.Image
}

type OptionalConfig

type OptionalConfig struct {
	AuthorizationToken string
}

type SyncStat

type SyncStat struct {
	LocalCount      int
	LocalCountError int
	RemoteCount     int
	Intersect       int
	ToSync          int
	AlreadyInSync   int
	ToAdd           int
	ToDelete        int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL