server

package
v0.0.0-...-aa37512 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORS

func CORS() gin.HandlerFunc

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(config config.Config, db *db.Queries) (*Server, error)

func (*Server) CreateUser

func (server *Server) CreateUser(ctx *gin.Context)

func (*Server) CreateUserFollower

func (server *Server) CreateUserFollower(ctx *gin.Context)

func (*Server) DeleteFollower

func (server *Server) DeleteFollower(ctx *gin.Context)

func (*Server) GetUser

func (server *Server) GetUser(ctx *gin.Context)

func (*Server) GetUserFolloweesCount

func (server *Server) GetUserFolloweesCount(ctx *gin.Context)

func (*Server) GetUserFollowersCount

func (server *Server) GetUserFollowersCount(ctx *gin.Context)

func (*Server) ListFollowees

func (server *Server) ListFollowees(ctx *gin.Context)

func (*Server) ListFollowers

func (server *Server) ListFollowers(ctx *gin.Context)

func (*Server) Start

func (server *Server) Start(address string) error

func (*Server) VerifyUser

func (server *Server) VerifyUser(ctx *gin.Context)

Jump to

Keyboard shortcuts

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