user_srv

package
v0.0.23 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Type_name = map[int32]string{
	0: "main",
	1: "extra",
	2: "meta",
}
View Source
var Type_value = map[string]int32{
	"main":  0,
	"extra": 1,
	"meta":  2,
}

Functions

func RegisterUsersServer

func RegisterUsersServer(s *grpc.Server, srv UsersServer)

Types

type ActivateRequest

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

Activate Function

func (*ActivateRequest) Descriptor

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

func (*ActivateRequest) GetEmail

func (m *ActivateRequest) GetEmail() string

func (*ActivateRequest) ProtoMessage

func (*ActivateRequest) ProtoMessage()

func (*ActivateRequest) Reset

func (m *ActivateRequest) Reset()

func (*ActivateRequest) String

func (m *ActivateRequest) String() string

func (*ActivateRequest) XXX_DiscardUnknown

func (m *ActivateRequest) XXX_DiscardUnknown()

func (*ActivateRequest) XXX_Marshal

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

func (*ActivateRequest) XXX_Merge

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

func (*ActivateRequest) XXX_Size

func (m *ActivateRequest) XXX_Size() int

func (*ActivateRequest) XXX_Unmarshal

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

type ActivateResponse

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

func (*ActivateResponse) Descriptor

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

func (*ActivateResponse) GetMessage

func (m *ActivateResponse) GetMessage() string

func (*ActivateResponse) ProtoMessage

func (*ActivateResponse) ProtoMessage()

func (*ActivateResponse) Reset

func (m *ActivateResponse) Reset()

func (*ActivateResponse) String

func (m *ActivateResponse) String() string

func (*ActivateResponse) XXX_DiscardUnknown

func (m *ActivateResponse) XXX_DiscardUnknown()

func (*ActivateResponse) XXX_Marshal

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

func (*ActivateResponse) XXX_Merge

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

func (*ActivateResponse) XXX_Size

func (m *ActivateResponse) XXX_Size() int

func (*ActivateResponse) XXX_Unmarshal

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

type AddRequest

type AddRequest struct {
	MainData             *UserMain  `protobuf:"bytes,1,opt,name=mainData,proto3" json:"mainData,omitempty"`
	ExtraData            *UserExtra `protobuf:"bytes,2,opt,name=extraData,proto3" json:"extraData,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

Add Function

func (*AddRequest) Descriptor

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

func (*AddRequest) GetExtraData

func (m *AddRequest) GetExtraData() *UserExtra

func (*AddRequest) GetMainData

func (m *AddRequest) GetMainData() *UserMain

func (*AddRequest) ProtoMessage

func (*AddRequest) ProtoMessage()

func (*AddRequest) Reset

func (m *AddRequest) Reset()

func (*AddRequest) String

func (m *AddRequest) String() string

func (*AddRequest) XXX_DiscardUnknown

func (m *AddRequest) XXX_DiscardUnknown()

func (*AddRequest) XXX_Marshal

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

func (*AddRequest) XXX_Merge

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

func (*AddRequest) XXX_Size

func (m *AddRequest) XXX_Size() int

func (*AddRequest) XXX_Unmarshal

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

type AddResponse

type AddResponse struct {
	UserID               string   `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddResponse) Descriptor

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

func (*AddResponse) GetMessage

func (m *AddResponse) GetMessage() string

func (*AddResponse) GetUserID

func (m *AddResponse) GetUserID() string

func (*AddResponse) ProtoMessage

func (*AddResponse) ProtoMessage()

func (*AddResponse) Reset

func (m *AddResponse) Reset()

func (*AddResponse) String

func (m *AddResponse) String() string

func (*AddResponse) XXX_DiscardUnknown

func (m *AddResponse) XXX_DiscardUnknown()

func (*AddResponse) XXX_Marshal

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

func (*AddResponse) XXX_Merge

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

func (*AddResponse) XXX_Size

func (m *AddResponse) XXX_Size() int

func (*AddResponse) XXX_Unmarshal

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

type AuthRequest

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

Auth Function

func (*AuthRequest) Descriptor

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

func (*AuthRequest) GetEmail

func (m *AuthRequest) GetEmail() string

func (*AuthRequest) GetPassword

func (m *AuthRequest) GetPassword() string

func (*AuthRequest) GetUsername

func (m *AuthRequest) GetUsername() string

func (*AuthRequest) ProtoMessage

func (*AuthRequest) ProtoMessage()

func (*AuthRequest) Reset

func (m *AuthRequest) Reset()

func (*AuthRequest) String

func (m *AuthRequest) String() string

func (*AuthRequest) XXX_DiscardUnknown

func (m *AuthRequest) XXX_DiscardUnknown()

func (*AuthRequest) XXX_Marshal

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

func (*AuthRequest) XXX_Merge

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

