Documentation ¶
Overview ¶
Package record is a generated protocol buffer package.
It is generated from these files:
github.com/microhq/profile-srv/proto/record/record.proto
It has these top-level messages:
Profile CreateRequest CreateResponse DeleteRequest DeleteResponse ReadRequest ReadResponse UpdateRequest UpdateResponse SearchRequest SearchResponse
Package record is a generated protocol buffer package.
It is generated from these files:
github.com/microhq/profile-srv/proto/record/record.proto
It has these top-level messages:
Profile CreateRequest CreateResponse DeleteRequest DeleteResponse ReadRequest ReadResponse UpdateRequest UpdateResponse SearchRequest SearchResponse
Index ¶
- func RegisterRecordHandler(s server.Server, hdlr RecordHandler, opts ...server.HandlerOption) error
- type CreateRequest
- type CreateResponse
- type DeleteRequest
- type DeleteResponse
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)
- func (m *Profile) GetBlurb() string
- func (m *Profile) GetCreated() int64
- func (m *Profile) GetDisplayName() string
- func (m *Profile) GetId() string
- func (m *Profile) GetLocation() string
- func (m *Profile) GetName() string
- func (m *Profile) GetOwner() string
- func (m *Profile) GetType() int64
- func (m *Profile) GetUpdated() int64
- func (m *Profile) GetUrl() string
- func (*Profile) ProtoMessage()
- func (m *Profile) Reset()
- func (m *Profile) String() string
- type ReadRequest
- type ReadResponse
- type RecordHandler
- type RecordService
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)
- func (m *SearchRequest) GetLimit() int64
- func (m *SearchRequest) GetName() string
- func (m *SearchRequest) GetOffset() int64
- func (m *SearchRequest) GetOwner() string
- func (*SearchRequest) ProtoMessage()
- func (m *SearchRequest) Reset()
- func (m *SearchRequest) String() string
- type SearchResponse
- type UpdateRequest
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRecordHandler ¶
func RegisterRecordHandler(s server.Server, hdlr RecordHandler, opts ...server.HandlerOption) error
Types ¶
type CreateRequest ¶
type CreateRequest struct {
Profile *Profile `protobuf:"bytes,1,opt,name=profile" json:"profile,omitempty"`
}
func (*CreateRequest) Descriptor ¶
func (*CreateRequest) Descriptor() ([]byte, []int)
func (*CreateRequest) GetProfile ¶
func (m *CreateRequest) GetProfile() *Profile
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) Reset ¶
func (m *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (m *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { }
func (*CreateResponse) Descriptor ¶
func (*CreateResponse) Descriptor() ([]byte, []int)
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) Reset ¶
func (m *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (m *CreateResponse) String() string
type DeleteRequest ¶
type DeleteRequest struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}
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
type DeleteResponse ¶
type DeleteResponse struct { }
func (*DeleteResponse) Descriptor ¶
func (*DeleteResponse) Descriptor() ([]byte, []int)
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) Reset ¶
func (m *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (m *DeleteResponse) String() string
type Profile ¶
type Profile struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Owner string `protobuf:"bytes,3,opt,name=owner" json:"owner,omitempty"` Type int64 `protobuf:"varint,4,opt,name=type" json:"type,omitempty"` DisplayName string `protobuf:"bytes,6,opt,name=displayName" json:"displayName,omitempty"` Blurb string `protobuf:"bytes,7,opt,name=blurb" json:"blurb,omitempty"` Url string `protobuf:"bytes,8,opt,name=url" json:"url,omitempty"` Location string `protobuf:"bytes,9,opt,name=location" json:"location,omitempty"` Created int64 `protobuf:"varint,10,opt,name=created" json:"created,omitempty"` Updated int64 `protobuf:"varint,11,opt,name=updated" json:"updated,omitempty"` }
func (*Profile) Descriptor ¶
func (*Profile) GetCreated ¶
func (*Profile) GetDisplayName ¶
func (*Profile) GetLocation ¶
func (*Profile) GetUpdated ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
type ReadRequest ¶
type ReadRequest struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}
func (*ReadRequest) Descriptor ¶
func (*ReadRequest) Descriptor() ([]byte, []int)
func (*ReadRequest) GetId ¶
func (m *ReadRequest) GetId() string
func (*ReadRequest) ProtoMessage ¶
func (*ReadRequest) ProtoMessage()
func (*ReadRequest) Reset ¶
func (m *ReadRequest) Reset()
func (*ReadRequest) String ¶
func (m *ReadRequest) String() string
type ReadResponse ¶
type ReadResponse struct {
Profile *Profile `protobuf:"bytes,1,opt,name=profile" json:"profile,omitempty"`
}
func (*ReadResponse) Descriptor ¶
func (*ReadResponse) Descriptor() ([]byte, []int)
func (*ReadResponse) GetProfile ¶
func (m *ReadResponse) GetProfile() *Profile
func (*ReadResponse) ProtoMessage ¶
func (*ReadResponse) ProtoMessage()
func (*ReadResponse) Reset ¶
func (m *ReadResponse) Reset()
func (*ReadResponse) String ¶
func (m *ReadResponse) String() string
type RecordHandler ¶
type RecordHandler interface { Create(context.Context, *CreateRequest, *CreateResponse) error Read(context.Context, *ReadRequest, *ReadResponse) error Delete(context.Context, *DeleteRequest, *DeleteResponse) error Update(context.Context, *UpdateRequest, *UpdateResponse) error Search(context.Context, *SearchRequest, *SearchResponse) error }
type RecordService ¶
type RecordService interface { Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*CreateResponse, error) Read(ctx context.Context, in *ReadRequest, opts ...client.CallOption) (*ReadResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*DeleteResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...client.CallOption) (*UpdateResponse, error) Search(ctx context.Context, in *SearchRequest, opts ...client.CallOption) (*SearchResponse, error) }
func NewRecordService ¶
func NewRecordService(name string, c client.Client) RecordService
type SearchRequest ¶
type SearchRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner" json:"owner,omitempty"` Limit int64 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"` Offset int64 `protobuf:"varint,4,opt,name=offset" json:"offset,omitempty"` }
func (*SearchRequest) Descriptor ¶
func (*SearchRequest) Descriptor() ([]byte, []int)
func (*SearchRequest) GetLimit ¶
func (m *SearchRequest) GetLimit() int64
func (*SearchRequest) GetName ¶
func (m *SearchRequest) GetName() string
func (*SearchRequest) GetOffset ¶
func (m *SearchRequest) GetOffset() int64
func (*SearchRequest) GetOwner ¶
func (m *SearchRequest) GetOwner() string
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) Reset ¶
func (m *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (m *SearchRequest) String() string
type SearchResponse ¶
type SearchResponse struct {
Profiles []*Profile `protobuf:"bytes,1,rep,name=profiles" json:"profiles,omitempty"`
}
func (*SearchResponse) Descriptor ¶
func (*SearchResponse) Descriptor() ([]byte, []int)
func (*SearchResponse) GetProfiles ¶
func (m *SearchResponse) GetProfiles() []*Profile
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) Reset ¶
func (m *SearchResponse) Reset()
func (*SearchResponse) String ¶
func (m *SearchResponse) String() string
type UpdateRequest ¶
type UpdateRequest struct {
Profile *Profile `protobuf:"bytes,1,opt,name=profile" json:"profile,omitempty"`
}
func (*UpdateRequest) Descriptor ¶
func (*UpdateRequest) Descriptor() ([]byte, []int)
func (*UpdateRequest) GetProfile ¶
func (m *UpdateRequest) GetProfile() *Profile
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) Reset ¶
func (m *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (m *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct { }
func (*UpdateResponse) Descriptor ¶
func (*UpdateResponse) Descriptor() ([]byte, []int)
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) Reset ¶
func (m *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (m *UpdateResponse) String() string
Click to show internal directories.
Click to hide internal directories.