mirror of
https://github.com/navidrome/navidrome.git
synced 2026-02-02 06:24:14 +00:00
- Implemented hostgen tool to generate wrappers from annotated Go interfaces. - Added command-line flags for input/output directories and package name. - Introduced parsing and code generation logic for host services. - Created test data for various service interfaces and expected generated code. - Added documentation for host services and annotations for code generation. - Implemented SubsonicAPI service with corresponding generated code.
10 lines
193 B
Go
10 lines
193 B
Go
package testpkg
|
|
|
|
import "context"
|
|
|
|
//nd:hostservice name=Echo permission=echo
|
|
type EchoService interface {
|
|
//nd:hostfunc
|
|
Echo(ctx context.Context, message string) (reply string, err error)
|
|
}
|