Documentation ¶
Index ¶
- Constants
- func CanonicalizeFilePath(path string) string
- func CanonicalizePath(path string) string
- func ComparePBTimestamp(t1 *google_protobuf.Timestamp, t2 *google_protobuf.Timestamp) int
- func ConvertPBTimestamp(t *google_protobuf.Timestamp) time.Time
- func CreatePBTimestamp(t time.Time) *google_protobuf.Timestamp
- func DoubleSHA256(data []byte) ([]byte, error)
- func HMACSHA256(data []byte, seed []byte) ([]byte, error)
- func JRPCError(err error, data interface{}) *errorResponse
- func JRPCErrorF(code int, message string, data interface{}) *errorResponse
- func JRPCSuccess(data interface{}) *successResponse
- func SHA256RIPEMD160(data []byte) ([]byte, error)
Constants ¶
View Source
const (
JRPC_Version = "2.0"
)
Variables ¶
This section is empty.
Functions ¶
func CanonicalizeFilePath ¶
func CanonicalizePath ¶
func ComparePBTimestamp ¶
func ComparePBTimestamp(t1 *google_protobuf.Timestamp, t2 *google_protobuf.Timestamp) int
if t1 > t2, return 1 else if t1 < t2, return -1 esle (t1 == t2), return 0
func ConvertPBTimestamp ¶
func ConvertPBTimestamp(t *google_protobuf.Timestamp) time.Time
func CreatePBTimestamp ¶
func CreatePBTimestamp(t time.Time) *google_protobuf.Timestamp
func DoubleSHA256 ¶
func JRPCErrorF ¶
func JRPCSuccess ¶
func JRPCSuccess(data interface{}) *successResponse
func SHA256RIPEMD160 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.