pb

package
v0.0.0-...-40fc3ee Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProfileServiceServer

func RegisterProfileServiceServer(s *grpc.Server, srv ProfileServiceServer)

Types

type DeleteRequest

type DeleteRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteRequest) Descriptor

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

func (*DeleteRequest) GetId

func (m *DeleteRequest) GetId() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) Reset

func (m *DeleteRequest) Reset()

func (*DeleteRequest) String

func (m *DeleteRequest) String() string

func (*DeleteRequest) XXX_DiscardUnknown

func (m *DeleteRequest) XXX_DiscardUnknown()

func (*DeleteRequest) XXX_Marshal

func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteRequest) XXX_Merge

func (m *DeleteRequest) XXX_Merge(src proto.Message)

func (*DeleteRequest) XXX_Size

func (m *DeleteRequest) XXX_Size() int

func (*DeleteRequest) XXX_Unmarshal

func (m *DeleteRequest) XXX_Unmarshal(b []byte) error

type DeleteResponse

type DeleteResponse struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteResponse) Descriptor

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

func (*DeleteResponse) GetId

func (m *DeleteResponse) GetId() string

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) Reset

func (m *DeleteResponse) Reset()

func (*DeleteResponse) String

func (m *DeleteResponse) String() string

func (*DeleteResponse) XXX_DiscardUnknown

func (m *DeleteResponse) XXX_DiscardUnknown()

func (*DeleteResponse) XXX_Marshal

func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteResponse) XXX_Merge

func (m *DeleteResponse) XXX_Merge(src proto.Message)

func (*DeleteResponse) XXX_Size

func (m *DeleteResponse) XXX_Size() int

func (*DeleteResponse) XXX_Unmarshal

func (m *DeleteResponse) XXX_Unmarshal(b []byte) error

type GetMultipleRequest

type GetMultipleRequest struct {
	Skip                 uint64   `protobuf:"varint,1,opt,name=skip,proto3" json:"skip,omitempty"`
	Take                 uint64   `protobuf:"varint,2,opt,name=take,proto3" json:"take,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetMultipleRequest) Descriptor

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

func (*GetMultipleRequest) GetSkip

func (m *GetMultipleRequest) GetSkip() uint64

func (*GetMultipleRequest) GetTake

func (m *GetMultipleRequest) GetTake() uint64

func (*GetMultipleRequest) ProtoMessage

func (*GetMultipleRequest) ProtoMessage()

func (*GetMultipleRequest) Reset

func (m *GetMultipleRequest) Reset()

func (*GetMultipleRequest) String

func (m *GetMultipleRequest) String() string

func (*GetMultipleRequest) XXX_DiscardUnknown

func (m *GetMultipleRequest) XXX_DiscardUnknown()

func (*GetMultipleRequest) XXX_Marshal

func (m *GetMultipleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetMultipleRequest) XXX_Merge

func (m *GetMultipleRequest) XXX_Merge(src proto.Message)

func (*GetMultipleRequest) XXX_Size

func (m *GetMultipleRequest) XXX_Size() int

func (*GetMultipleRequest) XXX_Unmarshal

func (m *GetMultipleRequest) XXX_Unmarshal(b []byte) error

type GetMultipleResponse

type GetMultipleResponse struct {
	Profiles             []*Profile `protobuf:"bytes,1,rep,name=profiles,proto3" json:"profiles,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*GetMultipleResponse) Descriptor

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

func (*GetMultipleResponse) GetProfiles

func (m *GetMultipleResponse) GetProfiles() []*Profile

func (*GetMultipleResponse) ProtoMessage

func (*GetMultipleResponse) ProtoMessage()

func (*GetMultipleResponse) Reset

func (m *GetMultipleResponse) Reset()

func (*GetMultipleResponse) String

func (m *GetMultipleResponse) String() string

func (*GetMultipleResponse) XXX_DiscardUnknown

func (m *GetMultipleResponse) XXX_DiscardUnknown()

func (*GetMultipleResponse) XXX_Marshal

func (m *GetMultipleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetMultipleResponse) XXX_Merge

func (m *GetMultipleResponse) XXX_Merge(src proto.Message)

func (*GetMultipleResponse) XXX_Size

func (m *GetMultipleResponse) XXX_Size() int

func (*GetMultipleResponse) XXX_Unmarshal

func (m *GetMultipleResponse) XXX_Unmarshal(b []byte) error

type GetRequest

type GetRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserID               uint64   `protobuf:"varint,2,opt,name=userID,proto3" json:"userID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetRequest) Descriptor

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

func (*GetRequest) GetId

func (m *GetRequest) GetId() string

func (*GetRequest) GetUserID

func (m *GetRequest) GetUserID() uint64

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) Reset

func (m *GetRequest) Reset()

func (*GetRequest) String

func (m *GetRequest) String() string

func (*GetRequest) XXX_DiscardUnknown

func (m *GetRequest) XXX_DiscardUnknown()

func (*GetRequest) XXX_Marshal

func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetRequest) XXX_Merge

func (m *GetRequest) XXX_Merge(src proto.Message)

func (*GetRequest) XXX_Size

func (m *GetRequest) XXX_Size() int

func (*GetRequest) XXX_Unmarshal

func (m *GetRequest) XXX_Unmarshal(b []byte) error

type GetResponse

type GetResponse struct {
	Profile              *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetResponse) Descriptor

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

func (*GetResponse) GetProfile

func (m *GetResponse) GetProfile() *Profile

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) Reset

func (m *GetResponse) Reset()

func (*GetResponse) String

func (m *GetResponse) String() string

func (*GetResponse) XXX_DiscardUnknown

func (m *GetResponse) XXX_DiscardUnknown()

func (*GetResponse) XXX_Marshal

func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetResponse) XXX_Merge

func (m *GetResponse) XXX_Merge(src proto.Message)

func (*GetResponse) XXX_Size

func (m *GetResponse) XXX_Size() int

func (*GetResponse) XXX_Unmarshal

func (m *GetResponse) XXX_Unmarshal(b []byte) error

type Image

type Image struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Type                 string   `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Size                 int64    `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
	Width                int32    `protobuf:"varint,5,opt,name=width,proto3" json:"width,omitempty"`
	Height               int32    `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Image) Descriptor

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

