fixtures

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package fixtures is a generated protocol buffer package.

It is generated from these files:

dfss/net/fixtures/test.proto

It has these top-level messages:

Hop
IsAuth
Empty

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTestServer

func RegisterTestServer(s *grpc.Server, srv TestServer)

Types

type Empty

type Empty struct {
}

func (*Empty) Descriptor

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

type Hop

type Hop struct {
	Id int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}

func (*Hop) Descriptor

func (*Hop) Descriptor() ([]byte, []int)

func (*Hop) ProtoMessage

func (*Hop) ProtoMessage()

func (*Hop) Reset

func (m *Hop) Reset()

func (*Hop) String

func (m *Hop) String() string

type IsAuth

type IsAuth struct {
	Auth bool `protobuf:"varint,1,opt,name=auth" json:"auth,omitempty"`
}

func (*IsAuth) Descriptor

func (*IsAuth) Descriptor() ([]byte, []int)

func (*IsAuth) ProtoMessage

func (*IsAuth) ProtoMessage()

func (*IsAuth) Reset

func (m *IsAuth) Reset()

func (*IsAuth) String

func (m *IsAuth) String() string

type TestClient

type TestClient interface {
	Ping(ctx context.Context, in *Hop, opts ...grpc.CallOption) (*Hop, error)
	Auth(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*IsAuth, error)
}

func NewTestClient

func NewTestClient(cc *grpc.ClientConn) TestClient

type TestServer

type TestServer interface {
	Ping(context.Context, *Hop) (*Hop, error)
	Auth(context.Context, *Empty) (*IsAuth, error)
}

Jump to

Keyboard shortcuts

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