func (*AuthRequest) XXX_Size

func (m *AuthRequest) XXX_Size() int

func (*AuthRequest) XXX_Unmarshal

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

type AuthResponse

type AuthResponse struct {
	Valid                bool     `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	UserID               string   `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthResponse) Descriptor

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

func (*AuthResponse) GetMessage

func (m *AuthResponse) GetMessage() string

func (*AuthResponse) GetUserID

func (m *AuthResponse) GetUserID() string

func (*AuthResponse) GetValid

func (m *AuthResponse) GetValid() bool

func (*AuthResponse) ProtoMessage

func (*AuthResponse) ProtoMessage()

func (*AuthResponse) Reset

func (m *AuthResponse) Reset()

func (*AuthResponse) String

func (m *AuthResponse) String() string

func (*AuthResponse) XXX_DiscardUnknown

func (m *AuthResponse) XXX_DiscardUnknown()

func (*AuthResponse) XXX_Marshal

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

func (*AuthResponse) XXX_Merge

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

func (*AuthResponse) XXX_Size

func (m *AuthResponse) XXX_Size() int

func (*AuthResponse) XXX_Unmarshal

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

type GetRequest

type GetRequest struct {
	UserID               string   `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	Username             string   `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email                string   `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Type                 Type     `protobuf:"varint,4,opt,name=type,proto3,enum=Type" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Get Function

func (*GetRequest) Descriptor

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

func (*GetRequest) GetEmail added in v0.0.21

func (m *GetRequest) GetEmail() string

func (*GetRequest) GetType added in v0.0.22

func (m *GetRequest) GetType() Type

func (*GetRequest) GetUserID

func (m *GetRequest) GetUserID() string

func (*GetRequest) GetUsername added in v0.0.21

func (m *GetRequest) GetUsername() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) Reset

func (m *GetRequest) Reset()

func (*GetRequest) String

func (m *GetRequest) String() string

func (*GetRequest) XXX_DiscardUnknown

func (m *GetRequest) XXX_DiscardUnknown()

func (*GetRequest) XXX_Marshal

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

func (*GetRequest) XXX_Merge

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

func (*GetRequest) XXX_Size

func (m *GetRequest) XXX_Size() int

func (*GetRequest) XXX_Unmarshal

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

type GetResponse added in v0.0.21

type GetResponse struct {
	Main                 *UserMain  `protobuf:"bytes,1,opt,name=main,proto3" json:"main,omitempty"`
	Extra                *UserExtra `protobuf:"bytes,2,opt,name=extra,proto3" json:"extra,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*GetResponse) Descriptor added in v0.0.21

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

func (*GetResponse) GetExtra added in v0.0.21

func (m *GetResponse) GetExtra() *UserExtra

func (*GetResponse) GetMain added in v0.0.21

func (m *GetResponse) GetMain() *UserMain

func (*GetResponse) ProtoMessage added in v0.0.21

func (*GetResponse) ProtoMessage()

func (*GetResponse) Reset added in v0.0.21

func (m *GetResponse) Reset()

func (*GetResponse) String added in v0.0.21

func (m *GetResponse) String() string

func (*GetResponse) XXX_DiscardUnknown added in v0.0.21

func (m *GetResponse) XXX_DiscardUnknown()

func (*GetResponse) XXX_Marshal added in v0.0.21

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

func (*GetResponse) XXX_Merge added in v0.0.21

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

func (*GetResponse) XXX_Size added in v0.0.21

func (m *GetResponse) XXX_Size() int

func (*GetResponse) XXX_Unmarshal added in v0.0.21

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

type Type added in v0.0.22

type Type int32
const (
	Type_main  Type = 0
	Type_extra Type = 1
	Type_meta  Type = 2
)

func (Type) EnumDescriptor added in v0.0.22

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

func (Type) String added in v0.0.22

func (x Type) String() string

type UnimplementedUsersServer

type UnimplementedUsersServer struct {
}

UnimplementedUsersServer can be embedded to have forward compatible implementations.

func (*UnimplementedUsersServer) Activate

func (*UnimplementedUsersServer) Add

func (*UnimplementedUsersServer) Auth

func (*UnimplementedUsersServer) Get

func (*UnimplementedUsersServer) Update

type UpdateRequest

type UpdateRequest struct {
	UserID               string     `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	Main                 *UserMain  `protobuf:"bytes,2,opt,name=main,proto3" json:"main,omitempty"`
	Extra                *UserExtra `protobuf:"bytes,3,opt,name=extra,proto3" json:"extra,omitempty"`
	Type                 Type       `protobuf:"varint,4,opt,name=type,proto3,enum=Type" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

Update function

func (*UpdateRequest) Descriptor

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

func (*UpdateRequest) GetExtra added in v0.0.21

func (m *UpdateRequest) GetExtra() *UserExtra

func (*UpdateRequest) GetMain added in v0.0.21

func (m *UpdateRequest) GetMain() *UserMain

func (*UpdateRequest) GetType added in v0.0.22

func (m *UpdateRequest) GetType() Type

func (*UpdateRequest) GetUserID

func (m *UpdateRequest) GetUserID() string

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) Reset

func (m *UpdateRequest) Reset()

func (*UpdateRequest) String

func (m *UpdateRequest) String() string

func (*UpdateRequest) XXX_DiscardUnknown

func (m *UpdateRequest) XXX_DiscardUnknown()

func (*UpdateRequest) XXX_Marshal

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

func (*UpdateRequest) XXX_Merge

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

func (*UpdateRequest) XXX_Size

func (m *UpdateRequest) XXX_Size() int

func (*UpdateRequest) XXX_Unmarshal

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

type UpdateResponse

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

func (*UpdateResponse) Descriptor

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

func (*UpdateResponse) GetMessage

func (m *UpdateResponse) GetMessage() string

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) Reset

func (m *UpdateResponse) Reset()

func (*UpdateResponse) String

func (m *UpdateResponse) String() string

func (*UpdateResponse) XXX_DiscardUnknown

func (m *UpdateResponse) XXX_DiscardUnknown()

func (*UpdateResponse) XXX_Marshal

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

func (*UpdateResponse) XXX_Merge

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

func (*UpdateResponse) XXX_Size

func (m *UpdateResponse) XXX_Size() int

func (*UpdateResponse) XXX_Unmarshal

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

type UserExtra

type UserExtra struct {
	UserId               string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	FirstName            string   `protobuf:"bytes,2,opt,name=firstName,proto3" json:"firstName,omitempty"`
	LastName             string   `protobuf:"bytes,3,opt,name=lastName,proto3" json:"lastName,omitempty"`
	Gender               string   `protobuf:"bytes,4,opt,name=gender,proto3" json:"gender,omitempty"`
	BirthdayUTC          int64    `protobuf:"varint,5,opt,name=birthdayUTC,proto3" json:"birthdayUTC,omitempty"`
	Message              string   `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserExtra) Descriptor

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

