server

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	ReadBasePath        string
	ReadRoots           []RootOption
	ExtraReadBasePath   string
	WriteBasePath       string
	WriteRoots          []RootOption
	Include             []string
	Exclude             []string
	Verbose             bool
	ReadSortDesc        bool
	ExtraReadSortDesc   bool
	WriteSortDesc       bool
	ArchiveDir          string
	ArchiveBasePath     string
	CodingAgentRunner   codingagent.Runner
	PullRequestsEnabled bool
}

Options はサーバーが扱う各ルートと表示順の設定を表す。

type RootOption

type RootOption struct {
	BasePath string
	SortDesc bool
}

RootOption は1つの閲覧ルートの設定を表す。

type Server

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

Server はHTTPサーバーを表す。 readRoots は閲覧用ルート、write はオプショナルな編集用ルート。

func NewWithOptions

func NewWithOptions(opts Options) *Server

NewWithOptions は閲覧用ルート、追加閲覧ルート、書き込みルートを持つServerを作成する。

func (*Server) StartWithListener

func (s *Server) StartWithListener(listener net.Listener) error

StartWithListener は指定された Listener でサーバーを開始する

Jump to

Keyboard shortcuts

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