CovenantSQL: github.com/CovenantSQL/CovenantSQL/sqlchain/adapter Index | Files | Directories

package adapter

import "github.com/CovenantSQL/CovenantSQL/sqlchain/adapter"

Index

Package Files

server.go

type HTTPAdapter Uses

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

HTTPAdapter is a adapter for covenantsql/alternative sqlite3 service.

func NewHTTPAdapter Uses

func NewHTTPAdapter(listenAddr string, configFile string, adapterUseMirrorAddr string) (adapter *HTTPAdapter, err error)

NewHTTPAdapter creates adapter to service.

func (*HTTPAdapter) Serve Uses

func (adapter *HTTPAdapter) Serve() (err error)

Serve defines adapter serve logic.

func (*HTTPAdapter) Shutdown Uses

func (adapter *HTTPAdapter) Shutdown(ctx context.Context)

Shutdown shutdown the service.

Directories

PathSynopsis
apiPackage api defines the adapter api interface.
configPackage config defines the configuration objects for adapter.
storagePackage storage defines the abstraction layer.

Package adapter imports 7 packages (graph). Updated 2019-03-25. Refresh now. Tools for package owners.