Documentation ¶
Overview ¶
Package service is a generated protocol buffer package.
It is generated from these files:
pin_add.proto pin_delete.proto pin_update.proto response_pin.proto response_user.proto user_get.proto
It has these top-level messages:
AddRequest DeleteRequest PinDeleteResponse UpdateRequest PinResponse UserResponse UserIdRequest UserTokenRequest
Index ¶
- func RegisterAddPinServer(s *grpc.Server, srv AddPinServer)
- func RegisterDeletePinServer(s *grpc.Server, srv DeletePinServer)
- func RegisterGetUserServer(s *grpc.Server, srv GetUserServer)
- func RegisterUpdatePinServer(s *grpc.Server, srv UpdatePinServer)
- type AddPinClient
- type AddPinServer
- type AddRequest
- func (*AddRequest) Descriptor() ([]byte, []int)
- func (m *AddRequest) GetDescription() string
- func (m *AddRequest) GetPhrase() string
- func (m *AddRequest) GetTags() []string
- func (m *AddRequest) GetTimestamp() int64
- func (m *AddRequest) GetTitle() string
- func (m *AddRequest) GetUrl() string
- func (m *AddRequest) GetUserId() int32
- func (*AddRequest) ProtoMessage()
- func (m *AddRequest) Reset()
- func (m *AddRequest) String() string
- type DeletePinClient
- type DeletePinServer
- type DeleteRequest
- type GetUserClient
- type GetUserServer
- type PinDeleteResponse
- type PinResponse
- func (*PinResponse) Descriptor() ([]byte, []int)
- func (m *PinResponse) GetDescription() string
- func (m *PinResponse) GetId() int32
- func (m *PinResponse) GetPhrase() string
- func (m *PinResponse) GetTags() []string
- func (m *PinResponse) GetTimestamp() int64
- func (m *PinResponse) GetTitle() string
- func (m *PinResponse) GetUrl() string
- func (m *PinResponse) GetUserId() int32
- func (*PinResponse) ProtoMessage()
- func (m *PinResponse) Reset()
- func (m *PinResponse) String() string
- type UpdatePinClient
- type UpdatePinServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)
- func (m *UpdateRequest) GetDescription() string
- func (m *UpdateRequest) GetId() int32
- func (m *UpdateRequest) GetPhrase() string
- func (m *UpdateRequest) GetTags() []string
- func (m *UpdateRequest) GetTimestamp() int64
- func (m *UpdateRequest) GetTitle() string
- func (m *UpdateRequest) GetUrl() string
- func (m *UpdateRequest) GetUserId() int32
- func (*UpdateRequest) ProtoMessage()
- func (m *UpdateRequest) Reset()
- func (m *UpdateRequest) String() string
- type UserIdRequest
- type UserResponse
- type UserTokenRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAddPinServer ¶
func RegisterAddPinServer(s *grpc.Server, srv AddPinServer)
func RegisterDeletePinServer ¶
func RegisterDeletePinServer(s *grpc.Server, srv DeletePinServer)
func RegisterGetUserServer ¶
func RegisterGetUserServer(s *grpc.Server, srv GetUserServer)
func RegisterUpdatePinServer ¶
func RegisterUpdatePinServer(s *grpc.Server, srv UpdatePinServer)
Types ¶
type AddPinClient ¶
type AddPinClient interface {
Execute(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*PinResponse, error)
}
func NewAddPinClient ¶
func NewAddPinClient(cc *grpc.ClientConn) AddPinClient
type AddPinServer ¶
type AddPinServer interface {
Execute(context.Context, *AddRequest) (*PinResponse, error)
}
type AddRequest ¶
type AddRequest struct { Title string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` UserId int32 `protobuf:"varint,2,opt,name=userId" json:"userId,omitempty"` Url string `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"` Phrase string `protobuf:"bytes,4,opt,name=phrase" json:"phrase,omitempty"` Timestamp int64 `protobuf:"varint,5,opt,name=timestamp" json:"timestamp,omitempty"` Description string `protobuf:"bytes,6,opt,name=description" json:"description,omitempty"` Tags []string `protobuf:"bytes,7,rep,name=tags" json:"tags,omitempty"` }
func (*AddRequest) Descriptor ¶
func (*AddRequest) Descriptor() ([]byte, []int)
func (*AddRequest) GetDescription ¶
func (m *AddRequest) GetDescription() string
func (*AddRequest) GetPhrase ¶
func (m *AddRequest) GetPhrase() string
func (*AddRequest) GetTags ¶
func (m *AddRequest) GetTags() []string
func (*AddRequest) GetTimestamp ¶
func (m *AddRequest) GetTimestamp() int64
func (*AddRequest) GetTitle ¶
func (m *AddRequest) GetTitle() string
func (*AddRequest) GetUrl ¶
func (m *AddRequest) GetUrl() string
func (*AddRequest) GetUserId ¶
func (m *AddRequest) GetUserId() int32
func (*AddRequest) ProtoMessage ¶
func (*AddRequest) ProtoMessage()
func (*AddRequest) Reset ¶
func (m *AddRequest) Reset()
func (*AddRequest) String ¶
func (m *AddRequest) String() string
type DeletePinClient ¶
type DeletePinClient interface {
Execute(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*PinDeleteResponse, error)
}
func NewDeletePinClient ¶
func NewDeletePinClient(cc *grpc.ClientConn) DeletePinClient
type DeletePinServer ¶
type DeletePinServer interface {
Execute(context.Context, *DeleteRequest) (*PinDeleteResponse, error)
}
type DeleteRequest ¶
type DeleteRequest struct {
Id int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*DeleteRequest) Descriptor ¶
func (*DeleteRequest) Descriptor() ([]byte, []int)
func (*DeleteRequest) GetId ¶
func (m *DeleteRequest) GetId() int32
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) Reset ¶
func (m *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (m *DeleteRequest) String() string
type GetUserClient ¶
type GetUserClient interface { GetById(ctx context.Context, in *UserIdRequest, opts ...grpc.CallOption) (*UserResponse, error) GetByToken(ctx context.Context, in *UserTokenRequest, opts ...grpc.CallOption) (*UserResponse, error) }
func NewGetUserClient ¶
func NewGetUserClient(cc *grpc.ClientConn) GetUserClient
type GetUserServer ¶
type GetUserServer interface { GetById(context.Context, *UserIdRequest) (*UserResponse, error) GetByToken(context.Context, *UserTokenRequest) (*UserResponse, error) }
type PinDeleteResponse ¶
type PinDeleteResponse struct { }
func (*PinDeleteResponse) Descriptor ¶
func (*PinDeleteResponse) Descriptor() ([]byte, []int)
func (*PinDeleteResponse) ProtoMessage ¶
func (*PinDeleteResponse) ProtoMessage()
func (*PinDeleteResponse) Reset ¶
func (m *PinDeleteResponse) Reset()
func (*PinDeleteResponse) String ¶
func (m *PinDeleteResponse) String() string
type PinResponse ¶
type PinResponse struct { Id int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` UserId int32 `protobuf:"varint,2,opt,name=userId" json:"userId,omitempty"` Title string `protobuf:"bytes,3,opt,name=title" json:"title,omitempty"` Url string `protobuf:"bytes,4,opt,name=url" json:"url,omitempty"` Phrase string `protobuf:"bytes,5,opt,name=phrase" json:"phrase,omitempty"` Timestamp int64 `protobuf:"varint,6,opt,name=timestamp" json:"timestamp,omitempty"` Description string `protobuf:"bytes,7,opt,name=description" json:"description,omitempty"` Tags []string `protobuf:"bytes,8,rep,name=tags" json:"tags,omitempty"` }
func (*PinResponse) Descriptor ¶
func (*PinResponse) Descriptor() ([]byte, []int)
func (*PinResponse) GetDescription ¶
func (m *PinResponse) GetDescription() string
func (*PinResponse) GetId ¶
func (m *PinResponse) GetId() int32
func (*PinResponse) GetPhrase ¶
func (m *PinResponse) GetPhrase() string
func (*PinResponse) GetTags ¶
func (m *PinResponse) GetTags() []string
func (*PinResponse) GetTimestamp ¶
func (m *PinResponse) GetTimestamp() int64
func (*PinResponse) GetTitle ¶
func (m *PinResponse) GetTitle() string
func (*PinResponse) GetUrl ¶
func (m *PinResponse) GetUrl() string
func (*PinResponse) GetUserId ¶
func (m *PinResponse) GetUserId() int32
func (*PinResponse) ProtoMessage ¶
func (*PinResponse) ProtoMessage()
func (*PinResponse) Reset ¶
func (m *PinResponse) Reset()
func (*PinResponse) String ¶
func (m *PinResponse) String() string
type UpdatePinClient ¶
type UpdatePinClient interface {
Execute(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*PinResponse, error)
}
func NewUpdatePinClient ¶
func NewUpdatePinClient(cc *grpc.ClientConn) UpdatePinClient
type UpdatePinServer ¶
type UpdatePinServer interface {
Execute(context.Context, *UpdateRequest) (*PinResponse, error)
}
type UpdateRequest ¶
type UpdateRequest struct { Id int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` UserId int32 `protobuf:"varint,2,opt,name=userId" json:"userId,omitempty"` Title string `protobuf:"bytes,3,opt,name=title" json:"title,omitempty"` Url string `protobuf:"bytes,4,opt,name=url" json:"url,omitempty"` Phrase string `protobuf:"bytes,5,opt,name=phrase" json:"phrase,omitempty"` Timestamp int64 `protobuf:"varint,6,opt,name=timestamp" json:"timestamp,omitempty"` Description string `protobuf:"bytes,7,opt,name=description" json:"description,omitempty"` Tags []string `protobuf:"bytes,8,rep,name=tags" json:"tags,omitempty"` }
func (*UpdateRequest) Descriptor ¶
func (*UpdateRequest) Descriptor() ([]byte, []int)
func (*UpdateRequest) GetDescription ¶
func (m *UpdateRequest) GetDescription() string
func (*UpdateRequest) GetId ¶
func (m *UpdateRequest) GetId() int32
func (*UpdateRequest) GetPhrase ¶
func (m *UpdateRequest) GetPhrase() string
func (*UpdateRequest) GetTags ¶
func (m *UpdateRequest) GetTags() []string
func (*UpdateRequest) GetTimestamp ¶
func (m *UpdateRequest) GetTimestamp() int64
func (*UpdateRequest) GetTitle ¶
func (m *UpdateRequest) GetTitle() string
func (*UpdateRequest) GetUrl ¶
func (m *UpdateRequest) GetUrl() string
func (*UpdateRequest) GetUserId ¶
func (m *UpdateRequest) GetUserId() int32
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) Reset ¶
func (m *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (m *UpdateRequest) String() string
type UserIdRequest ¶
type UserIdRequest struct {
Id int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*UserIdRequest) Descriptor ¶
func (*UserIdRequest) Descriptor() ([]byte, []int)
func (*UserIdRequest) GetId ¶
func (m *UserIdRequest) GetId() int32
func (*UserIdRequest) ProtoMessage ¶
func (*UserIdRequest) ProtoMessage()
func (*UserIdRequest) Reset ¶
func (m *UserIdRequest) Reset()
func (*UserIdRequest) String ¶
func (m *UserIdRequest) String() string
type UserResponse ¶
type UserResponse struct { Id int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Token string `protobuf:"bytes,3,opt,name=token" json:"token,omitempty"` }
func (*UserResponse) Descriptor ¶
func (*UserResponse) Descriptor() ([]byte, []int)
func (*UserResponse) GetId ¶
func (m *UserResponse) GetId() int32
func (*UserResponse) GetName ¶
func (m *UserResponse) GetName() string
func (*UserResponse) GetToken ¶
func (m *UserResponse) GetToken() string
func (*UserResponse) ProtoMessage ¶
func (*UserResponse) ProtoMessage()
func (*UserResponse) Reset ¶
func (m *UserResponse) Reset()
func (*UserResponse) String ¶
func (m *UserResponse) String() string
type UserTokenRequest ¶
type UserTokenRequest struct {
Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
}
func (*UserTokenRequest) Descriptor ¶
func (*UserTokenRequest) Descriptor() ([]byte, []int)
func (*UserTokenRequest) GetToken ¶
func (m *UserTokenRequest) GetToken() string
func (*UserTokenRequest) ProtoMessage ¶
func (*UserTokenRequest) ProtoMessage()
func (*UserTokenRequest) Reset ¶
func (m *UserTokenRequest) Reset()
func (*UserTokenRequest) String ¶
func (m *UserTokenRequest) String() string
Click to show internal directories.
Click to hide internal directories.