Versions in this module Expand all Collapse all v1 v1.0.0 Jun 29, 2021 Changes in this version + var AttachmentService_ServiceDesc = grpc.ServiceDesc + var File_entpb_entpb_proto protoreflect.FileDescriptor + var GetAttachmentRequest_View_name = map[int32]string + var GetAttachmentRequest_View_value = map[string]int32 + var GetUserRequest_View_name = map[int32]string + var GetUserRequest_View_value = map[string]int32 + var Todo_Status_name = map[int32]string + var Todo_Status_value = map[string]int32 + var UserService_ServiceDesc = grpc.ServiceDesc + var User_Status_name = map[int32]string + var User_Status_value = map[string]int32 + func RegisterAttachmentServiceServer(s grpc.ServiceRegistrar, srv AttachmentServiceServer) + func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer) + type Attachment struct + Id []byte + Recipients []*User + User *User + func (*Attachment) Descriptor() ([]byte, []int) + func (*Attachment) ProtoMessage() + func (x *Attachment) GetId() []byte + func (x *Attachment) GetRecipients() []*User + func (x *Attachment) GetUser() *User + func (x *Attachment) ProtoReflect() protoreflect.Message + func (x *Attachment) Reset() + func (x *Attachment) String() string + type AttachmentService struct + func NewAttachmentService(client *ent.Client) *AttachmentService + func (svc *AttachmentService) Create(ctx context.Context, req *CreateAttachmentRequest) (*Attachment, error) + func (svc *AttachmentService) Delete(ctx context.Context, req *DeleteAttachmentRequest) (*emptypb.Empty, error) + func (svc *AttachmentService) Get(ctx context.Context, req *GetAttachmentRequest) (*Attachment, error) + func (svc *AttachmentService) Update(ctx context.Context, req *UpdateAttachmentRequest) (*Attachment, error) + type AttachmentServiceClient interface + Create func(ctx context.Context, in *CreateAttachmentRequest, opts ...grpc.CallOption) (*Attachment, error) + Delete func(ctx context.Context, in *DeleteAttachmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + Get func(ctx context.Context, in *GetAttachmentRequest, opts ...grpc.CallOption) (*Attachment, error) + Update func(ctx context.Context, in *UpdateAttachmentRequest, opts ...grpc.CallOption) (*Attachment, error) + func NewAttachmentServiceClient(cc grpc.ClientConnInterface) AttachmentServiceClient + type AttachmentServiceServer interface + Create func(context.Context, *CreateAttachmentRequest) (*Attachment, error) + Delete func(context.Context, *DeleteAttachmentRequest) (*emptypb.Empty, error) + Get func(context.Context, *GetAttachmentRequest) (*Attachment, error) + Update func(context.Context, *UpdateAttachmentRequest) (*Attachment, error) + type CreateAttachmentRequest struct + Attachment *Attachment + func (*CreateAttachmentRequest) Descriptor() ([]byte, []int) + func (*CreateAttachmentRequest) ProtoMessage() + func (x *CreateAttachmentRequest) GetAttachment() *Attachment + func (x *CreateAttachmentRequest) ProtoReflect() protoreflect.Message + func (x *CreateAttachmentRequest) Reset() + func (x *CreateAttachmentRequest) String() string + type CreateUserRequest struct + User *User + func (*CreateUserRequest) Descriptor() ([]byte, []int) + func (*CreateUserRequest) ProtoMessage() + func (x *CreateUserRequest) GetUser() *User + func (x *CreateUserRequest) ProtoReflect() protoreflect.Message + func (x *CreateUserRequest) Reset() + func (x *CreateUserRequest) String() string + type DeleteAttachmentRequest struct + Id []byte + func (*DeleteAttachmentRequest) Descriptor() ([]byte, []int) + func (*DeleteAttachmentRequest) ProtoMessage() + func (x *DeleteAttachmentRequest) GetId() []byte + func (x *DeleteAttachmentRequest) ProtoReflect() protoreflect.Message + func (x *DeleteAttachmentRequest) Reset() + func (x *DeleteAttachmentRequest) String() string + type DeleteUserRequest struct + Id int32 + func (*DeleteUserRequest) Descriptor() ([]byte, []int) + func (*DeleteUserRequest) ProtoMessage() + func (x *DeleteUserRequest) GetId() int32 + func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message + func (x *DeleteUserRequest) Reset() + func (x *DeleteUserRequest) String() string + type GetAttachmentRequest struct + Id []byte + View GetAttachmentRequest_View + func (*GetAttachmentRequest) Descriptor() ([]byte, []int) + func (*GetAttachmentRequest) ProtoMessage() + func (x *GetAttachmentRequest) GetId() []byte + func (x *GetAttachmentRequest) GetView() GetAttachmentRequest_View + func (x *GetAttachmentRequest) ProtoReflect() protoreflect.Message + func (x *GetAttachmentRequest) Reset() + func (x *GetAttachmentRequest) String() string + type GetAttachmentRequest_View int32 + const GetAttachmentRequest_BASIC + const GetAttachmentRequest_VIEW_UNSPECIFIED + const GetAttachmentRequest_WITH_EDGE_IDS + func (GetAttachmentRequest_View) Descriptor() protoreflect.EnumDescriptor + func (GetAttachmentRequest_View) EnumDescriptor() ([]byte, []int) + func (GetAttachmentRequest_View) Type() protoreflect.EnumType + func (x GetAttachmentRequest_View) Enum() *GetAttachmentRequest_View + func (x GetAttachmentRequest_View) Number() protoreflect.EnumNumber + func (x GetAttachmentRequest_View) String() string + type GetUserRequest struct + Id int32 + View GetUserRequest_View + func (*GetUserRequest) Descriptor() ([]byte, []int) + func (*GetUserRequest) ProtoMessage() + func (x *GetUserRequest) GetId() int32 + func (x *GetUserRequest) GetView() GetUserRequest_View + func (x *GetUserRequest) ProtoReflect() protoreflect.Message + func (x *GetUserRequest) Reset() + func (x *GetUserRequest) String() string + type GetUserRequest_View int32 + const GetUserRequest_BASIC + const GetUserRequest_VIEW_UNSPECIFIED + const GetUserRequest_WITH_EDGE_IDS + func (GetUserRequest_View) Descriptor() protoreflect.EnumDescriptor + func (GetUserRequest_View) EnumDescriptor() ([]byte, []int) + func (GetUserRequest_View) Type() protoreflect.EnumType + func (x GetUserRequest_View) Enum() *GetUserRequest_View + func (x GetUserRequest_View) Number() protoreflect.EnumNumber + func (x GetUserRequest_View) String() string + type Group struct + Id int32 + Name string + Users []*User + func (*Group) Descriptor() ([]byte, []int) + func (*Group) ProtoMessage() + func (x *Group) GetId() int32 + func (x *Group) GetName() string + func (x *Group) GetUsers() []*User + func (x *Group) ProtoReflect() protoreflect.Message + func (x *Group) Reset() + func (x *Group) String() string + type Todo struct + Id int32 + Status Todo_Status + Task string + User *User + func (*Todo) Descriptor() ([]byte, []int) + func (*Todo) ProtoMessage() + func (x *Todo) GetId() int32 + func (x *Todo) GetStatus() Todo_Status + func (x *Todo) GetTask() string + func (x *Todo) GetUser() *User + func (x *Todo) ProtoReflect() protoreflect.Message + func (x *Todo) Reset() + func (x *Todo) String() string + type Todo_Status int32 + const Todo_DONE + const Todo_IN_PROGRESS + const Todo_PENDING + func (Todo_Status) Descriptor() protoreflect.EnumDescriptor + func (Todo_Status) EnumDescriptor() ([]byte, []int) + func (Todo_Status) Type() protoreflect.EnumType + func (x Todo_Status) Enum() *Todo_Status + func (x Todo_Status) Number() protoreflect.EnumNumber + func (x Todo_Status) String() string + type UnimplementedAttachmentServiceServer struct + func (UnimplementedAttachmentServiceServer) Create(context.Context, *CreateAttachmentRequest) (*Attachment, error) + func (UnimplementedAttachmentServiceServer) Delete(context.Context, *DeleteAttachmentRequest) (*emptypb.Empty, error) + func (UnimplementedAttachmentServiceServer) Get(context.Context, *GetAttachmentRequest) (*Attachment, error) + func (UnimplementedAttachmentServiceServer) Update(context.Context, *UpdateAttachmentRequest) (*Attachment, error) + type UnimplementedUserServiceServer struct + func (UnimplementedUserServiceServer) Create(context.Context, *CreateUserRequest) (*User, error) + func (UnimplementedUserServiceServer) Delete(context.Context, *DeleteUserRequest) (*emptypb.Empty, error) + func (UnimplementedUserServiceServer) Get(context.Context, *GetUserRequest) (*User, error) + func (UnimplementedUserServiceServer) Update(context.Context, *UpdateUserRequest) (*User, error) + type UnsafeAttachmentServiceServer interface + type UnsafeUserServiceServer interface + type UpdateAttachmentRequest struct + Attachment *Attachment + func (*UpdateAttachmentRequest) Descriptor() ([]byte, []int) + func (*UpdateAttachmentRequest) ProtoMessage() + func (x *UpdateAttachmentRequest) GetAttachment() *Attachment + func (x *UpdateAttachmentRequest) ProtoReflect() protoreflect.Message + func (x *UpdateAttachmentRequest) Reset() + func (x *UpdateAttachmentRequest) String() string + type UpdateUserRequest struct + User *User + func (*UpdateUserRequest) Descriptor() ([]byte, []int) + func (*UpdateUserRequest) ProtoMessage() + func (x *UpdateUserRequest) GetUser() *User + func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message + func (x *UpdateUserRequest) Reset() + func (x *UpdateUserRequest) String() string + type User struct + Attachment *Attachment + Banned bool + CrmId []byte + CustomPb uint64 + Exp uint64 + ExternalId int32 + Group *Group + Id int32 + Joined *timestamppb.Timestamp + OptBool *wrapperspb.BoolValue + OptNum *wrapperspb.Int32Value + OptStr *wrapperspb.StringValue + Points uint32 + Received []*Attachment + Status User_Status + UserName string + func (*User) Descriptor() ([]byte, []int) + func (*User) ProtoMessage() + func (x *User) GetAttachment() *Attachment + func (x *User) GetBanned() bool + func (x *User) GetCrmId() []byte + func (x *User) GetCustomPb() uint64 + func (x *User) GetExp() uint64 + func (x *User) GetExternalId() int32 + func (x *User) GetGroup() *Group + func (x *User) GetId() int32 + func (x *User) GetJoined() *timestamppb.Timestamp + func (x *User) GetOptBool() *wrapperspb.BoolValue + func (x *User) GetOptNum() *wrapperspb.Int32Value + func (x *User) GetOptStr() *wrapperspb.StringValue + func (x *User) GetPoints() uint32 + func (x *User) GetReceived() []*Attachment + func (x *User) GetStatus() User_Status + func (x *User) GetUserName() string + func (x *User) ProtoReflect() protoreflect.Message + func (x *User) Reset() + func (x *User) String() string + type UserService struct + func NewUserService(client *ent.Client) *UserService + func (svc *UserService) Create(ctx context.Context, req *CreateUserRequest) (*User, error) + func (svc *UserService) Delete(ctx context.Context, req *DeleteUserRequest) (*emptypb.Empty, error) + func (svc *UserService) Get(ctx context.Context, req *GetUserRequest) (*User, error) + func (svc *UserService) Update(ctx context.Context, req *UpdateUserRequest) (*User, error) + type UserServiceClient interface + Create func(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error) + Delete func(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + Get func(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error) + Update func(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error) + func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient + type UserServiceServer interface + Create func(context.Context, *CreateUserRequest) (*User, error) + Delete func(context.Context, *DeleteUserRequest) (*emptypb.Empty, error) + Get func(context.Context, *GetUserRequest) (*User, error) + Update func(context.Context, *UpdateUserRequest) (*User, error) + type User_Status int32 + const User_ACTIVE + const User_PENDING + const User_STATUS_UNSPECIFIED + func (User_Status) Descriptor() protoreflect.EnumDescriptor + func (User_Status) EnumDescriptor() ([]byte, []int) + func (User_Status) Type() protoreflect.EnumType + func (x User_Status) Enum() *User_Status + func (x User_Status) Number() protoreflect.EnumNumber + func (x User_Status) String() string