cloutcli

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 9 Imported by: 0

README

cloutcli

library to make building things with bitclout easy

building the "clout" executable

There is no main.go file in the root directory.

Instead go into "cmd" directory and go build there.

This is done to keep the root directory having the package name "cloutcli".

Which allows other go programs to just import:

import "github.com/andrewarrow/cloutcli"

and then:

list := cloutcli.GlobalPosts()

for _, post := range list {
  fmt.Println(post.Body)
}

Example

github.com/andrewarrow/referential

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPublicKey = "BC1YLgw3KMdQav8w5juVRc3Ko5gzNJ7NzBHE1FfyYWGwpBEQEmnKG2v"
View Source
var Testing bool

Functions

func FollowingFeedPosts

func FollowingFeedPosts(username string) []lib.Post

func GlobalPosts

func GlobalPosts() []lib.Post

func ImportFromBadgerToSqlite added in v0.0.2

func ImportFromBadgerToSqlite(dir string) error

func MessageInbox added in v0.0.5

func MessageInbox(username string) lib.MessageList

func PrintAllPostsFromBadger

func PrintAllPostsFromBadger(dir string) error

func QuerySqliteFollow added in v0.0.5

func QuerySqliteFollow(tab, s, degrees string)

func QuerySqlitePosts added in v0.0.2

func QuerySqlitePosts(term string)

func QuerySqliteUsers added in v0.0.5

func QuerySqliteUsers(s string)

func SearchSqlitePub58 added in v0.0.5

func SearchSqlitePub58(s string) string

func SearchSqliteUsername added in v0.0.5

func SearchSqliteUsername(s string) string

func SimplePost added in v0.0.4

func SimplePost(words, body string) string

func UsernameToPub58

func UsernameToPub58(s string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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