user_grpc

package
v0.0.0-...-945c817 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUserHandlerServer

func RegisterUserHandlerServer(s *grpc.Server, srv UserHandlerServer)

Types

type Nothing

type Nothing struct {
	Dummy                bool     `protobuf:"varint,1,opt,name=dummy,proto3" json:"dummy,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Nothing) Descriptor

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

func (*Nothing) GetDummy

func (m *Nothing) GetDummy() bool

func (*Nothing) ProtoMessage

func (*Nothing) ProtoMessage()

func (*Nothing) Reset

func (m *Nothing) Reset()

func (*Nothing) String

func (m *Nothing) String() string

func (*Nothing) XXX_DiscardUnknown

func (m *Nothing) XXX_DiscardUnknown()

func (*Nothing) XXX_Marshal

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

func (*Nothing) XXX_Merge

func (m *Nothing) XXX_Merge(src proto.Message)

func (*Nothing) XXX_Size

func (m *Nothing) XXX_Size() int

func (*Nothing) XXX_Unmarshal

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

type UnimplementedUserHandlerServer

type UnimplementedUserHandlerServer struct {
}

UnimplementedUserHandlerServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserHandlerServer) Find

func (*UnimplementedUserHandlerServer) GetNames

type User

type User struct {
	ID                   int64    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	FirstName            string   `protobuf:"bytes,2,opt,name=FirstName,proto3" json:"FirstName,omitempty"`
	SecondName           string   `protobuf:"bytes,3,opt,name=SecondName,proto3" json:"SecondName,omitempty"`
	UserName             string   `protobuf:"bytes,4,opt,name=UserName,proto3" json:"UserName,omitempty"`
	Email                string   `protobuf:"bytes,5,opt,name=Email,proto3" json:"Email,omitempty"`
	Password             string   `protobuf:"bytes,6,opt,name=Password,proto3" json:"Password,omitempty"`
	EncryptPassword      string   `protobuf:"bytes,7,opt,name=EncryptPassword,proto3" json:"EncryptPassword,omitempty"`
	UserType             string   `protobuf:"bytes,8,opt,name=UserType,proto3" json:"UserType,omitempty"`
	FreelancerId         int64    `protobuf:"varint,9,opt,name=FreelancerId,proto3" json:"FreelancerId,omitempty"`
	HireManagerId        int64    `protobuf:"varint,10,opt,name=HireManagerId,proto3" json:"HireManagerId,omitempty"`
	CompanyId            int64    `protobuf:"varint,11,opt,name=CompanyId,proto3" json:"CompanyId,omitempty"`
	Avatar               []byte   `protobuf:"bytes,12,opt,name=Avatar,proto3" json:"Avatar,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*User) Descriptor

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

func (*User) GetAvatar

func (m *User) GetAvatar() []byte

func (*User) GetCompanyId

func (m *User) GetCompanyId() int64

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetEncryptPassword

func (m *User) GetEncryptPassword() string

func (*User) GetFirstName

func (m *User) GetFirstName() string

func (*User) GetFreelancerId

func (m *User) GetFreelancerId() int64

func (*User) GetHireManagerId

func (m *User) GetHireManagerId() int64

func (*User) GetID

func (m *User) GetID() int64

func (*User) GetPassword

func (m *User) GetPassword() string

func (*User) GetSecondName

func (m *User) GetSecondName() string

func (*User) GetUserName

func (m *User) GetUserName() string

func (*User) GetUserType

func (m *User) GetUserType() 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 (m *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

type UserHandlerClient

type UserHandlerClient interface {
	Find(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error)
	GetNames(ctx context.Context, in *Nothing, opts ...grpc.CallOption) (*Users, error)
}

UserHandlerClient is the client API for UserHandler service.

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

func NewUserHandlerClient

func NewUserHandlerClient(cc *grpc.ClientConn) UserHandlerClient

type UserHandlerServer

type UserHandlerServer interface {
	Find(context.Context, *UserID) (*User, error)
	GetNames(context.Context, *Nothing) (*Users, error)
}

UserHandlerServer is the server API for UserHandler service.

type UserID

type UserID struct {
	ID                   int64    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserID) Descriptor

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

func (*UserID) GetID

func (m *UserID) GetID() int64

func (*UserID) ProtoMessage

func (*UserID) ProtoMessage()

func (*UserID) Reset

func (m *UserID) Reset()

func (*UserID) String

func (m *UserID) String() string

func (*UserID) XXX_DiscardUnknown

func (m *UserID) XXX_DiscardUnknown()

func (*UserID) XXX_Marshal

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

func (*UserID) XXX_Merge

func (m *UserID) XXX_Merge(src proto.Message)

func (*UserID) XXX_Size

func (m *UserID) XXX_Size() int

func (*UserID) XXX_Unmarshal

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

type Users

type Users struct {
	Names                []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Users) Descriptor

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

func (*Users) GetNames

func (m *Users) GetNames() []string

func (*Users) ProtoMessage

func (*Users) ProtoMessage()

func (*Users) Reset

func (m *Users) Reset()

func (*Users) String

func (m *Users) String() string

func (*Users) XXX_DiscardUnknown

func (m *Users) XXX_DiscardUnknown()

func (*Users) XXX_Marshal

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

func (*Users) XXX_Merge

func (m *Users) XXX_Merge(src proto.Message)

func (*Users) XXX_Size

func (m *Users) XXX_Size() int

func (*Users) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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