api

package
v0.0.0-...-7b55a8f Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UsernameField    entityField = "username"
	EmailField       entityField = "email"
	BioField         entityField = "bio"
	PictureField     entityField = "picture"
	PreferencesField entityField = "preferences"
	PushField        entityField = "push"
	AllFields        entityField = "all"
)

Variables

This section is empty.

Functions

func CreateFeedEndpoint

func CreateFeedEndpoint(svc users.Service) endpoint.Endpoint

func CreatePreferenceEndpoint

func CreatePreferenceEndpoint(svc users.Service) endpoint.Endpoint

func CreateUserEndpoint

func CreateUserEndpoint(svc users.Service) endpoint.Endpoint

func DeletePreferenceEndpoint

func DeletePreferenceEndpoint(svc users.Service) endpoint.Endpoint

func DeleteUserEndpoint

func DeleteUserEndpoint(svc users.Service) endpoint.Endpoint

func FollowEndpoint

func FollowEndpoint(svc users.Service) endpoint.Endpoint

func GetFeedEndpoint

func GetFeedEndpoint(svc users.Service) endpoint.Endpoint

func GetFollowingsEndpoint

func GetFollowingsEndpoint(svc users.Service) endpoint.Endpoint

func GetUserEndpoint

func GetUserEndpoint(svc users.Service) endpoint.Endpoint

func GetUserPreferenceEndpoint

func GetUserPreferenceEndpoint(svc users.Service) endpoint.Endpoint

func GetUsersEndpoint

func GetUsersEndpoint(svc users.Service) endpoint.Endpoint

func IdentifyUserEndpoint

func IdentifyUserEndpoint(svc users.Service) endpoint.Endpoint

func IssueTokenEndpoint

func IssueTokenEndpoint(svc users.Service) endpoint.Endpoint

func RefreshTokenEndpoint

func RefreshTokenEndpoint(svc users.Service) endpoint.Endpoint

func UnfollowEndpoint

func UnfollowEndpoint(svc users.Service) endpoint.Endpoint

func UpdatePasswordEndpoint

func UpdatePasswordEndpoint(svc users.Service) endpoint.Endpoint

func UpdatePreferenceEndpoint

func UpdatePreferenceEndpoint(svc users.Service, field entityField) endpoint.Endpoint

func UpdateUserEndpoint

func UpdateUserEndpoint(svc users.Service, field entityField) endpoint.Endpoint

Types

type CreateFeedReq

type CreateFeedReq struct {
	users.Feed
}

type CreatePreferenceReq

type CreatePreferenceReq struct {
	Token string
	users.Preference
}

type CreateUserReq

type CreateUserReq struct {
	users.User
}

type EntitiesReq

type EntitiesReq struct {
	Token string
	Page  users.Page
	SVC   SVC
}

type EntityReq

type EntityReq struct {
	ID    string
	Token string
	SVC   SVC
}

type FollowReq

type FollowReq struct {
	Token string
	ID    string
}

type GetPreferenceReq

type GetPreferenceReq struct {
	Token string
	ID    string
	SVC   SVC
}

type IssueTokenReq

type IssueTokenReq struct {
	users.User
}

type RefreshTokenReq

type RefreshTokenReq struct {
	Token string
}

type SVC

type SVC uint8
const (
	HTTP SVC = iota
	GRPC
)

type UpdatePasswordReq

type UpdatePasswordReq struct {
	Token           string
	OldPassword     string `json:"old_password"`
	CurrentPassowrd string `json:"current_password"`
}

type UpdatePreferenceReq

type UpdatePreferenceReq struct {
	Token string
	users.Preference
}

type UpdateUserReq

type UpdateUserReq struct {
	Token string
	users.User
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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