Versions in this module Expand all Collapse all v1 v1.0.0 Dec 4, 2022 v0 v0.0.1 Nov 29, 2022 Changes in this version + var File_api_proto protoreflect.FileDescriptor + var UserStorage_ServiceDesc = grpc.ServiceDesc + func RegisterUserStorageServer(s grpc.ServiceRegistrar, srv UserStorageServer) + type Empty struct + func (*Empty) Descriptor() ([]byte, []int) + func (*Empty) ProtoMessage() + func (x *Empty) ProtoReflect() protoreflect.Message + func (x *Empty) Reset() + func (x *Empty) String() string + type Id struct + Id int32 + func (*Id) Descriptor() ([]byte, []int) + func (*Id) ProtoMessage() + func (x *Id) GetId() int32 + func (x *Id) ProtoReflect() protoreflect.Message + func (x *Id) Reset() + func (x *Id) String() string + type UnimplementedUserStorageServer struct + func (UnimplementedUserStorageServer) Create(context.Context, *User) (*User, error) + func (UnimplementedUserStorageServer) List(*Empty, UserStorage_ListServer) error + func (UnimplementedUserStorageServer) Remove(context.Context, *Id) (*Empty, error) + func (UnimplementedUserStorageServer) Update(context.Context, *User) (*User, error) + type UnsafeUserStorageServer interface + type User struct + Age int32 + Description string + Id int32 + Name string + func (*User) Descriptor() ([]byte, []int) + func (*User) ProtoMessage() + func (x *User) GetAge() int32 + func (x *User) GetDescription() string + func (x *User) GetId() int32 + func (x *User) GetName() string + func (x *User) ProtoReflect() protoreflect.Message + func (x *User) Reset() + func (x *User) String() string + type UserStorageClient interface + Create func(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) + List func(ctx context.Context, in *Empty, opts ...grpc.CallOption) (UserStorage_ListClient, error) + Remove func(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Empty, error) + Update func(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) + func NewUserStorageClient(cc grpc.ClientConnInterface) UserStorageClient + type UserStorageServer interface + Create func(context.Context, *User) (*User, error) + List func(*Empty, UserStorage_ListServer) error + Remove func(context.Context, *Id) (*Empty, error) + Update func(context.Context, *User) (*User, error) + type UserStorage_ListClient interface + Recv func() (*User, error) + type UserStorage_ListServer interface + Send func(*User) error + type Users struct + Users []*User + func (*Users) Descriptor() ([]byte, []int) + func (*Users) ProtoMessage() + func (x *Users) GetUsers() []*User + func (x *Users) ProtoReflect() protoreflect.Message + func (x *Users) Reset() + func (x *Users) String() string