sdk

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2018 License: MIT Imports: 12 Imported by: 0

README

c3-go-sdk

The C3 SDK for Go

License Build Status Coverage Status Go Report Card GoDoc Automated Release Notes by gren stability-experimental

Usage

TODO

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMethodAlreadyRegistered ...
	ErrMethodAlreadyRegistered = errors.New("method already registered")
	// ErrMethodNotExists ...
	ErrMethodNotExists = errors.New("method does not exist")
)

Functions

This section is empty.

Types

type C3

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

C3 ...

func NewC3

func NewC3() *C3

NewC3 ...

func (*C3) RegisterMethod

func (c3 *C3) RegisterMethod(methodName string, types []string, ifn interface{}) error

RegisterMethod ...

func (*C3) Serve

func (c3 *C3) Serve()

Serve ...

func (*C3) State

func (c3 *C3) State() *State

State ...

type State

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

State ...

func (*State) Get

func (s *State) Get(key []byte) ([]byte, bool)

Get ...

func (*State) Set

func (s *State) Set(key, value []byte) error

Set ...

Jump to

Keyboard shortcuts

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