server

package
v0.0.0-...-3a32fef Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr string
}

Config holds necessary server configuration parameters

type Handler

type Handler interface {
	Handle() (string, http.Handler)
}

Handler is an interface for handling gRPC services.

type Server

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

Server is a meta-server composed by a grpc server and a http server

func New

func New(cfg *Config) (*Server, error)

New creates a new Server.

func (*Server) Serve

func (s *Server) Serve() error

Serve serves the grpc + rest server.

Jump to

Keyboard shortcuts

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