nearsocial

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWorker

func NewWorker(config *config.Module) (engine.Worker, error)

NewWorker returns a new near social worker.

Types

type Config

type Config struct {
}

type FunctionCallArgs

type FunctionCallArgs struct {
	Data map[string]UserContent `json:"data"`
}

type HashtagData

type HashtagData struct {
	Key   string       `json:"key"`
	Value HashtagValue `json:"value"`
}

type HashtagValue

type HashtagValue struct {
	Type string `json:"type"`
	Path string `json:"path"`
}

type IndexData

type IndexData struct {
	Key   IndexKey   `json:"key"`
	Value IndexValue `json:"value"`
}

type IndexKey

type IndexKey struct {
	Type        string `json:"type"`
	Path        string `json:"path,omitempty"`
	BlockHeight int64  `json:"blockHeight,omitempty"`
}

type IndexValue

type IndexValue struct {
	Type string `json:"type"`
	Path string `json:"path,omitempty"`
	Item *Item  `json:"item,omitempty"`
}

type Item

type Item struct {
	Type        string `json:"type"`
	Path        string `json:"path"`
	BlockHeight int64  `json:"blockHeight,omitempty"`
}

type PostData

type PostData struct {
	Type string `json:"type"`
	Text string `json:"text,omitempty"`
	Item *Item  `json:"item,omitempty"`
}

type RepostIndexData

type RepostIndexData []struct {
	Key   interface{} `json:"key"`
	Value struct {
		Type string `json:"type"`
		Item *struct {
			Type        string `json:"type"`
			Path        string `json:"path"`
			BlockHeight int64  `json:"blockHeight"`
		} `json:"item,omitempty"`
	} `json:"value"`
}

type UserContent

type UserContent struct {
	Index map[string]string `json:"index,omitempty"`
	Post  map[string]string `json:"post,omitempty"`
}

Jump to

Keyboard shortcuts

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