func (*UserExtra) GetBirthdayUTC

func (m *UserExtra) GetBirthdayUTC() int64

func (*UserExtra) GetFirstName

func (m *UserExtra) GetFirstName() string

func (*UserExtra) GetGender

func (m *UserExtra) GetGender() string

func (*UserExtra) GetLastName

func (m *UserExtra) GetLastName() string

func (*UserExtra) GetMessage

func (m *UserExtra) GetMessage() string

func (*UserExtra) GetUserId

func (m *UserExtra) GetUserId() string

func (*UserExtra) ProtoMessage

func (*UserExtra) ProtoMessage()

func (*UserExtra) Reset

func (m *UserExtra) Reset()

func (*UserExtra) String

func (m *UserExtra) String() string

func (*UserExtra) XXX_DiscardUnknown

func (m *UserExtra) XXX_DiscardUnknown()

func (*UserExtra) XXX_Marshal

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

func (*UserExtra) XXX_Merge

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

func (*UserExtra) XXX_Size

func (m *UserExtra) XXX_Size() int

func (*UserExtra) XXX_Unmarshal

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

type UserMain

type UserMain struct {
	UserID               string   `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	Username             string   `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email                string   `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Password             string   `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	Message              string   `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserMain) Descriptor

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

func (*UserMain) GetEmail

func (m *UserMain) GetEmail() string

func (*UserMain) GetMessage

func (m *UserMain) GetMessage() string

func (*UserMain) GetPassword

func (m *UserMain) GetPassword() string

func (*UserMain) GetUserID

func (m *UserMain) GetUserID() string

func (*UserMain) GetUsername

func (m *UserMain) GetUsername() string

func (*UserMain) ProtoMessage

func (*UserMain) ProtoMessage()

func (*UserMain) Reset

func (m *UserMain) Reset()

func (*UserMain) String

func (m *UserMain) String() string

func (*UserMain) XXX_DiscardUnknown

func (m *UserMain) XXX_DiscardUnknown()

func (*UserMain) XXX_Marshal

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

func (*UserMain) XXX_Merge

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

func (*UserMain) XXX_Size

func (m *UserMain) XXX_Size() int

func (*UserMain) XXX_Unmarshal

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

type UsersClient

type UsersClient interface {
	Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error)
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*UserMain, error)
	Auth(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error)
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
	Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error)
}

UsersClient is the client API for Users service.

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

func NewUsersClient

func NewUsersClient(cc *grpc.ClientConn) UsersClient

type UsersServer

UsersServer is the server API for Users service.

Jump to

Keyboard shortcuts

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