userproto

package module
Version: v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

README

user-proto

This file contains proto message, and grpc endpoints which user service will server

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RequestMetaSortsDirection_name = map[int32]string{
	0: "Descending",
	1: "Ascending",
}
View Source
var RequestMetaSortsDirection_value = map[string]int32{
	"Descending": 0,
	"Ascending":  1,
}

Functions

func RegisterUserServiceServer added in v0.0.3

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

Types

type Any

type Any struct {
	TypeUrl              string   `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url"`
	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Any) Descriptor

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

func (*Any) GetTypeUrl

func (m *Any) GetTypeUrl() string

func (*Any) GetValue

func (m *Any) GetValue() []byte

func (*Any) ProtoMessage

func (*Any) ProtoMessage()

func (*Any) Reset

func (m *Any) Reset()

func (*Any) String

func (m *Any) String() string

func (*Any) XXX_DiscardUnknown

func (m *Any) XXX_DiscardUnknown()

func (*Any) XXX_Marshal

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

func (*Any) XXX_Merge

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

func (*Any) XXX_Size

func (m *Any) XXX_Size() int

func (*Any) XXX_Unmarshal

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

type GetUserRequest added in v0.0.5

type GetUserRequest struct {
	SearchInfo           *GetUserRequest_ConnectionInfo `protobuf:"bytes,1,opt,name=SearchInfo,proto3" json:"SearchInfo"`
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

=============== Get user request data

func (*GetUserRequest) Descriptor added in v0.0.5

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

func (*GetUserRequest) GetSearchInfo added in v0.0.5

func (m *GetUserRequest) GetSearchInfo() *GetUserRequest_ConnectionInfo

func (*GetUserRequest) ProtoMessage added in v0.0.5

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) Reset added in v0.0.5

func (m *GetUserRequest) Reset()

func (*GetUserRequest) String added in v0.0.5

func (m *GetUserRequest) String() string

func (*GetUserRequest) XXX_DiscardUnknown added in v0.0.5

func (m *GetUserRequest) XXX_DiscardUnknown()

func (*GetUserRequest) XXX_Marshal added in v0.0.5

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

func (*GetUserRequest) XXX_Merge added in v0.0.5

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

func (*GetUserRequest) XXX_Size added in v0.0.5

func (m *GetUserRequest) XXX_Size() int

func (*GetUserRequest) XXX_Unmarshal added in v0.0.5

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

type GetUserRequest_ConnectionInfo added in v0.0.5

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

services can use this info to reterive users

func (*GetUserRequest_ConnectionInfo) Descriptor added in v0.0.5

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

func (*GetUserRequest_ConnectionInfo) GetEmail added in v0.0.5

func (m *GetUserRequest_ConnectionInfo) GetEmail() string

func (*GetUserRequest_ConnectionInfo) GetPhoneNumber added in v0.0.5

func (m *GetUserRequest_ConnectionInfo) GetPhoneNumber() string

func (*GetUserRequest_ConnectionInfo) ProtoMessage added in v0.0.5

func (*GetUserRequest_ConnectionInfo) ProtoMessage()

func (*GetUserRequest_ConnectionInfo) Reset added in v0.0.5

func (m *GetUserRequest_ConnectionInfo) Reset()

func (*GetUserRequest_ConnectionInfo) String added in v0.0.5

func (*GetUserRequest_ConnectionInfo) XXX_DiscardUnknown added in v0.0.5

func (m *GetUserRequest_ConnectionInfo) XXX_DiscardUnknown()

func (*GetUserRequest_ConnectionInfo) XXX_Marshal added in v0.0.5

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

func (*GetUserRequest_ConnectionInfo) XXX_Merge added in v0.0.5

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

func (*GetUserRequest_ConnectionInfo) XXX_Size added in v0.0.5

func (m *GetUserRequest_ConnectionInfo) XXX_Size() int

func (*GetUserRequest_ConnectionInfo) XXX_Unmarshal added in v0.0.5

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

type GetUserResponse added in v0.0.5

