anchor

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(domain string, b Builder)

Types

type AnchorApi

type AnchorApi interface {
	ParseAnchorInfo(ctx context.Context) (*AnchorInfo, error)
}

func New

func New(sUrl string) (anchorApi AnchorApi, err error)

type AnchorInfo

type AnchorInfo struct {
	Platform       string `json:"platform"`
	AnchorName     string `json:"anchor_name"`
	UniqueId       string `json:"unique_id"`
	Signature      string `json:"signature"`
	FollowerCount  int    `json:"follower_count"`
	FollowingCount int    `json:"following_count"`
	LikeCount      int    `json:"like_count"`
	VideoCount     int    `json:"video_count"`
}

type Builder

type Builder interface {
	Build(*url.URL) (AnchorApi, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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