decred.org/dcrwallet/v3@v3.1.0/internal/rpc/jsonrpc/config.go (about)

     1  // Copyright (c) 2013-2015 The btcsuite developers
     2  // Use of this source code is governed by an ISC
     3  // license that can be found in the LICENSE file.
     4  
     5  package jsonrpc
     6  
     7  import (
     8  	"context"
     9  	"net"
    10  
    11  	"github.com/decred/dcrd/dcrutil/v4"
    12  )
    13  
    14  // Options contains the required options for running the legacy RPC server.
    15  type Options struct {
    16  	Username string
    17  	Password string
    18  
    19  	MaxPOSTClients      int64
    20  	MaxWebsocketClients int64
    21  
    22  	CSPPServer         string
    23  	DialCSPPServer     func(ctx context.Context, network, addr string) (net.Conn, error)
    24  	MixAccount         string
    25  	MixBranch          uint32
    26  	MixChangeAccount   string
    27  	TicketSplitAccount string
    28  
    29  	VSPHost   string
    30  	VSPPubKey string
    31  	VSPMaxFee dcrutil.Amount
    32  	Dial      func(ctx context.Context, network, addr string) (net.Conn, error)
    33  }