xchk

package
Version: v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 22, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

README

xchk

Cross-checking zookeeper proxy.

        +---- ZKC1 --- ZK Oracle
        |          

Client --- Xchk | +---- ZKC2 --- ZK Challenge

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(sp *sessionPool, zka zetcd.AuthConn, cAuth, oAuth zetcd.AuthFunc) (zetcd.Session, error)

func NewAuth

func NewAuth(cAuth, oAuth zetcd.AuthFunc, errc chan<- error) zetcd.AuthFunc

NewAuth takes a candidate AuthFunc and an oracle AuthFunc

func NewZK

func NewZK(cZK, oZK zetcd.ZKFunc, errc chan<- error) zetcd.ZKFunc

NewZK takes a candidate ZKFunc and an oracle ZKFunc, returning a cross checker.

Types

type XchkError

type XchkError struct {
	// contains filtered or unexported fields
}

func (*XchkError) Error

func (xe *XchkError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto