pb

package
v0.0.0-...-acfd584 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_profile_proto protoreflect.FileDescriptor
View Source
var ProfileService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "profile.ProfileService",
	HandlerType: (*ProfileServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddProfile",
			Handler:    _ProfileService_AddProfile_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _ProfileService_Update_Handler,
		},
		{
			MethodName: "Remove",
			Handler:    _ProfileService_Remove_Handler,
		},
		{
			MethodName: "FindProfile",
			Handler:    _ProfileService_FindProfile_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "profile.proto",
}

ProfileService_ServiceDesc is the grpc.ServiceDesc for ProfileService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterProfileServiceServer

func RegisterProfileServiceServer(s grpc.ServiceRegistrar, srv ProfileServiceServer)

Types

type AddReq

type AddReq struct {
	Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*AddReq) Descriptor deprecated

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

Deprecated: Use AddReq.ProtoReflect.Descriptor instead.

func (*AddReq) GetProfile

func (x *AddReq) GetProfile() *Profile

func (*AddReq) ProtoMessage

func (*AddReq) ProtoMessage()

func (*AddReq) ProtoReflect

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

func (*AddReq) Reset

func (x *AddReq) Reset()

func (*AddReq) String

func (x *AddReq) String() string

type DeleteReq

type DeleteReq struct {
	Uid uint64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteReq) Descriptor deprecated

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

Deprecated: Use DeleteReq.ProtoReflect.Descriptor instead.

func (*DeleteReq) GetUid

func (x *DeleteReq) GetUid() uint64

func (*DeleteReq) ProtoMessage

func (*DeleteReq) ProtoMessage()

func (*DeleteReq) ProtoReflect

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

func (*DeleteReq) Reset

func (x *DeleteReq) Reset()

func (*DeleteReq) String

func (x *DeleteReq) String() string

type EmptyReq

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

func (*EmptyReq) Descriptor deprecated

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

Deprecated: Use EmptyReq.ProtoReflect.Descriptor instead.

func (*EmptyReq) ProtoMessage

func (*EmptyReq) ProtoMessage()

func (*EmptyReq) ProtoReflect

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

func (*EmptyReq) Reset

func (x *EmptyReq) Reset()

func (*EmptyReq) String

func (x *EmptyReq) String() string

type FindProfileReq

