record

package
v0.0.0-...-b867333 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Profile) GetBlurb

func (m *Profile) GetBlurb() string

func (*Profile) GetCreated

func (m *Profile) GetCreated() int64

func (*Profile) GetDisplayName

func (m *Profile) GetDisplayName() string

func (*Profile) GetId

func (m *Profile) GetId() string

func (*Profile) GetLocation

func (m *Profile) GetLocation() string

func (*Profile) GetName

func (m *Profile) GetName() string

func (*Profile) GetOwner

func (m *Profile) GetOwner() string

func (*Profile) GetType

func (m *Profile) GetType() int64

func (*Profile) GetUpdated

func (m *Profile) GetUpdated() int64

func (*Profile) GetUrl

func (m *Profile) GetUrl() string

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) Reset

func (m *Profile) Reset()

func (*Profile) String

func (m *Profile) String() string

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 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

Jump to

Keyboard shortcuts

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