proto

package
v0.0.0-...-69ba7aa Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_common_proto protoreflect.FileDescriptor
View Source
var File_reference_proto protoreflect.FileDescriptor

Functions

func ReferencesToNative

func ReferencesToNative(in []*SneakerReference) []*model.SneakerReference

func RegisterReferenceServiceServer

func RegisterReferenceServiceServer(s *grpc.Server, srv ReferenceServiceServer)

Types

type ReferenceFilter

type ReferenceFilter struct {
	ReferenceID   []string        `protobuf:"bytes,1,rep,name=referenceID,proto3" json:"referenceID,omitempty"`
	RequestQuery  *_struct.Struct `protobuf:"bytes,2,opt,name=requestQuery,proto3" json:"requestQuery,omitempty"`
	RequestParams *RequestParams  `protobuf:"bytes,3,opt,name=requestParams,proto3" json:"requestParams,omitempty"`
	// contains filtered or unexported fields
}

func (*ReferenceFilter) Descriptor deprecated

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

Deprecated: Use ReferenceFilter.ProtoReflect.Descriptor instead.

func (*ReferenceFilter) GetReferenceID

func (x *ReferenceFilter) GetReferenceID() []string

func (*ReferenceFilter) GetRequestParams

func (x *ReferenceFilter) GetRequestParams() *RequestParams

func (*ReferenceFilter) GetRequestQuery

func (x *ReferenceFilter) GetRequestQuery() *_struct.Struct

func (*ReferenceFilter) ProtoMessage

func (*ReferenceFilter) ProtoMessage()

func (*ReferenceFilter) ProtoReflect

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

func (*ReferenceFilter) Reset

func (x *ReferenceFilter) Reset()

func (*ReferenceFilter) String

func (x *ReferenceFilter) String() string

type ReferenceInput

type ReferenceInput struct {
	References    []*SneakerReference `protobuf:"bytes,1,rep,name=references,proto3" json:"references,omitempty"`
	RequestParams *RequestParams      `protobuf:"bytes,2,opt,name=requestParams,proto3" json:"requestParams,omitempty"`
	// contains filtered or unexported fields
}

func (*ReferenceInput) Descriptor deprecated

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

Deprecated: Use ReferenceInput.ProtoReflect.Descriptor instead.

func (*ReferenceInput) GetReferences

func (x *ReferenceInput) GetReferences() []*SneakerReference

func (*ReferenceInput) GetRequestParams

func (x *ReferenceInput) GetRequestParams() *RequestParams

func (*ReferenceInput) ProtoMessage

func (*ReferenceInput) ProtoMessage()

func (*ReferenceInput) ProtoReflect

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

func (*ReferenceInput) Reset

func (x *ReferenceInput) Reset()

func (*ReferenceInput) String

func (x *ReferenceInput) String() string

type ReferenceResponse

