king_example

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterContactMessagesService

func RegisterContactMessagesService(server ContactMessagesServiceServer)

Types

type BarRequest

type BarRequest struct {
	Increments           int32    `protobuf:"varint,1,opt,name=increments,proto3" json:"increments,omitempty"`
	Trying               bool     `protobuf:"varint,2,opt,name=trying,proto3" json:"trying,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BarRequest) Descriptor

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

func (*BarRequest) GetIncrements

func (m *BarRequest) GetIncrements() int32

func (*BarRequest) GetTrying

func (m *BarRequest) GetTrying() bool

func (*BarRequest) ProtoMessage

func (*BarRequest) ProtoMessage()

func (*BarRequest) Reset

func (m *BarRequest) Reset()

func (*BarRequest) String

func (m *BarRequest) String() string

func (*BarRequest) XXX_DiscardUnknown

func (m *BarRequest) XXX_DiscardUnknown()

func (*BarRequest) XXX_Marshal

func (m *BarRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BarRequest) XXX_Merge

func (dst *BarRequest) XXX_Merge(src proto.Message)

func (*BarRequest) XXX_Size

func (m *BarRequest) XXX_Size() int

func (*BarRequest) XXX_Unmarshal

func (m *BarRequest) XXX_Unmarshal(b []byte) error

type ContactMessagesServiceClient

type ContactMessagesServiceClient interface {
	Foo(ctx context.Context, in *FooRequest) (out *common.Empty, err error)
	Bar(ctx context.Context, in *BarRequest) (out *common.Empty, err error)
}

func NewContactMessagesServiceClient

func NewContactMessagesServiceClient(server string, opts ...runtime.ClientOption) ContactMessagesServiceClient

type ContactMessagesServiceMock added in v0.9.0

type ContactMessagesServiceMock struct {
	FooMock func(ctx context.Context, in *FooRequest) (out *common.Empty, err error)
	BarMock func(ctx context.Context, in *BarRequest) (out *common.Empty, err error)
}

func (*ContactMessagesServiceMock) Bar added in v0.9.0

func (mock *ContactMessagesServiceMock) Bar(ctx context.Context, in *BarRequest) (out *common.Empty, err error)

func (*ContactMessagesServiceMock) Foo added in v0.9.0

func (mock *ContactMessagesServiceMock) Foo(ctx context.Context, in *FooRequest) (out *common.Empty, err error)

type ContactMessagesServiceServer

type ContactMessagesServiceServer interface {
	Foo(ctx context.Context, in *FooRequest) (out *common.Empty, err error)
	Bar(ctx context.Context, in *BarRequest) (out *common.Empty, err error)
}

type FooRequest

type FooRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Email                string   `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FooRequest) Descriptor

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

func (*FooRequest) GetEmail

func (m *FooRequest) GetEmail() string

func (*FooRequest) GetName

func (m *FooRequest) GetName() string

func (*FooRequest) ProtoMessage

func (*FooRequest) ProtoMessage()

func (*FooRequest) Reset

func (m *FooRequest) Reset()

func (*FooRequest) String

func (m *FooRequest) String() string

func (*FooRequest) XXX_DiscardUnknown

func (m *FooRequest) XXX_DiscardUnknown()

func (*FooRequest) XXX_Marshal

func (m *FooRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FooRequest) XXX_Merge

func (dst *FooRequest) XXX_Merge(src proto.Message)

func (*FooRequest) XXX_Size

func (m *FooRequest) XXX_Size() int

func (*FooRequest) XXX_Unmarshal

func (m *FooRequest) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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