bcnetgo

package module
Version: v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 16 Imported by: 1

README

bcnetgo

This is a Go implementation of a blockchain network using the BC data structures.

Build

go build

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindAllTCP

func BindAllTCP(c bcgo.Cache, n *network.TCP, cb func(string) (bcgo.Channel, error))

func BindTCP

func BindTCP(port int, handler func(net.Conn))

func BlockHandler

func BlockHandler(cache bcgo.Cache, template *template.Template) func(w http.ResponseWriter, r *http.Request)

func BlockPortTCPHandler

func BlockPortTCPHandler(cache bcgo.Cache) func(conn net.Conn)

func BroadcastPortTCPHandler

func BroadcastPortTCPHandler(cache bcgo.Cache, network *network.TCP, open func(string) (bcgo.Channel, error)) func(conn net.Conn)

func ChannelHandler

func ChannelHandler(cache bcgo.Cache, template *template.Template) func(w http.ResponseWriter, r *http.Request)

func ChannelListHandler

func ChannelListHandler(cache bcgo.Cache, template *template.Template, list func() []bcgo.Channel) func(w http.ResponseWriter, r *http.Request)

func ConnectPortTCPHandler

func ConnectPortTCPHandler(network *network.TCP, allowed func(string, string) bool) func(conn net.Conn)

func HeadPortTCPHandler

func HeadPortTCPHandler(cache bcgo.Cache) func(conn net.Conn)

func PeriodicValidationHandler

func PeriodicValidationHandler(channel bcgo.Channel, cache bcgo.Cache, template *template.Template) func(w http.ResponseWriter, r *http.Request)

func RegistrationHandler

func RegistrationHandler(merchantAlias, merchantName, merchantKey string, template *template.Template, callback func(string, string, string) (string, *bcgo.Reference, error)) func(w http.ResponseWriter, r *http.Request)

func StripeWebhookHandler

func StripeWebhookHandler(callback func(*stripe.Event)) func(w http.ResponseWriter, r *http.Request)

func SubscriptionHandler

func SubscriptionHandler(template *template.Template, redirect string, callback func(string, string) (string, *bcgo.Reference, error)) func(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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