type FindProfileReq struct {
	Uid uint64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

func (*FindProfileReq) Descriptor deprecated

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

Deprecated: Use FindProfileReq.ProtoReflect.Descriptor instead.

func (*FindProfileReq) GetUid

func (x *FindProfileReq) GetUid() uint64

func (*FindProfileReq) ProtoMessage

func (*FindProfileReq) ProtoMessage()

func (*FindProfileReq) ProtoReflect

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

func (*FindProfileReq) Reset

func (x *FindProfileReq) Reset()

func (*FindProfileReq) String

func (x *FindProfileReq) String() string

type FindProfileResp

type FindProfileResp struct {
	Status  int64    `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Error   string   `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Profile *Profile `protobuf:"bytes,3,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*FindProfileResp) Descriptor deprecated

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

Deprecated: Use FindProfileResp.ProtoReflect.Descriptor instead.

func (*FindProfileResp) GetError

func (x *FindProfileResp) GetError() string

func (*FindProfileResp) GetProfile

func (x *FindProfileResp) GetProfile() *Profile

func (*FindProfileResp) GetStatus

func (x *FindProfileResp) GetStatus() int64

func (*FindProfileResp) ProtoMessage

func (*FindProfileResp) ProtoMessage()

func (*FindProfileResp) ProtoReflect

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

func (*FindProfileResp) Reset

func (x *FindProfileResp) Reset()

func (*FindProfileResp) String

func (x *FindProfileResp) String() string

type Profile

type Profile struct {
	Id          uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Lastname    string `protobuf:"bytes,3,opt,name=lastname,proto3" json:"lastname,omitempty"`
	Title       string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	Votes       uint64 `protobuf:"varint,6,opt,name=votes,proto3" json:"votes,omitempty"`
	Students    uint64 `protobuf:"varint,7,opt,name=students,proto3" json:"students,omitempty"`
	Website     string `protobuf:"bytes,8,opt,name=website,proto3" json:"website,omitempty"`
	Youtube     string `protobuf:"bytes,9,opt,name=youtube,proto3" json:"youtube,omitempty"`
	Linkedin    string `protobuf:"bytes,10,opt,name=linkedin,proto3" json:"linkedin,omitempty"`
	Twitter     string `protobuf:"bytes,11,opt,name=twitter,proto3" json:"twitter,omitempty"`
	Facebook    string `protobuf:"bytes,12,opt,name=facebook,proto3" json:"facebook,omitempty"`
	Created     int64  `protobuf:"varint,13,opt,name=created,proto3" json:"created,omitempty"`
	Modified    int64  `protobuf:"varint,14,opt,name=modified,proto3" json:"modified,omitempty"`
	// contains filtered or unexported fields
}

func (*Profile) Descriptor deprecated

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

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetCreated

func (x *Profile) GetCreated() int64

func (*Profile) GetDescription

func (x *Profile) GetDescription() string

func (*Profile) GetFacebook

func (x *Profile) GetFacebook() string

func (*Profile) GetId

func (x *Profile) GetId() uint64

func (*Profile) GetLastname

func (x *Profile) GetLastname() string

func (*Profile) GetLinkedin

func (x *Profile) GetLinkedin() string

func (*Profile) GetModified

func (x *Profile) GetModified() int64

func (*Profile) GetName

func (x *Profile) GetName() string

func (*Profile) GetStudents

func (x *Profile) GetStudents() uint64

func (*Profile) GetTitle

func (x *Profile) GetTitle() string

func (*Profile) GetTwitter

func (x *Profile) GetTwitter() string

func (*Profile) GetVotes

func (x *Profile) GetVotes() uint64

func (*Profile) GetWebsite

func (x *Profile) GetWebsite() string

func (*Profile) GetYoutube

func (x *Profile) GetYoutube() string

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect

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

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) String

func (x *Profile) String() string

type ProfileServiceClient

type ProfileServiceClient interface {
	AddProfile(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*Resp, error)
	Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*Resp, error)
	Remove(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*Resp, error)
	FindProfile(ctx context.Context, in *FindProfileReq, opts ...grpc.CallOption) (*FindProfileResp, error)
}

ProfileServiceClient is the client API for ProfileService 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.

type ProfileServiceServer

type ProfileServiceServer interface {
	AddProfile(context.Context, *AddReq) (*Resp, error)
	Update(context.Context, *UpdateReq) (*Resp, error)
	Remove(context.Context, *DeleteReq) (*Resp, error)
	FindProfile(context.Context, *FindProfileReq) (*FindProfileResp, error)
}

ProfileServiceServer is the server API for ProfileService service. All implementations should embed UnimplementedProfileServiceServer for forward compatibility

type Resp

type Resp struct {
	Status int64  `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Error  string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Msg    string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*Resp) Descriptor deprecated

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

Deprecated: Use Resp.ProtoReflect.Descriptor instead.

func (*Resp) GetError

func (x *Resp) GetError() string

func (*Resp) GetMsg

func (x *Resp) GetMsg() string

func (*Resp) GetStatus

func (x *Resp) GetStatus() int64

func (*Resp) ProtoMessage

func (*Resp) ProtoMessage()

func (*Resp) ProtoReflect

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

func (*Resp) Reset

func (x *Resp) Reset()

func (*Resp) String

func (x *Resp) String() string

type UnimplementedProfileServiceServer

type UnimplementedProfileServiceServer struct {
}

UnimplementedProfileServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedProfileServiceServer) AddProfile

func (UnimplementedProfileServiceServer) FindProfile

func (UnimplementedProfileServiceServer) Remove

func (UnimplementedProfileServiceServer) Update

type UnsafeProfileServiceServer

type UnsafeProfileServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeProfileServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProfileServiceServer will result in compilation errors.

type UpdateReq

type UpdateReq struct {
	Uid     uint64   `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Profile *Profile `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateReq) Descriptor deprecated

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

Deprecated: Use UpdateReq.ProtoReflect.Descriptor instead.

func (*UpdateReq) GetProfile

func (x *UpdateReq) GetProfile() *Profile

func (*UpdateReq) GetUid

func (x *UpdateReq) GetUid() uint64

func (*UpdateReq) ProtoMessage

func (*UpdateReq) ProtoMessage()

func (*UpdateReq) ProtoReflect

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

func (*UpdateReq) Reset

func (x *UpdateReq) Reset()

func (*UpdateReq) String

func (x *UpdateReq) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL