server

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback added in v0.0.3

type Callback struct {
	Host      string `param:"host"`
	SessionID string `query:"session"`
}

type Job

type Job struct {
	Profile string `form:"profile" validate:"required"`
	Type    int    `form:"job-type" validate:"required"`
	ID      string `form:"id"`
}

type Params added in v0.0.3

type Params struct {
	Profile string `param:"profile"`
	Name    string `param:"name"`
	Date    string `param:"date"`
	Page    int    `query:"page"`
	S       string `query:"s"`
}

type Server

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

func New

func New(l *logic.Logic) *Server

func (*Server) AddProfileHandler

func (srv *Server) AddProfileHandler(c echo.Context) error

AddProfileHandler は /profiles のハンドラ

func (*Server) ArchiveNotesHandler

func (srv *Server) ArchiveNotesHandler(c echo.Context) error

ArchiveNotesHandler は /archives/:date のハンドラ

func (*Server) ArchivesHandler

func (srv *Server) ArchivesHandler(c echo.Context) error

ArchivesHandler は /archives のハンドラ

func (*Server) CallbackHandler

func (srv *Server) CallbackHandler(c echo.Context) error

CallbackHandler は /callback/:host のハンドラ

func (*Server) FilesHandler

func (srv *Server) FilesHandler(c echo.Context) error

FilesHandler は /files のハンドラ

func (*Server) HashTagsHandler

func (srv *Server) HashTagsHandler(c echo.Context) error

HashTagsHandler は /hashtags/:name のハンドラ

func (*Server) HomeHandler

func (srv *Server) HomeHandler(c echo.Context) error

HomeHandler は /:profile のハンドラ

func (*Server) JobHandler

func (srv *Server) JobHandler(c echo.Context) error

JobHandler は /job のハンドラ

func (*Server) JobProgressHandler

func (srv *Server) JobProgressHandler(c echo.Context) error

JobProgressHandler は /job/progress のハンドラ

func (*Server) JobStartHandler

func (srv *Server) JobStartHandler(c echo.Context) error

JobStartHandler は /job/start のハンドラ

func (*Server) ManageHandler

func (srv *Server) ManageHandler(c echo.Context) error

ManageHandler は /manage のハンドラ

func (*Server) NewProfilesHandler

func (srv *Server) NewProfilesHandler(c echo.Context) error

NewProfilesHandler は /profiles のハンドラ

func (*Server) NewRouter added in v0.0.3

func (srv *Server) NewRouter() *echo.Echo

func (*Server) NotesHandler

func (srv *Server) NotesHandler(c echo.Context) error

NotesHandler は /notes のハンドラ

func (*Server) ReactionsHandler

func (srv *Server) ReactionsHandler(c echo.Context) error

ReactionsHandler は /reactions/:name のハンドラ

func (*Server) RootHandler

func (srv *Server) RootHandler(c echo.Context) error

RootHandler は / のハンドラ

func (*Server) UsersHandler

func (srv *Server) UsersHandler(c echo.Context) error

UsersHandler は /users/:name のハンドラ

type Validator

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

func NewValidator

func NewValidator() *Validator

func (*Validator) Validate

func (v *Validator) Validate(i interface{}) error

Jump to

Keyboard shortcuts

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