server

package
v1.0.1-1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Auth
	LOGIN_ENDPOINT    string = "/api/v1/users/login"
	REGISTER_ENDPOINT string = "/api/v1/users/register"

	// Data
	CREATE_CONNECTION_ENDPOINT string = "/api/v1/files/connect"
	SAVE_DATA_ENDPOINT         string = "/api/v1/files/{uuid:[a-z0-9-]{36}}/save"
	GET_DATA_ENDPOINT          string = "/api/v1/files/{uuid:[a-z0-9-]{36}}/get"
	GET_DATA_SUM_ENDPOINT      string = "/api/v1/files/{uuid:[a-z0-9-]{36}}/sum"
)

Variables

View Source
var (
	ErrFailedStartServer error = errors.New("failed to start server")
)

Functions

This section is empty.

Types

type Server

type Server struct {
	AuthService *domain.HttpAuthService
	DataService *domain.HttpDataService
}

func (*Server) Serve

func (s *Server) Serve(ip, port string) error

Jump to

Keyboard shortcuts

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