user

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "user"
)

Variables

View Source
var File_internal_proto_user_user_proto protoreflect.FileDescriptor

Functions

func NewUserServiceEndpoints added in v0.7.0

func NewUserServiceEndpoints() []*api.Endpoint

func RegisterUserServiceHandler added in v0.7.0

func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) error

Types

type AuthUserRequest added in v0.7.0

type AuthUserRequest struct {
	Nickname string `protobuf:"bytes,1,opt,name=Nickname,proto3" json:"Nickname,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthUserRequest) Descriptor deprecated added in v0.7.0

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

Deprecated: Use AuthUserRequest.ProtoReflect.Descriptor instead.

func (*AuthUserRequest) GetNickname added in v0.7.0

func (x *AuthUserRequest) GetNickname() string

func (*AuthUserRequest) GetPassword added in v0.7.0

func (x *AuthUserRequest) GetPassword() string

func (*AuthUserRequest) ProtoMessage added in v0.7.0

func (*AuthUserRequest) ProtoMessage()

func (*AuthUserRequest) ProtoReflect added in v0.7.0

func (x *AuthUserRequest) ProtoReflect() protoreflect.Message

func (*AuthUserRequest) Reset added in v0.7.0

func (x *AuthUserRequest) Reset()

func (*AuthUserRequest) String added in v0.7.0

func (x *AuthUserRequest) String() string

type AuthUserResponse added in v0.7.0

type AuthUserResponse struct {
	Valid  bool  `protobuf:"varint,1,opt,name=Valid,proto3" json:"Valid,omitempty"`
	UserID int64 `protobuf:"varint,2,opt,name=UserID,proto3" json:"UserID,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthUserResponse) Descriptor deprecated added in v0.7.0

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

Deprecated: Use AuthUserResponse.ProtoReflect.Descriptor instead.

func (*AuthUserResponse) GetUserID added in v0.7.0

func (x *AuthUserResponse) GetUserID() int64

func (*AuthUserResponse) GetValid added in v0.7.0

func (x *AuthUserResponse) GetValid() bool

func (*AuthUserResponse) ProtoMessage added in v0.7.0

func (*AuthUserResponse) ProtoMessage()

func (*AuthUserResponse) ProtoReflect added in v0.7.0

func (x *AuthUserResponse) ProtoReflect() protoreflect.Message

func (*AuthUserResponse) Reset added in v0.7.0

func (x *AuthUserResponse) Reset()

func (*AuthUserResponse) String added in v0.7.0

func (x *AuthUserResponse) String() string

type Contact added in v0.7.0

type Contact struct {
	Mail     string `protobuf:"bytes,1,opt,name=mail,proto3" json:"mail,omitempty"`
	Telegram int64  `protobuf:"varint,2,opt,name=telegram,proto3" json:"telegram,omitempty"`
	// contains filtered or unexported fields
}

func (*Contact) Descriptor deprecated added in v0.7.0

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

Deprecated: Use Contact.ProtoReflect.Descriptor instead.

func (*Contact) GetMail added in v0.7.0

func (x *Contact) GetMail() string

func (*Contact) GetTelegram added in v0.7.0

func (x *Contact) GetTelegram() int64

func (*Contact) ProtoMessage added in v0.7.0

func (*Contact) ProtoMessage()

func (*Contact) ProtoReflect added in v0.7.0

func (x *Contact) ProtoReflect() protoreflect.Message

func (*Contact) Reset added in v0.7.0

func (x *Contact) Reset()

func (*Contact) String added in v0.7.0

func (x *Contact) String() string

type CreateUserRequest added in v0.7.0

type CreateUserRequest struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated added in v0.7.0

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetUser added in v0.7.0

func (x *CreateUserRequest) GetUser() *User

func (*CreateUserRequest) ProtoMessage added in v0.7.0

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect added in v0.7.0

func (x *CreateUserRequest) ProtoReflect() protoreflect.Message

func (*CreateUserRequest) Reset added in v0.7.0

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String added in v0.7.0

func (x *CreateUserRequest) String() string

type CreateUserResponse added in v0.7.0

type CreateUserResponse struct {
	UserID int64 `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserResponse) Descriptor deprecated added in v0.7.0

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

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) GetUserID added in v0.7.0

func (x *CreateUserResponse) GetUserID() int64

func (*CreateUserResponse) ProtoMessage added in v0.7.0

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) ProtoReflect added in v0.7.0

func (x *CreateUserResponse) ProtoReflect() protoreflect.Message

func (*CreateUserResponse) Reset added in v0.7.0

func (x *CreateUserResponse) Reset()

func (*CreateUserResponse) String added in v0.7.0

func (x *CreateUserResponse) String() string

type GetUserRequest added in v0.7.0

type GetUserRequest struct {
	UserID int64 `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated added in v0.7.0

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetUserID added in v0.7.0

func (x *GetUserRequest) GetUserID() int64

func (*GetUserRequest) ProtoMessage added in v0.7.0

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect added in v0.7.0

func (x *GetUserRequest) ProtoReflect() protoreflect.Message

func (*GetUserRequest) Reset added in v0.7.0

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String added in v0.7.0

func (x *GetUserRequest) String() string

type GetUserResponse added in v0.7.0

type GetUserResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated added in v0.7.0

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

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetUser added in v0.7.0

func (x *GetUserResponse) GetUser() *User

func (*GetUserResponse) ProtoMessage added in v0.7.0

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect added in v0.7.0

func (x *GetUserResponse) ProtoReflect() protoreflect.Message

func (*GetUserResponse) Reset added in v0.7.0

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String added in v0.7.0

func (x *GetUserResponse) String() string

type UpdateUserRequest added in v0.7.0

type UpdateUserRequest struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated added in v0.7.0

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetUser added in v0.7.0

func (x *UpdateUserRequest) GetUser() *User

func (*UpdateUserRequest) ProtoMessage added in v0.7.0

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect added in v0.7.0

func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message

func (*UpdateUserRequest) Reset added in v0.7.0

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String added in v0.7.0

func (x *UpdateUserRequest) String() string

type User added in v0.7.0

type User struct {
	UserId   int64    `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Nickname string   `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Password string   `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Contact  *Contact `protobuf:"bytes,4,opt,name=contact,proto3" json:"contact,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated added in v0.7.0

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetContact added in v0.7.0

func (x *User) GetContact() *Contact

func (*User) GetNickname added in v0.7.0

func (x *User) GetNickname() string

func (*User) GetPassword added in v0.7.0

func (x *User) GetPassword() string

func (*User) GetUserId added in v0.7.0

func (x *User) GetUserId() int64

func (*User) ProtoMessage added in v0.7.0

func (*User) ProtoMessage()

func (*User) ProtoReflect added in v0.7.0

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset added in v0.7.0

func (x *User) Reset()

func (*User) String added in v0.7.0

func (x *User) String() string

type UserService added in v0.7.0

type UserService interface {
	AuthUser(ctx context.Context, in *AuthUserRequest, opts ...client.CallOption) (*AuthUserResponse, error)
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...client.CallOption) (*CreateUserResponse, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...client.CallOption) (*GetUserResponse, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...client.CallOption) (*emptypb.Empty, error)
}

func NewUserService added in v0.7.0

func NewUserService(name string, c client.Client) UserService

Jump to

Keyboard shortcuts

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