server

package
v0.0.0-...-b75f4f9 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUCCESS = iota
	NOT_FOUND
	ALREADY_EXISTS
	SERVER_ERROR
)
View Source
const (
	LOGIN    = "SSH-2.0-aloh-login"
	REGISTER = "SSH-2.0-aloh-register"
	DEFAULT  = "SSH-2.0-aloh-default"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NewServerSetup

type NewServerSetup struct {
	Cfg               config.Server
	SessionService    services.SessionService
	UserService       services.UserService
	FriendshipService services.FriendshipService
	BlockedService    services.BlockedService
}

type Server

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

func NewServer

func NewServer(nss NewServerSetup) *Server

func (*Server) MustClose

func (s *Server) MustClose(ctx context.Context)

func (*Server) MustStart

func (s *Server) MustStart()

Jump to

Keyboard shortcuts

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