...

Package rpc

import "github.com/gonitro/nitro/app/server/rpc"
Overview
Index

Overview ▾

Package rpc provides a network agnostic RPC server

Variables

var (
    DefaultContentType = "application/json"

    DefaultCodecs = map[string]codec.NewCodec{
        "application/json":         json.NewCodec,
        "application/json-rpc":     jsonrpc.NewCodec,
        "application/octet-stream": raw.NewCodec,
    }
)
var (
    DefaultRouter = newRpcRouter()
)

func NewServer

func NewServer(opts ...server.Option) server.Server

NewServer returns a micro server interface