util

package
v0.7.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2020 License: MIT Imports: 9 Imported by: 5

Documentation

Index

Constants

View Source
const (
	TestLogSchema = `` /* 684-byte string literal not displayed */

)

Variables

View Source
var (
	TestContact = &pb.Contact{
		Address: "address1",
		Name:    "joe",
		Avatar:  "Qm123",
		Peers: []*pb.Peer{
			{
				Id:      "abcde",
				Address: "address1",
				Name:    "joe",
				Avatar:  "Qm123",
				Inboxes: []*pb.Cafe{{
					Peer:     "peer",
					Address:  "address",
					Api:      "v0",
					Protocol: "/textile/cafe/1.0.0",
					Node:     "v1.0.0",
					Url:      "https://mycafe.com",
				}},
			},
		},
	}
)

Functions

func EqualStringSlices added in v0.5.4

func EqualStringSlices(a, b []string) bool

func Mkdirp added in v0.3.0

func Mkdirp(dir string) error

func ProtoNanos added in v0.1.10

func ProtoNanos(ts *timestamp.Timestamp) int64

func ProtoTime added in v0.1.10

func ProtoTime(ts *timestamp.Timestamp) time.Time

func ProtoTs added in v0.1.10

func ProtoTs(nsec int64) *timestamp.Timestamp

func ProtoTsIsNewer added in v0.1.10

func ProtoTsIsNewer(ts1 *timestamp.Timestamp, ts2 *timestamp.Timestamp) bool

func SplitString added in v0.1.10

func SplitString(in string, sep string) []string

func TrimQuotes added in v0.1.10

func TrimQuotes(s string) string

func UnmarshalString added in v0.1.10

func UnmarshalString(body io.ReadCloser) (string, error)

func WriteFileByPath added in v0.3.0

func WriteFileByPath(name string, data []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL