sample1

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2016 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SampleProtocol

func SampleProtocol(i SampleInterface) rpc.Protocol

Types

type GetBazArg

type GetBazArg struct {
	R    R                 `codec:"r" json:"r"`
	Beep keybase1.DeviceID `codec:"beep" json:"beep"`
}

type Joe added in v1.3.1

type Joe int

Joe is an alias for an int.

type NotifierArg

type NotifierArg struct {
	I int `codec:"i" json:"i"`
}

type R

type R struct {
	Bar keybase1.UID `codec:"bar" json:"bar"`
}

R is a rad record.

type SampleClient

type SampleClient struct {
	Cli rpc.GenericClient
}

func (SampleClient) GetBaz

func (c SampleClient) GetBaz(ctx context.Context, __arg GetBazArg) (res keybase1.SigID, err error)

GetBaz will get a baz like you wouldn't believe. If this baz isn't gotten, then I'll eat my hat

And then.

func (SampleClient) Notifier

func (c SampleClient) Notifier(ctx context.Context, i int) (err error)

Notifier notifies the notifiee.

type SampleInterface

type SampleInterface interface {
	// GetBaz will get a baz like you wouldn't believe.
	// If this baz isn't gotten, then I'll eat my hat
	//
	// And then.
	GetBaz(context.Context, GetBazArg) (keybase1.SigID, error)
	// Notifier notifies the notifiee.
	Notifier(context.Context, int) error
}

SampleInterface protocol is a sample among samples.

Jump to

Keyboard shortcuts

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