server

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "example-nested-grpc"

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct{}

Server demonstrates a service in a nested directory that shares its package name with a sibling. Both example-nested/http and example-nested/grpc are package "server" - the codegen derives unique import aliases (examplenestedhttpserver, examplenestedgrpcserver) from the directory path.

func New

func New() (*Server, error)

func (*Server) Name

func (s *Server) Name() string

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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