userpb

package
v0.0.0-...-8b9d747 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_user_userpb_user_proto protoreflect.FileDescriptor

Functions

func RegisterUserServiceServer

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

Types

type DeleteRequest

type DeleteRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetId

func (x *DeleteRequest) GetId() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type GetRequest

type GetRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetId

func (x *GetRequest) GetId() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type NewRequest

type NewRequest struct {
	Name     string             `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Nickname string             `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Email    string             `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Active   bool               `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty"`
	Balance  int64              `protobuf:"varint,5,opt,name=balance,proto3" json:"balance,omitempty"`
	Currency paymentpb.Currency `protobuf:"varint,6,opt,name=currency,proto3,enum=paymentpb.Currency" json:"currency,omitempty"`
	Image    string             `protobuf:"bytes,7,opt,name=image,proto3" json:"image,omitempty"`
	Pwd      string             `protobuf:"bytes,8,opt,name=pwd,proto3" json:"pwd,omitempty"`
	Metadata map[string]string  `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*NewRequest) Descriptor deprecated

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

Deprecated: Use NewRequest.ProtoReflect.Descriptor instead.

func (*NewRequest) GetActive

func (x *NewRequest) GetActive() bool

func (*NewRequest) GetBalance

func (x *NewRequest) GetBalance() int64

func (*NewRequest) GetCurrency

func (x *NewRequest) GetCurrency() paymentpb.Currency

func (*NewRequest) GetEmail

func (x *NewRequest) GetEmail() string

func (*NewRequest) GetImage

func (x *NewRequest) GetImage() string

func (*NewRequest) GetMetadata

func (x *NewRequest) GetMetadata() map[string]string

func (*NewRequest) GetName

func (x *NewRequest) GetName() string

func (*NewRequest) GetNickname

func (x *NewRequest) GetNickname() string

func (*NewRequest) GetPwd

func (x *NewRequest) GetPwd() string

func (*NewRequest) ProtoMessage

func (*NewRequest) ProtoMessage()

func (*NewRequest) ProtoReflect

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

func (*NewRequest) Reset

func (x *NewRequest) Reset()

func (*NewRequest) String

func (x *NewRequest) String() string

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserServiceServer) Delete

func (*UnimplementedUserServiceServer) Get

func (*UnimplementedUserServiceServer) New

func (*UnimplementedUserServiceServer) Update

type UpdateRequest

type UpdateRequest struct {
	Id       string             `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string             `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Nickname string             `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Email    string             `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	Active   bool               `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"`
	Balance  int64              `protobuf:"varint,6,opt,name=balance,proto3" json:"balance,omitempty"`
	Currency paymentpb.Currency `protobuf:"varint,7,opt,name=currency,proto3,enum=paymentpb.Currency" json:"currency,omitempty"`
	Image    string             `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"`
	Pwd      string             `protobuf:"bytes,9,opt,name=pwd,proto3" json:"pwd,omitempty"`
	Metadata map[string]string  `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetActive

func (x *UpdateRequest) GetActive() bool

func (*UpdateRequest) GetBalance

func (x *UpdateRequest) GetBalance() int64

func (*UpdateRequest) GetCurrency

func (x *UpdateRequest) GetCurrency() paymentpb.Currency

func (*UpdateRequest) GetEmail

func (x *UpdateRequest) GetEmail() string

func (*UpdateRequest) GetId

func (x *UpdateRequest) GetId() string

func (*UpdateRequest) GetImage

func (x *UpdateRequest) GetImage() string

func (*UpdateRequest) GetMetadata

func (x *UpdateRequest) GetMetadata() map[string]string

func (*UpdateRequest) GetName

func (x *UpdateRequest) GetName() string

func (*UpdateRequest) GetNickname

func (x *UpdateRequest) GetNickname() string

func (*UpdateRequest) GetPwd

func (x *UpdateRequest) GetPwd() string

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

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

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

type User

type User struct {
	Id       string             `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string             `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Nickname string             `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Email    string             `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	Active   bool               `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"`
	Balance  int64              `protobuf:"varint,6,opt,name=balance,proto3" json:"balance,omitempty"`
	Currency paymentpb.Currency `protobuf:"varint,7,opt,name=currency,proto3,enum=paymentpb.Currency" json:"currency,omitempty"`
	Image    string             `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"`
	Pwd      string             `protobuf:"bytes,9,opt,name=pwd,proto3" json:"pwd,omitempty"`
	Metadata map[string]string  `` /* 158-byte string literal not displayed */
	Created  int64              `protobuf:"varint,998,opt,name=created,proto3" json:"created,omitempty"`
	Updated  int64              `protobuf:"varint,999,opt,name=updated,proto3" json:"updated,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetActive

func (x *User) GetActive() bool

func (*User) GetBalance

func (x *User) GetBalance() int64

func (*User) GetCreated

func (x *User) GetCreated() int64

func (*User) GetCurrency

func (x *User) GetCurrency() paymentpb.Currency

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetImage

func (x *User) GetImage() string

func (*User) GetMetadata

func (x *User) GetMetadata() map[string]string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetNickname

func (x *User) GetNickname() string

func (*User) GetPwd

func (x *User) GetPwd() string

func (*User) GetUpdated

func (x *User) GetUpdated() int64

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type UserServiceClient

type UserServiceClient interface {
	New(ctx context.Context, in *NewRequest, opts ...grpc.CallOption) (*User, error)
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*User, error)
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*User, error)
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*Empty, 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.

type UserServiceServer

type UserServiceServer interface {
	New(context.Context, *NewRequest) (*User, error)
	Get(context.Context, *GetRequest) (*User, error)
	Update(context.Context, *UpdateRequest) (*User, error)
	Delete(context.Context, *DeleteRequest) (*Empty, 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