client

package
v0.0.0-...-1703965 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadClient = errors.New("Client invalid")

Functions

This section is empty.

Types

type Client

type Client struct {
	Id     string `json:"id"`
	Secret string `json:"secret"`
}

func NewClient

func NewClient(id string, secret string) *Client

type ClientDb_I

type ClientDb_I interface {
	VerifyClient(c Client) error
}

type MockClientDb_I

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

Mock of ClientDb_I interface

func NewMockClientDb_I

func NewMockClientDb_I(ctrl *gomock.Controller) *MockClientDb_I

func (*MockClientDb_I) EXPECT

func (_m *MockClientDb_I) EXPECT() *_MockClientDb_IRecorder

func (*MockClientDb_I) VerifyClient

func (_m *MockClientDb_I) VerifyClient(c Client) error

Jump to

Keyboard shortcuts

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