Documentation ¶
Overview ¶
Some RPC functions aren't implemented like .Tx() and .TxSearch() because they are disable with the postgres indexer. This file has re-implementations of those so the SDK can support all RPC methods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoOpLogger ¶
type NoOpLogger struct{}
NoOpLogger is a logger that does nothing.
func NewNoOpLogger ¶
func NewNoOpLogger() *NoOpLogger
NewNoOpLogger creates a new NoOpLogger instance.
func (*NoOpLogger) Debug ¶
func (l *NoOpLogger) Debug(msg string, args ...interface{})
func (*NoOpLogger) Error ¶
func (l *NoOpLogger) Error(msg string, args ...interface{})
func (*NoOpLogger) Info ¶
func (l *NoOpLogger) Info(msg string, args ...interface{})
func (*NoOpLogger) Warn ¶
func (l *NoOpLogger) Warn(msg string, args ...interface{})
type Sdk ¶
type Sdk struct { OAPIEndpoint string GRPCEndpoint string JRPCEndpoint string protocol.ClientService proto.ProtocolClient http.HTTP // contains filtered or unexported fields }
type SdkOption ¶
type SdkOption func(*Sdk)
func WithGrpcendpoint ¶
func WithJrpcendpoint ¶
func WithLogger ¶
func WithOapiendpoint ¶
func WithPrivkey ¶
func WithUsehttps ¶
Click to show internal directories.
Click to hide internal directories.