user

package
v0.0.0-...-29554df Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUserServiceServer

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

Types

type User

type User struct {
	ID                   uint32               `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Name                 string               `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	Email                string               `protobuf:"bytes,3,opt,name=Email,proto3" json:"Email,omitempty"`
	Token                string               `protobuf:"bytes,4,opt,name=Token,proto3" json:"Token,omitempty"`
	Error                *error1.Error        `protobuf:"bytes,5,opt,name=Error,proto3" json:"Error,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,6,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
	UpdatedAt            *timestamp.Timestamp `protobuf:"bytes,7,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"`
	DeletedAt            *timestamp.Timestamp `protobuf:"bytes,8,opt,name=DeletedAt,proto3" json:"DeletedAt,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*User) Descriptor

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

func (*User) GetCreatedAt

func (m *User) GetCreatedAt() *timestamp.Timestamp

func (*User) GetDeletedAt

func (m *User) GetDeletedAt() *timestamp.Timestamp

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetError

func (m *User) GetError() *error1.Error

func (*User) GetID

func (m *User) GetID() uint32

func (*User) GetName

func (m *User) GetName() string

func (*User) GetToken

func (m *User) GetToken() string

func (*User) GetUpdatedAt

func (m *User) GetUpdatedAt() *timestamp.Timestamp

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 UserAuth

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

func (*UserAuth) Descriptor

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

func (*UserAuth) GetEmail

func (m *UserAuth) GetEmail() string

func (*UserAuth) GetPassword

func (m *UserAuth) GetPassword() string

func (*UserAuth) ProtoMessage

func (*UserAuth) ProtoMessage()

func (*UserAuth) Reset

func (m *UserAuth) Reset()

func (*UserAuth) String

func (m *UserAuth) String() string

func (*UserAuth) XXX_DiscardUnknown

func (m *UserAuth) XXX_DiscardUnknown()

func (*UserAuth) XXX_Marshal

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

func (*UserAuth) XXX_Merge

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

func (*UserAuth) XXX_Size

func (m *UserAuth) XXX_Size() int

func (*UserAuth) XXX_Unmarshal

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

type UserServiceClient

type UserServiceClient interface {
	Auth(ctx context.Context, in *UserAuth, opts ...grpc.CallOption) (*User, error)
}

UserServiceClient is the client API for UserService service.

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

func NewUserServiceClient

func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient

type UserServiceServer

type UserServiceServer interface {
	Auth(context.Context, *UserAuth) (*User, error)
}

UserServiceServer is the server API for UserService service.

Jump to

Keyboard shortcuts

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