package
2.1.0+incompatible
Repository: https://github.com/88250/pipe.git
Documentation: pkg.go.dev

# Functions

CommunityAPI is a reverse proxy for https://ld246.com.
CurrentMillisecond returns the current time in millisecond.
GetPage returns paging parameter.
GetRemoteAddr returns remote address of the context.
GetSession returns session of the specified context.
HacPaiUserInfo returns HacPai community user info specified by the given access token.
ImageSize returns image URL of Qiniu image processing style with the specified width and height.
IsBot checks the specified user-agent is a bot.
IsDomain checks the specified string is domain name.
IsIP checks the specified string is IP.
IsReservedPath checks the specified path is a reserved path or not.
Markdown process the specified markdown text to HTML.
NewPagination creates a new pagination with the specified current page num, page size, window size and record count.
RandImage returns an image URL randomly for article thumbnail.
RandImages returns random image URLs.
Uploaded checks whether the specified URL has uploaded.

# Constants

unauthenticated request.
general error.
OK.
CommunityFileURL is the community file service URL.
CommunityURL is the URL of LianDi community.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.
Path prefixes.

# Structs

MarkdownResult represents markdown result.
Pagination represents pagination info.
SessionData represents the session.