Documentation ¶
Index ¶
- Variables
- func RegisterPicturesServer(s grpc.ServiceRegistrar, srv PicturesServer)
- type CreateUserPictureRequest
- func (*CreateUserPictureRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserPictureRequest) GetBase64() string
- func (x *CreateUserPictureRequest) GetTitle() string
- func (x *CreateUserPictureRequest) GetUserId() string
- func (*CreateUserPictureRequest) ProtoMessage()
- func (x *CreateUserPictureRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserPictureRequest) Reset()
- func (x *CreateUserPictureRequest) String() string
- type DeleteUserPictureRequest
- func (*DeleteUserPictureRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserPictureRequest) GetPictureId() string
- func (x *DeleteUserPictureRequest) GetUserId() string
- func (*DeleteUserPictureRequest) ProtoMessage()
- func (x *DeleteUserPictureRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteUserPictureRequest) Reset()
- func (x *DeleteUserPictureRequest) String() string
- type GetUserPictureRequest
- func (*GetUserPictureRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserPictureRequest) GetPictureId() string
- func (x *GetUserPictureRequest) GetUserId() string
- func (*GetUserPictureRequest) ProtoMessage()
- func (x *GetUserPictureRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserPictureRequest) Reset()
- func (x *GetUserPictureRequest) String() string
- type GetUserPicturesRequest
- func (*GetUserPicturesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserPicturesRequest) GetUserId() string
- func (*GetUserPicturesRequest) ProtoMessage()
- func (x *GetUserPicturesRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserPicturesRequest) Reset()
- func (x *GetUserPicturesRequest) String() string
- type PictureMessage
- func (*PictureMessage) Descriptor() ([]byte, []int)deprecated
- func (x *PictureMessage) GetBase64() string
- func (x *PictureMessage) GetId() string
- func (x *PictureMessage) GetTitle() string
- func (x *PictureMessage) GetUserId() string
- func (*PictureMessage) ProtoMessage()
- func (x *PictureMessage) ProtoReflect() protoreflect.Message
- func (x *PictureMessage) Reset()
- func (x *PictureMessage) String() string
- type PicturesClient
- type PicturesMessage
- type PicturesServer
- type UnimplementedPicturesServer
- func (UnimplementedPicturesServer) CreateUserPicture(context.Context, *CreateUserPictureRequest) (*PictureMessage, error)
- func (UnimplementedPicturesServer) DeleteUserPicture(context.Context, *DeleteUserPictureRequest) (*emptypb.Empty, error)
- func (UnimplementedPicturesServer) GetUserPicture(context.Context, *GetUserPictureRequest) (*PictureMessage, error)
- func (UnimplementedPicturesServer) GetUserPictures(context.Context, *GetUserPicturesRequest) (*PicturesMessage, error)
- type UnsafePicturesServer
Constants ¶
This section is empty.
Variables ¶
var File_pictures_pictures_proto protoreflect.FileDescriptor
var Pictures_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pictures.Pictures", HandlerType: (*PicturesServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUserPictures", Handler: _Pictures_GetUserPictures_Handler, }, { MethodName: "GetUserPicture", Handler: _Pictures_GetUserPicture_Handler, }, { MethodName: "CreateUserPicture", Handler: _Pictures_CreateUserPicture_Handler, }, { MethodName: "DeleteUserPicture", Handler: _Pictures_DeleteUserPicture_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pictures/pictures.proto", }
Pictures_ServiceDesc is the grpc.ServiceDesc for Pictures service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPicturesServer ¶
func RegisterPicturesServer(s grpc.ServiceRegistrar, srv PicturesServer)
Types ¶
type CreateUserPictureRequest ¶
type CreateUserPictureRequest struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Base64 string `protobuf:"bytes,2,opt,name=base64,proto3" json:"base64,omitempty"` UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
CreateUserPicture request
func (*CreateUserPictureRequest) Descriptor
deprecated
func (*CreateUserPictureRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserPictureRequest.ProtoReflect.Descriptor instead.
func (*CreateUserPictureRequest) GetBase64 ¶
func (x *CreateUserPictureRequest) GetBase64() string
func (*CreateUserPictureRequest) GetTitle ¶
func (x *CreateUserPictureRequest) GetTitle() string
func (*CreateUserPictureRequest) GetUserId ¶
func (x *CreateUserPictureRequest) GetUserId() string
func (*CreateUserPictureRequest) ProtoMessage ¶
func (*CreateUserPictureRequest) ProtoMessage()
func (*CreateUserPictureRequest) ProtoReflect ¶
func (x *CreateUserPictureRequest) ProtoReflect() protoreflect.Message
func (*CreateUserPictureRequest) Reset ¶
func (x *CreateUserPictureRequest) Reset()
func (*CreateUserPictureRequest) String ¶
func (x *CreateUserPictureRequest) String() string
type DeleteUserPictureRequest ¶
type DeleteUserPictureRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` PictureId string `protobuf:"bytes,2,opt,name=picture_id,json=pictureId,proto3" json:"picture_id,omitempty"` // contains filtered or unexported fields }
DeleteUserPicture request
func (*DeleteUserPictureRequest) Descriptor
deprecated
func (*DeleteUserPictureRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserPictureRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserPictureRequest) GetPictureId ¶
func (x *DeleteUserPictureRequest) GetPictureId() string
func (*DeleteUserPictureRequest) GetUserId ¶
func (x *DeleteUserPictureRequest) GetUserId() string
func (*DeleteUserPictureRequest) ProtoMessage ¶
func (*DeleteUserPictureRequest) ProtoMessage()
func (*DeleteUserPictureRequest) ProtoReflect ¶
func (x *DeleteUserPictureRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserPictureRequest) Reset ¶
func (x *DeleteUserPictureRequest) Reset()
func (*DeleteUserPictureRequest) String ¶
func (x *DeleteUserPictureRequest) String() string
type GetUserPictureRequest ¶
type GetUserPictureRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` PictureId string `protobuf:"bytes,2,opt,name=picture_id,json=pictureId,proto3" json:"picture_id,omitempty"` // contains filtered or unexported fields }
GetUserPicture request
func (*GetUserPictureRequest) Descriptor
deprecated
func (*GetUserPictureRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserPictureRequest.ProtoReflect.Descriptor instead.
func (*GetUserPictureRequest) GetPictureId ¶
func (x *GetUserPictureRequest) GetPictureId() string
func (*GetUserPictureRequest) GetUserId ¶
func (x *GetUserPictureRequest) GetUserId() string
func (*GetUserPictureRequest) ProtoMessage ¶
func (*GetUserPictureRequest) ProtoMessage()
func (*GetUserPictureRequest) ProtoReflect ¶
func (x *GetUserPictureRequest) ProtoReflect() protoreflect.Message
func (*GetUserPictureRequest) Reset ¶
func (x *GetUserPictureRequest) Reset()
func (*GetUserPictureRequest) String ¶
func (x *GetUserPictureRequest) String() string
type GetUserPicturesRequest ¶
type GetUserPicturesRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
GetUserPictures request
func (*GetUserPicturesRequest) Descriptor
deprecated
func (*GetUserPicturesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserPicturesRequest.ProtoReflect.Descriptor instead.
func (*GetUserPicturesRequest) GetUserId ¶
func (x *GetUserPicturesRequest) GetUserId() string
func (*GetUserPicturesRequest) ProtoMessage ¶
func (*GetUserPicturesRequest) ProtoMessage()
func (*GetUserPicturesRequest) ProtoReflect ¶
func (x *GetUserPicturesRequest) ProtoReflect() protoreflect.Message
func (*GetUserPicturesRequest) Reset ¶
func (x *GetUserPicturesRequest) Reset()
func (*GetUserPicturesRequest) String ¶
func (x *GetUserPicturesRequest) String() string
type PictureMessage ¶
type PictureMessage struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Base64 string `protobuf:"bytes,3,opt,name=base64,proto3" json:"base64,omitempty"` UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
Picture message
func (*PictureMessage) Descriptor
deprecated
func (*PictureMessage) Descriptor() ([]byte, []int)
Deprecated: Use PictureMessage.ProtoReflect.Descriptor instead.
func (*PictureMessage) GetBase64 ¶
func (x *PictureMessage) GetBase64() string
func (*PictureMessage) GetId ¶
func (x *PictureMessage) GetId() string
func (*PictureMessage) GetTitle ¶
func (x *PictureMessage) GetTitle() string
func (*PictureMessage) GetUserId ¶
func (x *PictureMessage) GetUserId() string
func (*PictureMessage) ProtoMessage ¶
func (*PictureMessage) ProtoMessage()
func (*PictureMessage) ProtoReflect ¶
func (x *PictureMessage) ProtoReflect() protoreflect.Message
func (*PictureMessage) Reset ¶
func (x *PictureMessage) Reset()
func (*PictureMessage) String ¶
func (x *PictureMessage) String() string
type PicturesClient ¶
type PicturesClient interface { // Get user pictures GetUserPictures(ctx context.Context, in *GetUserPicturesRequest, opts ...grpc.CallOption) (*PicturesMessage, error) // Get user picture GetUserPicture(ctx context.Context, in *GetUserPictureRequest, opts ...grpc.CallOption) (*PictureMessage, error) // Create user picture CreateUserPicture(ctx context.Context, in *CreateUserPictureRequest, opts ...grpc.CallOption) (*PictureMessage, error) // Delete user picture DeleteUserPicture(ctx context.Context, in *DeleteUserPictureRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
PicturesClient is the client API for Pictures service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPicturesClient ¶
func NewPicturesClient(cc grpc.ClientConnInterface) PicturesClient
type PicturesMessage ¶
type PicturesMessage struct { Pictures []*PictureMessage `protobuf:"bytes,1,rep,name=pictures,proto3" json:"pictures,omitempty"` // contains filtered or unexported fields }
Pictures message
func (*PicturesMessage) Descriptor
deprecated
func (*PicturesMessage) Descriptor() ([]byte, []int)
Deprecated: Use PicturesMessage.ProtoReflect.Descriptor instead.
func (*PicturesMessage) GetPictures ¶
func (x *PicturesMessage) GetPictures() []*PictureMessage
func (*PicturesMessage) ProtoMessage ¶
func (*PicturesMessage) ProtoMessage()
func (*PicturesMessage) ProtoReflect ¶
func (x *PicturesMessage) ProtoReflect() protoreflect.Message
func (*PicturesMessage) Reset ¶
func (x *PicturesMessage) Reset()
func (*PicturesMessage) String ¶
func (x *PicturesMessage) String() string
type PicturesServer ¶
type PicturesServer interface { // Get user pictures GetUserPictures(context.Context, *GetUserPicturesRequest) (*PicturesMessage, error) // Get user picture GetUserPicture(context.Context, *GetUserPictureRequest) (*PictureMessage, error) // Create user picture CreateUserPicture(context.Context, *CreateUserPictureRequest) (*PictureMessage, error) // Delete user picture DeleteUserPicture(context.Context, *DeleteUserPictureRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
PicturesServer is the server API for Pictures service. All implementations must embed UnimplementedPicturesServer for forward compatibility
type UnimplementedPicturesServer ¶
type UnimplementedPicturesServer struct { }
UnimplementedPicturesServer must be embedded to have forward compatible implementations.
func (UnimplementedPicturesServer) CreateUserPicture ¶
func (UnimplementedPicturesServer) CreateUserPicture(context.Context, *CreateUserPictureRequest) (*PictureMessage, error)
func (UnimplementedPicturesServer) DeleteUserPicture ¶
func (UnimplementedPicturesServer) DeleteUserPicture(context.Context, *DeleteUserPictureRequest) (*emptypb.Empty, error)
func (UnimplementedPicturesServer) GetUserPicture ¶
func (UnimplementedPicturesServer) GetUserPicture(context.Context, *GetUserPictureRequest) (*PictureMessage, error)
func (UnimplementedPicturesServer) GetUserPictures ¶
func (UnimplementedPicturesServer) GetUserPictures(context.Context, *GetUserPicturesRequest) (*PicturesMessage, error)
type UnsafePicturesServer ¶
type UnsafePicturesServer interface {
// contains filtered or unexported methods
}
UnsafePicturesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PicturesServer will result in compilation errors.