handlers

package
v0.0.0-...-d055340 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DidsResponse

type DidsResponse struct {
	DIDs []string `json:"dids"`
}

type Follow

type Follow struct {
	ActorDid  string `json:"actor_did"`
	TargetDid string `json:"target_did"`
}

type Handlers

type Handlers struct {
	// contains filtered or unexported fields
}

func NewHandlers

func NewHandlers(graph *graphd.Graph) *Handlers

func (*Handlers) GetAreMoots

func (h *Handlers) GetAreMoots(c echo.Context) error

func (*Handlers) GetDoesFollow

func (h *Handlers) GetDoesFollow(c echo.Context) error

func (*Handlers) GetFollowers

func (h *Handlers) GetFollowers(c echo.Context) error

func (*Handlers) GetFollowersNotFollowing

func (h *Handlers) GetFollowersNotFollowing(c echo.Context) error

func (*Handlers) GetFollowing

func (h *Handlers) GetFollowing(c echo.Context) error

func (*Handlers) GetFollowsFollowing

func (h *Handlers) GetFollowsFollowing(c echo.Context) error

func (*Handlers) GetIntersectFollowers

func (h *Handlers) GetIntersectFollowers(c echo.Context) error

func (*Handlers) GetIntersectFollowing

func (h *Handlers) GetIntersectFollowing(c echo.Context) error

func (*Handlers) GetMoots

func (h *Handlers) GetMoots(c echo.Context) error

func (*Handlers) Health

func (h *Handlers) Health(c echo.Context) error

func (*Handlers) PostFollow

func (h *Handlers) PostFollow(c echo.Context) error

func (*Handlers) PostFollows

func (h *Handlers) PostFollows(c echo.Context) error

func (*Handlers) PostUnfollow

func (h *Handlers) PostUnfollow(c echo.Context) error

func (*Handlers) PostUnfollows

func (h *Handlers) PostUnfollows(c echo.Context) error

type HealthStatus

type HealthStatus struct {
	Status  string `json:"status"`
	Version string `json:"version"`
	Message string `json:"msg,omitempty"`
}

type PostFollowsBody

type PostFollowsBody struct {
	Follows []Follow `json:"follows"`
}

type PostUnfollowsBody

type PostUnfollowsBody struct {
	Unfollows []Unfollow `json:"unfollows"`
}

type Unfollow

type Unfollow struct {
	ActorDid  string `json:"actor_did"`
	TargetDid string `json:"target_did"`
}

Jump to

Keyboard shortcuts

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