proto

package
v0.0.0-...-7581385 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

api.proto

It has these top-level messages:

Empty
UserCreateType
UserGetType
User

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFilesServiceServer

func RegisterFilesServiceServer(s *grpc.Server, srv FilesServiceServer)

func RegisterUserServiceServer

func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)

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 FilesServiceClient

type FilesServiceClient interface {
}

func NewFilesServiceClient

func NewFilesServiceClient(cc *grpc.ClientConn) FilesServiceClient

type FilesServiceServer

type FilesServiceServer interface {
}

type User

type User struct {
	Age   uint32 `protobuf:"varint,1,opt,name=age" json:"age,omitempty"`
	Email string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"`
	Name  string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
	Sex   string `protobuf:"bytes,4,opt,name=sex" json:"sex,omitempty"`
}

func (*User) Descriptor

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

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

type UserCreateType

type UserCreateType struct {
	Age   uint32 `protobuf:"varint,1,opt,name=age" json:"age,omitempty"`
	Email string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"`
	Name  string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
	Sex   string `protobuf:"bytes,4,opt,name=sex" json:"sex,omitempty"`
	Type_ string `protobuf:"bytes,5,opt,name=type_,json=type" json:"type_,omitempty"`
}

func (*UserCreateType) Descriptor

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

func (*UserCreateType) ProtoMessage

func (*UserCreateType) ProtoMessage()

func (*UserCreateType) Reset

func (m *UserCreateType) Reset()

func (*UserCreateType) String

func (m *UserCreateType) String() string

type UserGetType

type UserGetType struct {
	UserID int32 `protobuf:"varint,1,opt,name=userID" json:"userID,omitempty"`
}

func (*UserGetType) Descriptor

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

func (*UserGetType) ProtoMessage

func (*UserGetType) ProtoMessage()

func (*UserGetType) Reset

func (m *UserGetType) Reset()

func (*UserGetType) String

func (m *UserGetType) String() string

type UserServiceClient

type UserServiceClient interface {
	Create(ctx context.Context, in *UserCreateType, opts ...grpc.CallOption) (*Empty, error)
	Get(ctx context.Context, in *UserGetType, opts ...grpc.CallOption) (*User, error)
	List(ctx context.Context, in *Empty, opts ...grpc.CallOption) (UserService_ListClient, error)
}

func NewUserServiceClient

func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient

type UserServiceServer

type UserServiceServer interface {
	Create(context.Context, *UserCreateType) (*Empty, error)
	Get(context.Context, *UserGetType) (*User, error)
	List(*Empty, UserService_ListServer) error
}

type UserService_ListClient

type UserService_ListClient interface {
	Recv() (*User, error)
	grpc.ClientStream
}

type UserService_ListServer

type UserService_ListServer interface {
	Send(*User) error
	grpc.ServerStream
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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