func (*Image) GetHeight

func (m *Image) GetHeight() int32

func (*Image) GetId

func (m *Image) GetId() string

func (*Image) GetName

func (m *Image) GetName() string

func (*Image) GetSize

func (m *Image) GetSize() int64

func (*Image) GetType

func (m *Image) GetType() string

func (*Image) GetWidth

func (m *Image) GetWidth() int32

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) Reset

func (m *Image) Reset()

func (*Image) String

func (m *Image) String() string

func (*Image) XXX_DiscardUnknown

func (m *Image) XXX_DiscardUnknown()

func (*Image) XXX_Marshal

func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Image) XXX_Merge

func (m *Image) XXX_Merge(src proto.Message)

func (*Image) XXX_Size

func (m *Image) XXX_Size() int

func (*Image) XXX_Unmarshal

func (m *Image) XXX_Unmarshal(b []byte) error

type PostRequest

type PostRequest struct {
	Username             string               `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	About                string               `protobuf:"bytes,2,opt,name=about,proto3" json:"about,omitempty"`
	Level                string               `protobuf:"bytes,3,opt,name=level,proto3" json:"level,omitempty"`
	Rings                int32                `protobuf:"varint,4,opt,name=rings,proto3" json:"rings,omitempty"`
	ProfileImg           *Image               `protobuf:"bytes,5,opt,name=profileImg,proto3" json:"profileImg,omitempty"`
	BackgroundImg        *Image               `protobuf:"bytes,6,opt,name=backgroundImg,proto3" json:"backgroundImg,omitempty"`
	DateLastUpdated      *timestamp.Timestamp `protobuf:"bytes,7,opt,name=dateLastUpdated,proto3" json:"dateLastUpdated,omitempty"`
	Followers            []string             `protobuf:"bytes,8,rep,name=followers,proto3" json:"followers,omitempty"`
	Following            []string             `protobuf:"bytes,9,rep,name=following,proto3" json:"following,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*PostRequest) Descriptor

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

func (*PostRequest) GetAbout

func (m *PostRequest) GetAbout() string

func (*PostRequest) GetBackgroundImg

func (m *PostRequest) GetBackgroundImg() *Image

func (*PostRequest) GetDateLastUpdated

func (m *PostRequest) GetDateLastUpdated() *timestamp.Timestamp

func (*PostRequest) GetFollowers

func (m *PostRequest) GetFollowers() []string

func (*PostRequest) GetFollowing

func (m *PostRequest) GetFollowing() []string

func (*PostRequest) GetLevel

func (m *PostRequest) GetLevel() string

func (*PostRequest) GetProfileImg

func (m *PostRequest) GetProfileImg() *Image

func (*PostRequest) GetRings

func (m *PostRequest) GetRings() int32

func (*PostRequest) GetUsername

func (m *PostRequest) GetUsername() string

func (*PostRequest) ProtoMessage

func (*PostRequest) ProtoMessage()

func (*PostRequest) Reset

func (m *PostRequest) Reset()

func (*PostRequest) String

func (m *PostRequest) String() string

func (*PostRequest) XXX_DiscardUnknown

func (m *PostRequest) XXX_DiscardUnknown()

func (*PostRequest) XXX_Marshal

func (m *PostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PostRequest) XXX_Merge

func (m *PostRequest) XXX_Merge(src proto.Message)

func (*PostRequest) XXX_Size

func (m *PostRequest) XXX_Size() int

func (*PostRequest) XXX_Unmarshal

func (m *PostRequest) XXX_Unmarshal(b []byte) error

type PostResponse

type PostResponse struct {
	Profile              string   `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PostResponse) Descriptor

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

func (*PostResponse) GetProfile

func (m *PostResponse) GetProfile() string

func (*PostResponse) ProtoMessage

func (*PostResponse) ProtoMessage()

func (*PostResponse) Reset

func (m *PostResponse) Reset()

func (*PostResponse) String

func (m *PostResponse) String() string

func (*PostResponse) XXX_DiscardUnknown

func (m *PostResponse) XXX_DiscardUnknown()

func (*PostResponse) XXX_Marshal

func (m *PostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PostResponse) XXX_Merge

func (m *PostResponse) XXX_Merge(src proto.Message)

func (*PostResponse) XXX_Size

func (m *PostResponse) XXX_Size() int

func (*PostResponse) XXX_Unmarshal

func (m *PostResponse) XXX_Unmarshal(b []byte) error

type Profile

type Profile struct {
	Id                   string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username             string               `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	About                string               `protobuf:"bytes,3,opt,name=about,proto3" json:"about,omitempty"`
	Level                string               `protobuf:"bytes,4,opt,name=level,proto3" json:"level,omitempty"`
	Rings                int32                `protobuf:"varint,5,opt,name=rings,proto3" json:"rings,omitempty"`
	ProfileImg           *Image               `protobuf:"bytes,6,opt,name=profileImg,proto3" json:"profileImg,omitempty"`
	BackgroundImg        *Image               `protobuf:"bytes,7,opt,name=backgroundImg,proto3" json:"backgroundImg,omitempty"`
	DateLastUpdated      *timestamp.Timestamp `protobuf:"bytes,8,opt,name=dateLastUpdated,proto3" json:"dateLastUpdated,omitempty"`
	Followers            []string             `protobuf:"bytes,9,rep,name=followers,proto3" json:"followers,omitempty"`
	Following            []string             `protobuf:"bytes,10,rep,name=following,proto3" json:"following,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Profile) Descriptor

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

func (*Profile) GetAbout

func (m *Profile) GetAbout() string

func (*Profile) GetBackgroundImg

func (m *Profile) GetBackgroundImg() *Image

func (*Profile) GetDateLastUpdated

func (m *Profile) GetDateLastUpdated() *timestamp.Timestamp

func (*Profile) GetFollowers

func (m *Profile) GetFollowers() []string

func (*Profile) GetFollowing

func (m *Profile) GetFollowing() []string

func (*Profile) GetId

func (m *Profile) GetId() string

func (*Profile) GetLevel

func (m *Profile) GetLevel() string

func (*Profile) GetProfileImg

func (m *Profile) GetProfileImg() *Image

func (*Profile) GetRings

func (m *Profile) GetRings() int32

func (*Profile) GetUsername

func (m *Profile) GetUsername() string

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) Reset

func (m *Profile) Reset()

func (*Profile) String

func (m *Profile) String() string

func (*Profile) XXX_DiscardUnknown

func (m *Profile) XXX_DiscardUnknown()

func (*Profile) XXX_Marshal

func (m *Profile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Profile) XXX_Merge

func (m *Profile) XXX_Merge(src proto.Message)

func (*Profile) XXX_Size

func (m *Profile) XXX_Size() int

func (*Profile) XXX_Unmarshal

func (m *Profile) XXX_Unmarshal(b []byte) error

type ProfileServiceClient

type ProfileServiceClient interface {
	Post(ctx context.Context, in *PostRequest, opts ...grpc.CallOption) (*PostResponse, error)
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	GetMultiple(ctx context.Context, in *GetMultipleRequest, opts ...grpc.CallOption) (*GetMultipleResponse, error)
	Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error)
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, 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.ClientConn) ProfileServiceClient

type ProfileServiceServer

ProfileServiceServer is the server API for ProfileService service.

type PutRequest

type PutRequest struct {
	Id                   string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username             string               `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	About                string               `protobuf:"bytes,3,opt,name=about,proto3" json:"about,omitempty"`
	Level                string               `protobuf:"bytes,4,opt,name=level,proto3" json:"level,omitempty"`
	Rings                int32                `protobuf:"varint,5,opt,name=rings,proto3" json:"rings,omitempty"`
	ProfileImg           *Image               `protobuf:"bytes,6,opt,name=profileImg,proto3" json:"profileImg,omitempty"`
	BackgroundImg        *Image               `protobuf:"bytes,7,opt,name=backgroundImg,proto3" json:"backgroundImg,omitempty"`
	DateLastUpdated      *timestamp.Timestamp `protobuf:"bytes,8,opt,name=dateLastUpdated,proto3" json:"dateLastUpdated,omitempty"`
	Followers            []string             `protobuf:"bytes,9,rep,name=followers,proto3" json:"followers,omitempty"`
	Following            []string             `protobuf:"bytes,10,rep,name=following,proto3" json:"following,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*PutRequest) Descriptor

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

func (*PutRequest) GetAbout

func (m *PutRequest) GetAbout() string

func (*PutRequest) GetBackgroundImg

func (m *PutRequest) GetBackgroundImg() *Image

func (*PutRequest) GetDateLastUpdated

func (m *PutRequest) GetDateLastUpdated() *timestamp.Timestamp

func (*PutRequest) GetFollowers

func (m *PutRequest) GetFollowers() []string

func (*PutRequest) GetFollowing

func (m *PutRequest) GetFollowing() []string

func (*PutRequest) GetId

func (m *PutRequest) GetId() string

func (*PutRequest) GetLevel

func (m *PutRequest) GetLevel() string

func (*PutRequest) GetProfileImg

func (m *PutRequest) GetProfileImg() *Image

func (*PutRequest) GetRings

func (m *PutRequest) GetRings() int32

func (*PutRequest) GetUsername

func (m *PutRequest) GetUsername() string

func (*PutRequest) ProtoMessage

func (*PutRequest) ProtoMessage()

func (*PutRequest) Reset

func (m *PutRequest) Reset()

func (*PutRequest) String

func (m *PutRequest) String() string

func (*PutRequest) XXX_DiscardUnknown

func (m *PutRequest) XXX_DiscardUnknown()

func (*PutRequest) XXX_Marshal

func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutRequest) XXX_Merge

func (m *PutRequest) XXX_Merge(src proto.Message)

func (*PutRequest) XXX_Size

func (m *PutRequest) XXX_Size() int

func (*PutRequest) XXX_Unmarshal

func (m *PutRequest) XXX_Unmarshal(b []byte) error

type PutResponse

type PutResponse struct {
	Profile              string   `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PutResponse) Descriptor

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

func (*PutResponse) GetProfile

func (m *PutResponse) GetProfile() string

func (*PutResponse) ProtoMessage

func (*PutResponse) ProtoMessage()

func (*PutResponse) Reset

func (m *PutResponse) Reset()

func (*PutResponse) String

func (m *PutResponse) String() string

func (*PutResponse) XXX_DiscardUnknown

func (m *PutResponse) XXX_DiscardUnknown()

func (*PutResponse) XXX_Marshal

func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutResponse) XXX_Merge

func (m *PutResponse) XXX_Merge(src proto.Message)

func (*PutResponse) XXX_Size

func (m *PutResponse) XXX_Size() int

func (*PutResponse) XXX_Unmarshal

func (m *PutResponse) XXX_Unmarshal(b []byte) error

type UnimplementedProfileServiceServer

type UnimplementedProfileServiceServer struct {
}

UnimplementedProfileServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedProfileServiceServer) Delete

func (*UnimplementedProfileServiceServer) Get

func (*UnimplementedProfileServiceServer) GetMultiple

func (*UnimplementedProfileServiceServer) Post

func (*UnimplementedProfileServiceServer) Put

Jump to

Keyboard shortcuts

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