type GetUserResponse struct {
	Info                 *GetUserResponse_UserInfo `protobuf:"bytes,1,opt,name=Info,proto3" json:"Info"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*GetUserResponse) Descriptor added in v0.0.5

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

func (*GetUserResponse) GetInfo added in v0.0.5

func (*GetUserResponse) ProtoMessage added in v0.0.5

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) Reset added in v0.0.5

func (m *GetUserResponse) Reset()

func (*GetUserResponse) String added in v0.0.5

func (m *GetUserResponse) String() string

func (*GetUserResponse) XXX_DiscardUnknown added in v0.0.5

func (m *GetUserResponse) XXX_DiscardUnknown()

func (*GetUserResponse) XXX_Marshal added in v0.0.5

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

func (*GetUserResponse) XXX_Merge added in v0.0.5

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

func (*GetUserResponse) XXX_Size added in v0.0.5

func (m *GetUserResponse) XXX_Size() int

func (*GetUserResponse) XXX_Unmarshal added in v0.0.5

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

type GetUserResponse_UserInfo added in v0.0.5

type GetUserResponse_UserInfo struct {
	UserName             string   `protobuf:"bytes,1,opt,name=UserName,proto3" json:"UserName"`
	Email                string   `protobuf:"bytes,2,opt,name=Email,proto3" json:"Email"`
	PhoneNumber          string   `protobuf:"bytes,3,opt,name=PhoneNumber,proto3" json:"PhoneNumber"`
	UserId               string   `protobuf:"bytes,4,opt,name=UserId,proto3" json:"UserId"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUserResponse_UserInfo) Descriptor added in v0.0.5

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

func (*GetUserResponse_UserInfo) GetEmail added in v0.0.5

func (m *GetUserResponse_UserInfo) GetEmail() string

func (*GetUserResponse_UserInfo) GetPhoneNumber added in v0.0.5

func (m *GetUserResponse_UserInfo) GetPhoneNumber() string

func (*GetUserResponse_UserInfo) GetUserId added in v0.0.5

func (m *GetUserResponse_UserInfo) GetUserId() string

func (*GetUserResponse_UserInfo) GetUserName added in v0.0.5

func (m *GetUserResponse_UserInfo) GetUserName() string

func (*GetUserResponse_UserInfo) ProtoMessage added in v0.0.5

func (*GetUserResponse_UserInfo) ProtoMessage()

func (*GetUserResponse_UserInfo) Reset added in v0.0.5

func (m *GetUserResponse_UserInfo) Reset()

func (*GetUserResponse_UserInfo) String added in v0.0.5

func (m *GetUserResponse_UserInfo) String() string

func (*GetUserResponse_UserInfo) XXX_DiscardUnknown added in v0.0.5

func (m *GetUserResponse_UserInfo) XXX_DiscardUnknown()

func (*GetUserResponse_UserInfo) XXX_Marshal added in v0.0.5

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

func (*GetUserResponse_UserInfo) XXX_Merge added in v0.0.5

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

func (*GetUserResponse_UserInfo) XXX_Size added in v0.0.5

func (m *GetUserResponse_UserInfo) XXX_Size() int

func (*GetUserResponse_UserInfo) XXX_Unmarshal added in v0.0.5

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

type RefreshRequest added in v0.0.4

