grpc

package
v0.0.0-...-d04cd99 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 9 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
	DBPath   string
	NodeName string
	DataPath string
}

type Server

type Server struct {
	*grpc.Server
	// contains filtered or unexported fields
}

func New

func New(cfg Config) *Server

func (*Server) Addr

func (s *Server) Addr() string

func (*Server) Run

func (s *Server) Run(ctx context.Context, wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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