...

Package rpc

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

Overview ▾

Package rpc provides a network agnostic RPC client

Variables

var (
    DefaultContentType = "application/json"

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

func NewClient

func NewClient(opt ...client.Option) client.Client

NewClient returns a new micro client interface