type RefreshRequest struct {
	RefreshToken         string   `protobuf:"bytes,1,opt,name=RefreshToken,proto3" json:"RefreshToken"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RefreshRequest) Descriptor added in v0.0.4

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

func (*RefreshRequest) GetRefreshToken added in v0.0.4

func (m *RefreshRequest) GetRefreshToken() string

func (*RefreshRequest) ProtoMessage added in v0.0.4

func (*RefreshRequest) ProtoMessage()

func (*RefreshRequest) Reset added in v0.0.4

func (m *RefreshRequest) Reset()

func (*RefreshRequest) String added in v0.0.4

func (m *RefreshRequest) String() string

func (*RefreshRequest) XXX_DiscardUnknown added in v0.0.4

func (m *RefreshRequest) XXX_DiscardUnknown()

func (*RefreshRequest) XXX_Marshal added in v0.0.4

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

func (*RefreshRequest) XXX_Merge added in v0.0.4

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

func (*RefreshRequest) XXX_Size added in v0.0.4

func (m *RefreshRequest) XXX_Size() int

func (*RefreshRequest) XXX_Unmarshal added in v0.0.4

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

type ReqMeta

type ReqMeta struct {
	UTP                  string             `protobuf:"bytes,1,opt,name=UTP,proto3" json:"UTP"`
	UID                  string             `protobuf:"bytes,2,opt,name=UID,proto3" json:"UID"`
	FID                  string             `protobuf:"bytes,3,opt,name=FID,proto3" json:"FID"`
	Page                 uint32             `protobuf:"varint,4,opt,name=page,proto3" json:"page"`
	PerPage              uint32             `protobuf:"varint,5,opt,name=perPage,proto3" json:"perPage"`
	IpAddress            string             `protobuf:"bytes,6,opt,name=ipAddress,proto3" json:"ipAddress"`
	StartAt              string             `protobuf:"bytes,7,opt,name=startAt,proto3" json:"startAt"`
	EndAt                string             `protobuf:"bytes,8,opt,name=endAt,proto3" json:"endAt"`
	Sorts                *RequestMetaSorts  `protobuf:"bytes,9,opt,name=sorts,proto3" json:"sorts"`
	Filters              *RequestMetaFilter `protobuf:"bytes,10,opt,name=filters,proto3" json:"filters"`
	Action               *RequestMetaAction `protobuf:"bytes,11,opt,name=action,proto3" json:"action"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

==================== Meta

func (*ReqMeta) Descriptor

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

func (*ReqMeta) GetAction

func (m *ReqMeta) GetAction() *RequestMetaAction

func (*ReqMeta) GetEndAt

func (m *ReqMeta) GetEndAt() string

func (*ReqMeta) GetFID

func (m *ReqMeta) GetFID() string

func (*ReqMeta) GetFilters

func (m *ReqMeta) GetFilters() *RequestMetaFilter

func (*ReqMeta) GetIpAddress

func (m *ReqMeta) GetIpAddress() string

func (*ReqMeta) GetPage

func (m *ReqMeta) GetPage() uint32

func (*ReqMeta) GetPerPage

func (m *ReqMeta) GetPerPage() uint32

func (*ReqMeta) GetSorts

func (m *ReqMeta) GetSorts() *RequestMetaSorts

func (*ReqMeta) GetStartAt

func (m *ReqMeta) GetStartAt() string

func (*ReqMeta) GetUID

func (m *ReqMeta) GetUID() string

func (*ReqMeta) GetUTP

func (m *ReqMeta) GetUTP() string

func (*ReqMeta) ProtoMessage

func (*ReqMeta) ProtoMessage()

func (*ReqMeta) Reset

func (m *ReqMeta) Reset()

func (*ReqMeta) String

func (m *ReqMeta) String() string

func (*ReqMeta) XXX_DiscardUnknown

func (m *ReqMeta) XXX_DiscardUnknown()

func (*ReqMeta) XXX_Marshal

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

func (*ReqMeta) XXX_Merge

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

func (*ReqMeta) XXX_Size

func (m *ReqMeta) XXX_Size() int

func (*ReqMeta) XXX_Unmarshal

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

type RequestMessage

type RequestMessage struct {
	Name                 string   `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name"`
	Type                 string   `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type"`
	Time                 string   `protobuf:"bytes,3,opt,name=time,proto3" json:"time"`
	Header               *ReqMeta `protobuf:"bytes,4,opt,name=Header,proto3" json:"Header"`
	Body                 *Any     `protobuf:"bytes,5,opt,name=Body,proto3" json:"Body"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

============ The request message

func (*RequestMessage) Descriptor

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

func (*RequestMessage) GetBody

func (m *RequestMessage) GetBody() *Any

func (*RequestMessage) GetHeader

func (m *RequestMessage) GetHeader() *ReqMeta

func (*RequestMessage) GetName

func (m *RequestMessage) GetName() string

func (*RequestMessage) GetTime

func (m *RequestMessage) GetTime() string

func (*RequestMessage) GetType

func (m *RequestMessage) GetType() string

func (*RequestMessage) ProtoMessage

func (*RequestMessage) ProtoMessage()

func (*RequestMessage) Reset

func (m *RequestMessage) Reset()

func (*RequestMessage) String

func (m *RequestMessage) String() string

func (*RequestMessage) XXX_DiscardUnknown

func (m *RequestMessage) XXX_DiscardUnknown()

func (*RequestMessage) XXX_Marshal

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

func (*RequestMessage) XXX_Merge

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

func (*RequestMessage) XXX_Size

func (m *RequestMessage) XXX_Size() int

func (*RequestMessage) XXX_Unmarshal

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

type RequestMetaAction

type RequestMetaAction struct {
	ActionType           string   `protobuf:"bytes,1,opt,name=actionType,proto3" json:"actionType"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RequestMetaAction) Descriptor

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

func (*RequestMetaAction) GetActionType

func (m *RequestMetaAction) GetActionType() string

func (*RequestMetaAction) ProtoMessage

func (*RequestMetaAction) ProtoMessage()

func (*RequestMetaAction) Reset

func (m *RequestMetaAction) Reset()

func (*RequestMetaAction) String

func (m *RequestMetaAction) String() string

func (*RequestMetaAction) XXX_DiscardUnknown

func (m *RequestMetaAction) XXX_DiscardUnknown()

func (*RequestMetaAction) XXX_Marshal

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

func (*RequestMetaAction) XXX_Merge

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

func (*RequestMetaAction) XXX_Size

func (m *RequestMetaAction) XXX_Size() int

func (*RequestMetaAction) XXX_Unmarshal

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

type RequestMetaFilter

type RequestMetaFilter struct {
	Type                 string   `protobuf:"bytes,1,opt,name=type,proto3" json:"type"`
	Opt                  string   `protobuf:"bytes,2,opt,name=opt,proto3" json:"opt"`
	Value                string   `protobuf:"bytes,3,opt,name=value,proto3" json:"value"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RequestMetaFilter) Descriptor

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

func (*RequestMetaFilter) GetOpt

func (m *RequestMetaFilter) GetOpt() string

func (*RequestMetaFilter) GetType

func (m *RequestMetaFilter) GetType() string

func (*RequestMetaFilter) GetValue

func (m *RequestMetaFilter) GetValue() string

func (*RequestMetaFilter) ProtoMessage

func (*RequestMetaFilter) ProtoMessage()

func (*RequestMetaFilter) Reset

func (m *RequestMetaFilter) Reset()

func (*RequestMetaFilter) String

func (m *RequestMetaFilter) String() string

func (*RequestMetaFilter) XXX_DiscardUnknown

func (m *RequestMetaFilter) XXX_DiscardUnknown()

func (*RequestMetaFilter) XXX_Marshal

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

func (*RequestMetaFilter) XXX_Merge

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

func (*RequestMetaFilter) XXX_Size

func (m *RequestMetaFilter) XXX_Size() int

func (*RequestMetaFilter) XXX_Unmarshal

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

type RequestMetaSorts

type RequestMetaSorts struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name"`
	Dir                  uint32   `protobuf:"varint,2,opt,name=dir,proto3" json:"dir"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RequestMetaSorts) Descriptor

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

func (*RequestMetaSorts) GetDir

func (m *RequestMetaSorts) GetDir() uint32

func (*RequestMetaSorts) GetName

func (m *RequestMetaSorts) GetName() string

func (*RequestMetaSorts) ProtoMessage

func (*RequestMetaSorts) ProtoMessage()

func (*RequestMetaSorts) Reset

func (m *RequestMetaSorts) Reset()

func (*RequestMetaSorts) String

func (m *RequestMetaSorts) String() string

func (*RequestMetaSorts) XXX_DiscardUnknown

func (m *RequestMetaSorts) XXX_DiscardUnknown()

func (*RequestMetaSorts) XXX_Marshal

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

func (*RequestMetaSorts) XXX_Merge

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

func (*RequestMetaSorts) XXX_Size

func (m *RequestMetaSorts) XXX_Size() int

func (*RequestMetaSorts) XXX_Unmarshal

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

type RequestMetaSortsDirection

type RequestMetaSortsDirection int32
const (
	RequestMetaSorts_Descending RequestMetaSortsDirection = 0
	RequestMetaSorts_Ascending  RequestMetaSortsDirection = 1
)

func (RequestMetaSortsDirection) EnumDescriptor

func (RequestMetaSortsDirection) EnumDescriptor() ([]byte, []int)

func (RequestMetaSortsDirection) String

func (x RequestMetaSortsDirection) String() string

type Response added in v0.0.4

type Response struct {
	BearerToken          string   `protobuf:"bytes,1,opt,name=BearerToken,proto3" json:"BearerToken"`
	Duration             int64    `protobuf:"varint,2,opt,name=Duration,proto3" json:"Duration"`
	RefreshToken         string   `protobuf:"bytes,3,opt,name=RefreshToken,proto3" json:"RefreshToken"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Response) Descriptor added in v0.0.4

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

func (*Response) GetBearerToken added in v0.0.4

func (m *Response) GetBearerToken() string

func (*Response) GetDuration added in v0.0.4

func (m *Response) GetDuration() int64

func (*Response) GetRefreshToken added in v0.0.4

func (m *Response) GetRefreshToken() string

func (*Response) ProtoMessage added in v0.0.4

func (*Response) ProtoMessage()

func (*Response) Reset added in v0.0.4

func (m *Response) Reset()

func (*Response) String added in v0.0.4

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown added in v0.0.4

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal added in v0.0.4

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

func (*Response) XXX_Merge added in v0.0.4

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

func (*Response) XXX_Size added in v0.0.4

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal added in v0.0.4

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

type ResponseMessage

type ResponseMessage struct {
	Entity               string            `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity"`
	Meta                 *ResponseMetadata `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta"`
	Data                 *Any              `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

============ The response message

func (*ResponseMessage) Descriptor

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

func (*ResponseMessage) GetData

func (m *ResponseMessage) GetData() *Any

func (*ResponseMessage) GetEntity

func (m *ResponseMessage) GetEntity() string

func (*ResponseMessage) GetMeta

func (m *ResponseMessage) GetMeta() *ResponseMetadata

func (*ResponseMessage) ProtoMessage

func (*ResponseMessage) ProtoMessage()

func (*ResponseMessage) Reset

func (m *ResponseMessage) Reset()

func (*ResponseMessage) String

func (m *ResponseMessage) String() string

func (*ResponseMessage) XXX_DiscardUnknown

func (m *ResponseMessage) XXX_DiscardUnknown()

func (*ResponseMessage) XXX_Marshal

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

func (*ResponseMessage) XXX_Merge

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

func (*ResponseMessage) XXX_Size

func (m *ResponseMessage) XXX_Size() int

func (*ResponseMessage) XXX_Unmarshal

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

type ResponseMetadata

type ResponseMetadata struct {
	Total                uint32   `protobuf:"varint,1,opt,name=total,proto3" json:"total"`
	Page                 uint32   `protobuf:"varint,2,opt,name=page,proto3" json:"page"`
	PerPage              uint32   `protobuf:"varint,3,opt,name=perPage,proto3" json:"perPage"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ResponseMetadata) Descriptor

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

func (*ResponseMetadata) GetPage

func (m *ResponseMetadata) GetPage() uint32

func (*ResponseMetadata) GetPerPage

func (m *ResponseMetadata) GetPerPage() uint32

func (*ResponseMetadata) GetTotal

func (m *ResponseMetadata) GetTotal() uint32

func (*ResponseMetadata) ProtoMessage

func (*ResponseMetadata) ProtoMessage()

func (*ResponseMetadata) Reset

func (m *ResponseMetadata) Reset()

func (*ResponseMetadata) String

func (m *ResponseMetadata) String() string

func (*ResponseMetadata) XXX_DiscardUnknown

func (m *ResponseMetadata) XXX_DiscardUnknown()

func (*ResponseMetadata) XXX_Marshal

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

func (*ResponseMetadata) XXX_Merge

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

func (*ResponseMetadata) XXX_Size

func (m *ResponseMetadata) XXX_Size() int

func (*ResponseMetadata) XXX_Unmarshal

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

type SignInRequest

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

func (*SignInRequest) Descriptor

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

func (*SignInRequest) GetPassword

func (m *SignInRequest) GetPassword() string

func (*SignInRequest) GetUserName

func (m *SignInRequest) GetUserName() string

func (*SignInRequest) ProtoMessage

func (*SignInRequest) ProtoMessage()

func (*SignInRequest) Reset

func (m *SignInRequest) Reset()

func (*SignInRequest) String

func (m *SignInRequest) String() string

func (*SignInRequest) XXX_DiscardUnknown

func (m *SignInRequest) XXX_DiscardUnknown()

func (*SignInRequest) XXX_Marshal

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

func (*SignInRequest) XXX_Merge

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

func (*SignInRequest) XXX_Size

func (m *SignInRequest) XXX_Size() int

func (*SignInRequest) XXX_Unmarshal

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

type SignUpRequest

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

============== User Requests

func (*SignUpRequest) Descriptor

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

func (*SignUpRequest) GetEmail

func (m *SignUpRequest) GetEmail() string

func (*SignUpRequest) GetPassword

func (m *SignUpRequest) GetPassword() string

func (*SignUpRequest) GetPhoneNumber added in v0.0.5

func (m *SignUpRequest) GetPhoneNumber() string

func (*SignUpRequest) GetUserName

func (m *SignUpRequest) GetUserName() string

func (*SignUpRequest) ProtoMessage

func (*SignUpRequest) ProtoMessage()

func (*SignUpRequest) Reset

func (m *SignUpRequest) Reset()

func (*SignUpRequest) String

func (m *SignUpRequest) String() string

func (*SignUpRequest) XXX_DiscardUnknown

func (m *SignUpRequest) XXX_DiscardUnknown()

func (*SignUpRequest) XXX_Marshal

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

func (*SignUpRequest) XXX_Merge

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

func (*SignUpRequest) XXX_Size

func (m *SignUpRequest) XXX_Size() int

func (*SignUpRequest) XXX_Unmarshal

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

type UnimplementedUserServiceServer added in v0.0.3

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserServiceServer) GetUser added in v0.0.5

