gorpc

package module
v0.0.0-...-a2ce4e4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: BSD-3-Clause Imports: 17 Imported by: 0

README

gorpc

a rpc framework

WIP

  • ws

todo

  • notification
  • metrics for rpc method

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(rawUrl string, opt api.ClientOption) (api.Client, error)

Types

type Server

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

func NewServer

func NewServer(opt api.ServerOption) *Server

func (*Server) RegisterGrpc

func (s *Server) RegisterGrpc(desc *g.ServiceDesc, impl interface{}) error

func (*Server) RegisterJsonRPC

func (s *Server) RegisterJsonRPC(name string, receiver interface{}) error

func (*Server) RegisterPath

func (s *Server) RegisterPath(httpMethod string, path string, handle api.RawHttpHandle) error

func (*Server) RegisterRawWs

func (s *Server) RegisterRawWs(handle api.RawWsHandle) error

func (*Server) Run

func (s *Server) Run() error

func (*Server) Stop

func (s *Server) Stop() error

Directories

Path Synopsis
example
internal
ctx
gin
log

Jump to

Keyboard shortcuts

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