Documentation ¶
Index ¶
- Variables
- func RegisterProfileServiceServer(s *grpc.Server, srv ProfileServiceServer)
- type Date
- type Image
- func (*Image) Descriptor() ([]byte, []int)deprecated
- func (x *Image) GetImageData() *ImageData
- func (x *Image) GetImageMetaData() *ImageMetadata
- func (m *Image) GetImageOneof() isImage_ImageOneof
- func (*Image) ProtoMessage()
- func (x *Image) ProtoReflect() protoreflect.Message
- func (x *Image) Reset()
- func (x *Image) String() string
- type ImageData
- type ImageId
- type ImageMetadata
- type Image_ImageData
- type Image_ImageMetaData
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)deprecated
- func (x *Profile) GetBirthday() *Date
- func (x *Profile) GetEmail() string
- func (x *Profile) GetGivenName() string
- func (x *Profile) GetId() string
- func (x *Profile) GetImageId() string
- func (x *Profile) GetLastName() string
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- type ProfileId
- type ProfileServiceClient
- type ProfileServiceServer
- type ProfileService_CreateImageClient
- type ProfileService_CreateImageServer
- type UnimplementedProfileServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_profile_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterProfileServiceServer ¶
func RegisterProfileServiceServer(s *grpc.Server, srv ProfileServiceServer)
Types ¶
type Date ¶
type Date struct { Day int32 `protobuf:"varint,1,opt,name=day,proto3" json:"day,omitempty"` Month int32 `protobuf:"varint,2,opt,name=month,proto3" json:"month,omitempty"` Year int32 `protobuf:"varint,3,opt,name=year,proto3" json:"year,omitempty"` // contains filtered or unexported fields }
func (*Date) Descriptor
deprecated
func (*Date) ProtoMessage ¶
func (*Date) ProtoMessage()
func (*Date) ProtoReflect ¶
func (x *Date) ProtoReflect() protoreflect.Message
type Image ¶
type Image struct { // Types that are assignable to ImageOneof: // *Image_ImageMetaData // *Image_ImageData ImageOneof isImage_ImageOneof `protobuf_oneof:"image_oneof"` // contains filtered or unexported fields }
func (*Image) Descriptor
deprecated
func (*Image) GetImageData ¶
func (*Image) GetImageMetaData ¶
func (x *Image) GetImageMetaData() *ImageMetadata
func (*Image) GetImageOneof ¶
func (m *Image) GetImageOneof() isImage_ImageOneof
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
type ImageData ¶
type ImageData struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ImageData) Descriptor
deprecated
func (*ImageData) ProtoMessage ¶
func (*ImageData) ProtoMessage()
func (*ImageData) ProtoReflect ¶
func (x *ImageData) ProtoReflect() protoreflect.Message
type ImageId ¶
type ImageId struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ImageId) Descriptor
deprecated
func (*ImageId) ProtoMessage ¶
func (*ImageId) ProtoMessage()
func (*ImageId) ProtoReflect ¶
func (x *ImageId) ProtoReflect() protoreflect.Message
type ImageMetadata ¶
type ImageMetadata struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*ImageMetadata) Descriptor
deprecated
func (*ImageMetadata) Descriptor() ([]byte, []int)
Deprecated: Use ImageMetadata.ProtoReflect.Descriptor instead.
func (*ImageMetadata) GetType ¶
func (x *ImageMetadata) GetType() string
func (*ImageMetadata) ProtoMessage ¶
func (*ImageMetadata) ProtoMessage()
func (*ImageMetadata) ProtoReflect ¶
func (x *ImageMetadata) ProtoReflect() protoreflect.Message
func (*ImageMetadata) Reset ¶
func (x *ImageMetadata) Reset()
func (*ImageMetadata) String ¶
func (x *ImageMetadata) String() string
type Image_ImageData ¶
type Image_ImageData struct {
ImageData *ImageData `protobuf:"bytes,2,opt,name=imageData,proto3,oneof"`
}
type Image_ImageMetaData ¶
type Image_ImageMetaData struct {
ImageMetaData *ImageMetadata `protobuf:"bytes,1,opt,name=imageMetaData,proto3,oneof"`
}
type Profile ¶
type Profile struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` GivenName string `protobuf:"bytes,2,opt,name=givenName,proto3" json:"givenName,omitempty"` LastName string `protobuf:"bytes,3,opt,name=lastName,proto3" json:"lastName,omitempty"` Birthday *Date `protobuf:"bytes,4,opt,name=birthday,proto3" json:"birthday,omitempty"` Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` ImageId string `protobuf:"bytes,6,opt,name=imageId,proto3" json:"imageId,omitempty"` // contains filtered or unexported fields }
func (*Profile) Descriptor
deprecated
func (*Profile) GetBirthday ¶
func (*Profile) GetGivenName ¶
func (*Profile) GetImageId ¶
func (*Profile) GetLastName ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶
func (x *Profile) ProtoReflect() protoreflect.Message
type ProfileId ¶
type ProfileId struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ProfileId) Descriptor
deprecated
func (*ProfileId) ProtoMessage ¶
func (*ProfileId) ProtoMessage()
func (*ProfileId) ProtoReflect ¶
func (x *ProfileId) ProtoReflect() protoreflect.Message
type ProfileServiceClient ¶
type ProfileServiceClient interface { CreateImage(ctx context.Context, opts ...grpc.CallOption) (ProfileService_CreateImageClient, error) CreateProfile(ctx context.Context, in *Profile, opts ...grpc.CallOption) (*ProfileId, error) }
ProfileServiceClient is the client API for ProfileService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewProfileServiceClient ¶
func NewProfileServiceClient(cc grpc.ClientConnInterface) ProfileServiceClient
type ProfileServiceServer ¶
type ProfileServiceServer interface { CreateImage(ProfileService_CreateImageServer) error CreateProfile(context.Context, *Profile) (*ProfileId, error) }
ProfileServiceServer is the server API for ProfileService service.
type UnimplementedProfileServiceServer ¶
type UnimplementedProfileServiceServer struct { }
UnimplementedProfileServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedProfileServiceServer) CreateImage ¶
func (*UnimplementedProfileServiceServer) CreateImage(ProfileService_CreateImageServer) error
func (*UnimplementedProfileServiceServer) CreateProfile ¶
Click to show internal directories.
Click to hide internal directories.