func (*UnimplementedUserServiceServer) Refresh added in v0.0.4

func (*UnimplementedUserServiceServer) SignIn added in v0.0.3

func (*UnimplementedUserServiceServer) SignUp added in v0.0.3

func (*UnimplementedUserServiceServer) Verify added in v0.0.3

type UserServiceClient added in v0.0.3

type UserServiceClient interface {
	SignIn(ctx context.Context, in *RequestMessage, opts ...grpc.CallOption) (*ResponseMessage, error)
	SignUp(ctx context.Context, in *RequestMessage, opts ...grpc.CallOption) (*ResponseMessage, error)
	Verify(ctx context.Context, in *RequestMessage, opts ...grpc.CallOption) (*ResponseMessage, error)
	Refresh(ctx context.Context, in *RequestMessage, opts ...grpc.CallOption) (*ResponseMessage, error)
	GetUser(ctx context.Context, in *RequestMessage, opts ...grpc.CallOption) (*ResponseMessage, 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 added in v0.0.3

func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient

type UserServiceServer added in v0.0.3

UserServiceServer is the server API for UserService service.

type ValidateRequest added in v0.0.4

type ValidateRequest struct {
	BearerToken          string   `protobuf:"bytes,1,opt,name=BearerToken,proto3" json:"BearerToken"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ValidateRequest) Descriptor added in v0.0.4

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

func (*ValidateRequest) GetBearerToken added in v0.0.4

func (m *ValidateRequest) GetBearerToken() string

func (*ValidateRequest) ProtoMessage added in v0.0.4

func (*ValidateRequest) ProtoMessage()

func (*ValidateRequest) Reset added in v0.0.4

func (m *ValidateRequest) Reset()

func (*ValidateRequest) String added in v0.0.4

func (m *ValidateRequest) String() string

func (*ValidateRequest) XXX_DiscardUnknown added in v0.0.4

func (m *ValidateRequest) XXX_DiscardUnknown()

func (*ValidateRequest) XXX_Marshal added in v0.0.4

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

func (*ValidateRequest) XXX_Merge added in v0.0.4

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

func (*ValidateRequest) XXX_Size added in v0.0.4

func (m *ValidateRequest) XXX_Size() int

func (*ValidateRequest) XXX_Unmarshal added in v0.0.4

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL