test

package
v0.0.0-...-78e6b83 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGUMIServer

func RegisterGUMIServer(s *grpc.Server, srv GUMIServer)

Types

type GUMIClient

type GUMIClient interface {
	GetByID(ctx context.Context, in *GetByIDRequest, opts ...grpc.CallOption) (*User, error)
}

GUMIClient is the client API for GUMI service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGUMIClient

func NewGUMIClient(cc *grpc.ClientConn) GUMIClient

type GUMIServer

type GUMIServer interface {
	GetByID(context.Context, *GetByIDRequest) (*User, error)
}

GUMIServer is the server API for GUMI service.

type GetByIDRequest

type GetByIDRequest struct {
	Id                   uint32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetByIDRequest) Descriptor

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

func (*GetByIDRequest) GetId

func (m *GetByIDRequest) GetId() uint32

func (*GetByIDRequest) ProtoMessage

func (*GetByIDRequest) ProtoMessage()

func (*GetByIDRequest) Reset

func (m *GetByIDRequest) Reset()

func (*GetByIDRequest) String

func (m *GetByIDRequest) String() string

func (*GetByIDRequest) XXX_DiscardUnknown

func (m *GetByIDRequest) XXX_DiscardUnknown()

func (*GetByIDRequest) XXX_Marshal

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

func (*GetByIDRequest) XXX_Merge

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

func (*GetByIDRequest) XXX_Size

func (m *GetByIDRequest) XXX_Size() int

func (*GetByIDRequest) XXX_Unmarshal

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

type User

type User 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"`
	Id                   uint32   `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*User) Descriptor

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

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetId

func (m *User) GetId() uint32

func (*User) GetName

func (m *User) GetName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

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

func (*User) XXX_Merge

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

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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