type ReferenceResponse struct {
	References []*SneakerReference `protobuf:"bytes,1,rep,name=references,proto3" json:"references,omitempty"`
	Count      int64               `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*ReferenceResponse) Descriptor deprecated

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

Deprecated: Use ReferenceResponse.ProtoReflect.Descriptor instead.

func (*ReferenceResponse) GetCount

func (x *ReferenceResponse) GetCount() int64

func (*ReferenceResponse) GetReferences

func (x *ReferenceResponse) GetReferences() []*SneakerReference

func (*ReferenceResponse) ProtoMessage

func (*ReferenceResponse) ProtoMessage()

func (*ReferenceResponse) ProtoReflect

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

func (*ReferenceResponse) Reset

func (x *ReferenceResponse) Reset()

func (*ReferenceResponse) String

func (x *ReferenceResponse) String() string

type ReferenceServiceClient

type ReferenceServiceClient interface {
	GetReferences(ctx context.Context, in *ReferenceFilter, opts ...grpc.CallOption) (*ReferenceResponse, error)
	CountReferences(ctx context.Context, in *ReferenceFilter, opts ...grpc.CallOption) (*ReferenceResponse, error)
	AddReferences(ctx context.Context, in *ReferenceInput, opts ...grpc.CallOption) (*ReferenceResponse, error)
	EditReferences(ctx context.Context, in *ReferenceInput, opts ...grpc.CallOption) (*ReferenceResponse, error)
	DeleteReferences(ctx context.Context, in *ReferenceFilter, opts ...grpc.CallOption) (*ReferenceResponse, error)
}

ReferenceServiceClient is the client API for ReferenceService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ReferenceServiceServer

type ReferenceServiceServer interface {
	GetReferences(context.Context, *ReferenceFilter) (*ReferenceResponse, error)
	CountReferences(context.Context, *ReferenceFilter) (*ReferenceResponse, error)
	AddReferences(context.Context, *ReferenceInput) (*ReferenceResponse, error)
	EditReferences(context.Context, *ReferenceInput) (*ReferenceResponse, error)
	DeleteReferences(context.Context, *ReferenceFilter) (*ReferenceResponse, error)
}

ReferenceServiceServer is the server API for ReferenceService service.

type RequestParams

type RequestParams struct {
	Limit         int32                 `protobuf:"varint,1,opt,name=Limit,proto3" json:"Limit,omitempty"`
	Offset        int32                 `protobuf:"varint,2,opt,name=Offset,proto3" json:"Offset,omitempty"`
	SortBy        *wrappers.StringValue `protobuf:"bytes,3,opt,name=SortBy,proto3" json:"SortBy,omitempty"`
	SortDirection *wrappers.StringValue `protobuf:"bytes,4,opt,name=SortDirection,proto3" json:"SortDirection,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestParams) Descriptor deprecated

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

Deprecated: Use RequestParams.ProtoReflect.Descriptor instead.

func (RequestParams) FromNative

func (m RequestParams) FromNative(n *meta.RequestParams) *RequestParams

func (*RequestParams) GetLimit

func (x *RequestParams) GetLimit() int32

func (*RequestParams) GetOffset

func (x *RequestParams) GetOffset() int32

func (*RequestParams) GetSortBy

func (x *RequestParams) GetSortBy() *wrappers.StringValue

func (*RequestParams) GetSortDirection

func (x *RequestParams) GetSortDirection() *wrappers.StringValue

func (*RequestParams) ProtoMessage

func (*RequestParams) ProtoMessage()

func (*RequestParams) ProtoReflect

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

func (*RequestParams) Reset

func (x *RequestParams) Reset()

func (*RequestParams) String

func (x *RequestParams) String() string

func (*RequestParams) ToNative

func (m *RequestParams) ToNative() *meta.RequestParams

type SneakerBrand

type SneakerBrand struct {
	UniqueId    string `protobuf:"bytes,1,opt,name=uniqueId,proto3" json:"uniqueId,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Hero        string `protobuf:"bytes,4,opt,name=hero,proto3" json:"hero,omitempty"`
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*SneakerBrand) Descriptor deprecated

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

Deprecated: Use SneakerBrand.ProtoReflect.Descriptor instead.

func (SneakerBrand) FromNative

func (m SneakerBrand) FromNative(n model.SneakerBrand) *SneakerBrand

func (*SneakerBrand) GetDescription

func (x *SneakerBrand) GetDescription() string

func (*SneakerBrand) GetHero

func (x *SneakerBrand) GetHero() string
func (x *SneakerBrand) GetLogo() string

func (*SneakerBrand) GetName

func (x *SneakerBrand) GetName() string

func (*SneakerBrand) GetUniqueId

func (x *SneakerBrand) GetUniqueId() string

func (*SneakerBrand) ProtoMessage

func (*SneakerBrand) ProtoMessage()

func (*SneakerBrand) ProtoReflect

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

func (*SneakerBrand) Reset

func (x *SneakerBrand) Reset()

func (*SneakerBrand) String

func (x *SneakerBrand) String() string

func (*SneakerBrand) ToNative

func (m *SneakerBrand) ToNative() model.SneakerBrand

type SneakerModel

type SneakerModel struct {
	UniqueId    string `protobuf:"bytes,1,opt,name=uniqueId,proto3" json:"uniqueId,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Brand       string `protobuf:"bytes,3,opt,name=brand,proto3" json:"brand,omitempty"`
	BaseModel   string `protobuf:"bytes,4,opt,name=baseModel,proto3" json:"baseModel,omitempty"`
	Hero        string `protobuf:"bytes,5,opt,name=hero,proto3" json:"hero,omitempty"`
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*SneakerModel) Descriptor deprecated

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

Deprecated: Use SneakerModel.ProtoReflect.Descriptor instead.

func (SneakerModel) FromNative

func (m SneakerModel) FromNative(n model.SneakerModel) *SneakerModel

func (*SneakerModel) GetBaseModel

func (x *SneakerModel) GetBaseModel() string

func (*SneakerModel) GetBrand

func (x *SneakerModel) GetBrand() string

func (*SneakerModel) GetDescription

func (x *SneakerModel) GetDescription() string

func (*SneakerModel) GetHero

func (x *SneakerModel) GetHero() string

func (*SneakerModel) GetName

func (x *SneakerModel) GetName() string

func (*SneakerModel) GetUniqueId

func (x *SneakerModel) GetUniqueId() string

func (*SneakerModel) ProtoMessage

func (*SneakerModel) ProtoMessage()

func (*SneakerModel) ProtoReflect

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

func (*SneakerModel) Reset

func (x *SneakerModel) Reset()

func (*SneakerModel) String

func (x *SneakerModel) String() string

func (*SneakerModel) ToNative

func (m *SneakerModel) ToNative() model.SneakerModel

type SneakerReference

type SneakerReference struct {
	UniqueId       string               `protobuf:"bytes,1,opt,name=uniqueId,proto3" json:"uniqueId,omitempty"`
	ManufactureSku string               `protobuf:"bytes,2,opt,name=manufactureSku,proto3" json:"manufactureSku,omitempty"`
	BrandName      string               `protobuf:"bytes,3,opt,name=brandName,proto3" json:"brandName,omitempty"`
	Brand          *SneakerBrand        `protobuf:"bytes,4,opt,name=brand,proto3" json:"brand,omitempty"`
	ModelName      string               `protobuf:"bytes,5,opt,name=modelName,proto3" json:"modelName,omitempty"`
	Model          *SneakerModel        `protobuf:"bytes,6,opt,name=model,proto3" json:"model,omitempty"`
	BaseModelName  string               `protobuf:"bytes,7,opt,name=baseModelName,proto3" json:"baseModelName,omitempty"`
	BaseModel      *SneakerModel        `protobuf:"bytes,8,opt,name=baseModel,proto3" json:"baseModel,omitempty"`
	Description    string               `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
	Color          string               `protobuf:"bytes,10,opt,name=color,proto3" json:"color,omitempty"`
	Gender         string               `protobuf:"bytes,11,opt,name=gender,proto3" json:"gender,omitempty"`
	Nickname       string               `protobuf:"bytes,12,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Materials      []string             `protobuf:"bytes,13,rep,name=materials,proto3" json:"materials,omitempty"`
	Categories     []string             `protobuf:"bytes,14,rep,name=categories,proto3" json:"categories,omitempty"`
	ReleaseDate    *timestamp.Timestamp `protobuf:"bytes,15,opt,name=releaseDate,proto3" json:"releaseDate,omitempty"`
	Price          float64              `protobuf:"fixed64,16,opt,name=price,proto3" json:"price,omitempty"`
	ImageLink      string               `protobuf:"bytes,17,opt,name=imageLink,proto3" json:"imageLink,omitempty"`
	ImageLinks     []string             `protobuf:"bytes,18,rep,name=imageLinks,proto3" json:"imageLinks,omitempty"`
	StadiumUrl     string               `protobuf:"bytes,19,opt,name=stadiumUrl,proto3" json:"stadiumUrl,omitempty"`
	Likes          int64                `protobuf:"varint,20,opt,name=likes,proto3" json:"likes,omitempty"`
	Liked          bool                 `protobuf:"varint,21,opt,name=liked,proto3" json:"liked,omitempty"`
	// contains filtered or unexported fields
}

func NativeToReferences

func NativeToReferences(native []*model.SneakerReference) []*SneakerReference

func (*SneakerReference) Descriptor deprecated

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

Deprecated: Use SneakerReference.ProtoReflect.Descriptor instead.

func (*SneakerReference) FromNative

func (*SneakerReference) GetBaseModel

func (x *SneakerReference) GetBaseModel() *SneakerModel

func (*SneakerReference) GetBaseModelName

func (x *SneakerReference) GetBaseModelName() string

func (*SneakerReference) GetBrand

func (x *SneakerReference) GetBrand() *SneakerBrand

func (*SneakerReference) GetBrandName

func (x *SneakerReference) GetBrandName() string

func (*SneakerReference) GetCategories

func (x *SneakerReference) GetCategories() []string

func (*SneakerReference) GetColor

func (x *SneakerReference) GetColor() string

func (*SneakerReference) GetDescription

func (x *SneakerReference) GetDescription() string

func (*SneakerReference) GetGender

func (x *SneakerReference) GetGender() string
func (x *SneakerReference) GetImageLink() string
func (x *SneakerReference) GetImageLinks() []string

func (*SneakerReference) GetLiked

func (x *SneakerReference) GetLiked() bool

func (*SneakerReference) GetLikes

func (x *SneakerReference) GetLikes() int64

func (*SneakerReference) GetManufactureSku

func (x *SneakerReference) GetManufactureSku() string

func (*SneakerReference) GetMaterials

func (x *SneakerReference) GetMaterials() []string

func (*SneakerReference) GetModel

func (x *SneakerReference) GetModel() *SneakerModel

func (*SneakerReference) GetModelName

func (x *SneakerReference) GetModelName() string

func (*SneakerReference) GetNickname

func (x *SneakerReference) GetNickname() string

func (*SneakerReference) GetPrice

func (x *SneakerReference) GetPrice() float64

func (*SneakerReference) GetReleaseDate

func (x *SneakerReference) GetReleaseDate() *timestamp.Timestamp

func (*SneakerReference) GetStadiumUrl

func (x *SneakerReference) GetStadiumUrl() string

func (*SneakerReference) GetUniqueId

func (x *SneakerReference) GetUniqueId() string

func (*SneakerReference) ProtoMessage

func (*SneakerReference) ProtoMessage()

func (*SneakerReference) ProtoReflect

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

func (*SneakerReference) Reset

func (x *SneakerReference) Reset()

func (*SneakerReference) String

func (x *SneakerReference) String() string

func (*SneakerReference) ToNative

func (m *SneakerReference) ToNative() *model.SneakerReference

type UnimplementedReferenceServiceServer

type UnimplementedReferenceServiceServer struct {
}

UnimplementedReferenceServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedReferenceServiceServer) AddReferences

func (*UnimplementedReferenceServiceServer) CountReferences

func (*UnimplementedReferenceServiceServer) DeleteReferences

func (*UnimplementedReferenceServiceServer) EditReferences

func (*UnimplementedReferenceServiceServer) GetReferences

Jump to

Keyboard shortcuts

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