api

package
v0.0.0-...-3e81ccd Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeLayout = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func AuthHandler

AuthHandler

func IsDefaultPath

func IsDefaultPath(path string) bool

IsDefaultPath

func Skipper

func Skipper(c echo.Context) bool

Skipper

func ToPubKeysResponse

func ToPubKeysResponse(pks []domain.UserPubKey) *openapi.PubKeysResponse

func ToTimeline

func ToTimeline(
	pks []domain.UserPubKey,
	posts []domain.Post,
	users []domain.User,
) *openapi.UsersTimelineResponse

func ToUser

func ToUser(user domain.User) *openapi.User

func ToUsersResponse

func ToUsersResponse(users []domain.User) *openapi.UsersResponse

Types

type SimpleHandler

type SimpleHandler struct {
}

func (*SimpleHandler) GetV1TimelinesHome

func (h *SimpleHandler) GetV1TimelinesHome(c echo.Context, params openapi.GetV1TimelinesHomeParams) error

GetV1TimelinesHome

func (*SimpleHandler) GetV1TimelinesUser

func (h *SimpleHandler) GetV1TimelinesUser(c echo.Context, params openapi.GetV1TimelinesUserParams) error

GetV1TimelinesUser

func (*SimpleHandler) GetV1Users

func (h *SimpleHandler) GetV1Users(c echo.Context, params openapi.GetV1UsersParams) error

GetV1Users GET Users Profiles

func (*SimpleHandler) GetV1UsersFollowers

func (h *SimpleHandler) GetV1UsersFollowers(c echo.Context, params openapi.GetV1UsersFollowersParams) error

GetV1UsersFollowers Get user's followers

func (*SimpleHandler) GetV1UsersFollowersPubkeys

func (h *SimpleHandler) GetV1UsersFollowersPubkeys(c echo.Context, params openapi.GetV1UsersFollowersPubkeysParams) error

GetV1UsersFollowersPubkeys Get user's follower's public keys

func (*SimpleHandler) GetV1UsersFollowing

func (h *SimpleHandler) GetV1UsersFollowing(c echo.Context, params openapi.GetV1UsersFollowingParams) error

GetV1UsersFollowing Get following users

func (*SimpleHandler) GetV1UsersFollowingPubkeys

func (h *SimpleHandler) GetV1UsersFollowingPubkeys(c echo.Context, params openapi.GetV1UsersFollowingPubkeysParams) error

GetV1UsersFollowingPubkeys Get User's following public keys

func (*SimpleHandler) PostV1Posts

func (h *SimpleHandler) PostV1Posts(c echo.Context) error

PostV1Posts

func (*SimpleHandler) PostV1Users

func (h *SimpleHandler) PostV1Users(c echo.Context) error

PostV1Users GET User Profiles

Jump to

Keyboard shortcuts

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