servers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Protocol string
	Method   string
	User     string
	Alias    string
	Service  string

	Connection pktline.Connection
	Layout     repositories.Layout
	Repository repositories.Repository
	Session    repositories.Session
}

Context ...

type MainServer

type MainServer interface {
	Server
}

MainServer ... [inject:"#git-main-server"]

type MainServerImpl

type MainServerImpl struct {
	ServerRegistryList []ServerRegistry `inject:".git-server-registry"`
	// contains filtered or unexported fields
}

MainServerImpl 实现 MainServer 这个接口

func (*MainServerImpl) Accept

func (inst *MainServerImpl) Accept(c *Context) bool

Accept ...

func (*MainServerImpl) Execute

func (inst *MainServerImpl) Execute(c *Context) error

Execute ...

type Server

type Server interface {
	Accept(c *Context) bool
	Execute(c *Context) error
}

Server ...

type ServerRegistration

type ServerRegistration struct {
	Server Server
}

ServerRegistration ...

type ServerRegistry

type ServerRegistry interface {
	GetServerRegistration() *ServerRegistration
}

ServerRegistry ... [inject:".git-server-registry"]

Jump to

Keyboard shortcuts

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