spine

package module
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 8 Imported by: 0

README

한국어 | English

🦴 Spine

Spine

Spine는 실행 흐름이 드러나는 백엔드 프레임워크입니다.
요청이 어떻게 해석되고 실행되는지 숨기지 않습니다.

핵심 아이디어

  • 실행 순서와 책임을 코드 구조로 고정합니다
  • 메서드 시그니처가 API 계약입니다
  • path.*, query.*, httperr.* 의미 타입을 사용합니다

링크


License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	// 생성자 선언
	Constructor(constructors ...any)
	// 라우트 선언
	Route(method string, path string, handler any, opts ...router.RouteOption)
	// 인터셉터 선언
	Interceptor(interceptors ...core.Interceptor)
	// InterceptorFor는 선택한 기본 전송 방식에 전역 인터셉터를 등록합니다.
	InterceptorFor(scope boot.InterceptorScope, interceptors ...core.Interceptor)
	// HTTP 전송 방식 확장(Echo 등)
	Transport(fn func(any))
	// 독립 실행되는 사용자 정의 전송 방식 등록
	RegisterTransport(t core.CustomTransport)
	// Validate는 네트워크 연결을 열지 않고 애플리케이션 설정을 검사합니다.
	Validate(opts boot.Options) error
	// 실행
	Run(opts boot.Options) error
	// RunContext는 context가 취소될 때 정상 종료를 시작합니다.
	RunContext(ctx context.Context, opts boot.Options) error
	// 이벤트 소비자 레지스트리 반환
	Consumers() *consumer.Registry
	// 웹 소켓 레지스트리 반환
	WebSocket() *ws.Registry
}

func New

func New() App

Jump to

Keyboard shortcuts

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