social_graph_client

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const SERVICE_NAME = "social-graph-manager"

Variables

This section is empty.

Functions

func NewClient

func NewClient(baseURL string) (om.SocialGraphManager, error)

Types

type EndpointSet

type EndpointSet struct {
	FollowEndpoint       endpoint.Endpoint
	UnfollowEndpoint     endpoint.Endpoint
	GetFollowingEndpoint endpoint.Endpoint
	GetFollowersEndpoint endpoint.Endpoint
}

func (EndpointSet) Follow

func (s EndpointSet) Follow(followed string, follower string) (err error)

func (EndpointSet) GetFollowers

func (s EndpointSet) GetFollowers(username string) (following map[string]bool, err error)

func (EndpointSet) GetFollowing

func (s EndpointSet) GetFollowing(username string) (following map[string]bool, err error)

func (EndpointSet) Unfollow

func (s EndpointSet) Unfollow(followed string, follower string) (err error)

type FollowRequest

type FollowRequest struct {
	Followed string
	Follower string
}

type GetFollowersResponse

type GetFollowersResponse struct {
	Followers map[string]bool
	Err       string
}

type SimpleResponse

type SimpleResponse struct {
	Err string
}

type UnfollowRequest

type UnfollowRequest struct {
	Followed string
	Follower string
}

Jump to

Keyboard shortcuts

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