hahiye

package
v0.0.0-...-16b7ef6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAccountServiceServer

func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer)

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)

func RegisterInterestServiceServer

func RegisterInterestServiceServer(s *grpc.Server, srv InterestServiceServer)

func RegisterPlaceServiceServer

func RegisterPlaceServiceServer(s *grpc.Server, srv PlaceServiceServer)

Types

type Account

type Account 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"`
	Username             string               `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	Password             string               `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	Email                string               `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	ProfileUrl           string               `protobuf:"bytes,6,opt,name=profile_url,json=profileUrl,proto3" json:"profile_url,omitempty"`
	Verified             bool                 `protobuf:"varint,7,opt,name=verified,proto3" json:"verified,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Account represent Account model and its properties

func (*Account) Descriptor

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

func (*Account) GetCreatedAt

func (m *Account) GetCreatedAt() *timestamp.Timestamp

func (*Account) GetEmail

func (m *Account) GetEmail() string

func (*Account) GetId

func (m *Account) GetId() string

func (*Account) GetName

func (m *Account) GetName() string

func (*Account) GetPassword

func (m *Account) GetPassword() string

func (*Account) GetProfileUrl

func (m *Account) GetProfileUrl() string

func (*Account) GetUsername

func (m *Account) GetUsername() string

func (*Account) GetVerified

func (m *Account) GetVerified() bool

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) Reset

func (m *Account) Reset()

func (*Account) String

func (m *Account) String() string

func (*Account) XXX_DiscardUnknown

func (m *Account) XXX_DiscardUnknown()

func (*Account) XXX_Marshal

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

func (*Account) XXX_Merge

func (dst *Account) XXX_Merge(src proto.Message)

func (*Account) XXX_Size

func (m *Account) XXX_Size() int

func (*Account) XXX_Unmarshal

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

type AccountRequest

type AccountRequest 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AccountRequest) Descriptor

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

func (*AccountRequest) GetId

func (m *AccountRequest) GetId() string

func (*AccountRequest) GetName

func (m *AccountRequest) GetName() string

func (*AccountRequest) ProtoMessage

func (*AccountRequest) ProtoMessage()

func (*AccountRequest) Reset

func (m *AccountRequest) Reset()

func (*AccountRequest) String

func (m *AccountRequest) String() string

func (*AccountRequest) XXX_DiscardUnknown

func (m *AccountRequest) XXX_DiscardUnknown()

func (*AccountRequest) XXX_Marshal

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

func (*AccountRequest) XXX_Merge

func (dst *AccountRequest) XXX_Merge(src proto.Message)

func (*AccountRequest) XXX_Size

func (m *AccountRequest) XXX_Size() int

func (*AccountRequest) XXX_Unmarshal

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

type AccountResponse

type AccountResponse 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AccountResponse) Descriptor

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

func (*AccountResponse) GetId

func (m *AccountResponse) GetId() string

func (*AccountResponse) GetName

func (m *AccountResponse) GetName() string

func (*AccountResponse) ProtoMessage

func (*AccountResponse) ProtoMessage()

func (*AccountResponse) Reset

func (m *AccountResponse) Reset()

func (*AccountResponse) String

func (m *AccountResponse) String() string

func (*AccountResponse) XXX_DiscardUnknown

func (m *AccountResponse) XXX_DiscardUnknown()

func (*AccountResponse) XXX_Marshal

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

func (*AccountResponse) XXX_Merge

func (dst *AccountResponse) XXX_Merge(src proto.Message)

func (*AccountResponse) XXX_Size

func (m *AccountResponse) XXX_Size() int

func (*AccountResponse) XXX_Unmarshal

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

type AccountServiceClient

type AccountServiceClient interface {
	CreateAccount(ctx context.Context, in *Account, opts ...grpc.CallOption) (*Account, error)
	DeleteAccount(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	GetAccount(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (*Account, error)
	UpdateAccount(ctx context.Context, in *Account, opts ...grpc.CallOption) (*AccountResponse, error)
}

AccountServiceClient is the client API for AccountService service.

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

func NewAccountServiceClient

func NewAccountServiceClient(cc *grpc.ClientConn) AccountServiceClient

type AccountServiceServer

type AccountServiceServer interface {
	CreateAccount(context.Context, *Account) (*Account, error)
	DeleteAccount(context.Context, *AccountRequest) (*empty.Empty, error)
	GetAccount(context.Context, *AccountRequest) (*Account, error)
	UpdateAccount(context.Context, *Account) (*AccountResponse, error)
}

AccountServiceServer is the server API for AccountService service.

type AuthRequest

type AuthRequest struct {
	Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Authentication Service

AuthRequest

func (*AuthRequest) Descriptor

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

func (*AuthRequest) GetPassword

func (m *AuthRequest) GetPassword() string

func (*AuthRequest) GetUsername

func (m *AuthRequest) GetUsername() string

func (*AuthRequest) ProtoMessage

func (*AuthRequest) ProtoMessage()

func (*AuthRequest) Reset

func (m *AuthRequest) Reset()

func (*AuthRequest) String

func (m *AuthRequest) String() string

func (*AuthRequest) XXX_DiscardUnknown

func (m *AuthRequest) XXX_DiscardUnknown()

func (*AuthRequest) XXX_Marshal

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

func (*AuthRequest) XXX_Merge

func (dst *AuthRequest) XXX_Merge(src proto.Message)

func (*AuthRequest) XXX_Size

func (m *AuthRequest) XXX_Size() int

func (*AuthRequest) XXX_Unmarshal

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

type AuthResponse

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

AuthResponse

func (*AuthResponse) Descriptor

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

func (*AuthResponse) GetToken

func (m *AuthResponse) GetToken() string

func (*AuthResponse) ProtoMessage

func (*AuthResponse) ProtoMessage()

func (*AuthResponse) Reset

func (m *AuthResponse) Reset()

func (*AuthResponse) String

func (m *AuthResponse) String() string

func (*AuthResponse) XXX_DiscardUnknown

func (m *AuthResponse) XXX_DiscardUnknown()

func (*AuthResponse) XXX_Marshal

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

func (*AuthResponse) XXX_Merge

func (dst *AuthResponse) XXX_Merge(src proto.Message)

func (*AuthResponse) XXX_Size

func (m *AuthResponse) XXX_Size() int

func (*AuthResponse) XXX_Unmarshal

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

type AuthServiceClient

type AuthServiceClient interface {
	Login(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error)
}

AuthServiceClient is the client API for AuthService service.

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

func NewAuthServiceClient

func NewAuthServiceClient(cc *grpc.ClientConn) AuthServiceClient

type AuthServiceServer

type AuthServiceServer interface {
	Login(context.Context, *AuthRequest) (*AuthResponse, error)
}

AuthServiceServer is the server API for AuthService service.

type Interest

type Interest 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"`
	Featured             string   `protobuf:"bytes,3,opt,name=featured,proto3" json:"featured,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Interest) Descriptor

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

func (*Interest) GetFeatured

func (m *Interest) GetFeatured() string

func (*Interest) GetId

func (m *Interest) GetId() string

func (*Interest) GetName

func (m *Interest) GetName() string

func (*Interest) ProtoMessage

func (*Interest) ProtoMessage()

func (*Interest) Reset

func (m *Interest) Reset()

func (*Interest) String

func (m *Interest) String() string

func (*Interest) XXX_DiscardUnknown

func (m *Interest) XXX_DiscardUnknown()

func (*Interest) XXX_Marshal

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

func (*Interest) XXX_Merge

func (dst *Interest) XXX_Merge(src proto.Message)

func (*Interest) XXX_Size

func (m *Interest) XXX_Size() int

func (*Interest) XXX_Unmarshal

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

type InterestRequest

type InterestRequest 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InterestRequest) Descriptor

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

func (*InterestRequest) GetId

func (m *InterestRequest) GetId() string

func (*InterestRequest) GetName

func (m *InterestRequest) GetName() string

func (*InterestRequest) ProtoMessage

func (*InterestRequest) ProtoMessage()

func (*InterestRequest) Reset

func (m *InterestRequest) Reset()

func (*InterestRequest) String

func (m *InterestRequest) String() string

func (*InterestRequest) XXX_DiscardUnknown

func (m *InterestRequest) XXX_DiscardUnknown()

func (*InterestRequest) XXX_Marshal

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

func (*InterestRequest) XXX_Merge

func (dst *InterestRequest) XXX_Merge(src proto.Message)

func (*InterestRequest) XXX_Size

func (m *InterestRequest) XXX_Size() int

func (*InterestRequest) XXX_Unmarshal

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

type InterestResponse

type InterestResponse 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InterestResponse) Descriptor

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

func (*InterestResponse) GetId

func (m *InterestResponse) GetId() string

func (*InterestResponse) GetName

func (m *InterestResponse) GetName() string

func (*InterestResponse) ProtoMessage

func (*InterestResponse) ProtoMessage()

func (*InterestResponse) Reset

func (m *InterestResponse) Reset()

func (*InterestResponse) String

func (m *InterestResponse) String() string

func (*InterestResponse) XXX_DiscardUnknown

func (m *InterestResponse) XXX_DiscardUnknown()

func (*InterestResponse) XXX_Marshal

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

func (*InterestResponse) XXX_Merge

func (dst *InterestResponse) XXX_Merge(src proto.Message)

func (*InterestResponse) XXX_Size

func (m *InterestResponse) XXX_Size() int

func (*InterestResponse) XXX_Unmarshal

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

type InterestServiceClient

type InterestServiceClient interface {
	AddInterest(ctx context.Context, in *Interest, opts ...grpc.CallOption) (*Interest, error)
	Removeinterest(ctx context.Context, in *InterestRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	GetInterest(ctx context.Context, in *InterestRequest, opts ...grpc.CallOption) (*Interest, error)
	GetInterests(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (InterestService_GetInterestsClient, error)
	UpdateInterest(ctx context.Context, in *Interest, opts ...grpc.CallOption) (*InterestResponse, error)
}

InterestServiceClient is the client API for InterestService service.

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

func NewInterestServiceClient

func NewInterestServiceClient(cc *grpc.ClientConn) InterestServiceClient

type InterestServiceServer

type InterestServiceServer interface {
	AddInterest(context.Context, *Interest) (*Interest, error)
	Removeinterest(context.Context, *InterestRequest) (*empty.Empty, error)
	GetInterest(context.Context, *InterestRequest) (*Interest, error)
	GetInterests(*empty.Empty, InterestService_GetInterestsServer) error
	UpdateInterest(context.Context, *Interest) (*InterestResponse, error)
}

InterestServiceServer is the server API for InterestService service.

type InterestService_GetInterestsClient

type InterestService_GetInterestsClient interface {
	Recv() (*Interest, error)
	grpc.ClientStream
}

type InterestService_GetInterestsServer

type InterestService_GetInterestsServer interface {
	Send(*Interest) error
	grpc.ServerStream
}

type Interests

type Interests struct {
	Interests            []*Interest `protobuf:"bytes,1,rep,name=interests,proto3" json:"interests,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*Interests) Descriptor

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

func (*Interests) GetInterests

func (m *Interests) GetInterests() []*Interest

func (*Interests) ProtoMessage

func (*Interests) ProtoMessage()

func (*Interests) Reset

func (m *Interests) Reset()

func (*Interests) String

func (m *Interests) String() string

func (*Interests) XXX_DiscardUnknown

func (m *Interests) XXX_DiscardUnknown()

func (*Interests) XXX_Marshal

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

func (*Interests) XXX_Merge

func (dst *Interests) XXX_Merge(src proto.Message)

func (*Interests) XXX_Size

func (m *Interests) XXX_Size() int

func (*Interests) XXX_Unmarshal

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

type Location

type Location struct {
	Latitude             string   `protobuf:"bytes,1,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude            string   `protobuf:"bytes,2,opt,name=longitude,proto3" json:"longitude,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Location message

func (*Location) Descriptor

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

func (*Location) GetLatitude

func (m *Location) GetLatitude() string

func (*Location) GetLongitude

func (m *Location) GetLongitude() string

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) Reset

func (m *Location) Reset()

func (*Location) String

func (m *Location) String() string

func (*Location) XXX_DiscardUnknown

func (m *Location) XXX_DiscardUnknown()

func (*Location) XXX_Marshal

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

func (*Location) XXX_Merge

func (dst *Location) XXX_Merge(src proto.Message)

func (*Location) XXX_Size

func (m *Location) XXX_Size() int

func (*Location) XXX_Unmarshal

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

type Place

type Place 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"`
	Featured             string               `protobuf:"bytes,3,opt,name=featured,proto3" json:"featured,omitempty"`
	Website              string               `protobuf:"bytes,4,opt,name=website,proto3" json:"website,omitempty"`
	Tagline              string               `protobuf:"bytes,5,opt,name=tagline,proto3" json:"tagline,omitempty"`
	Description          string               `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	Contact              string               `protobuf:"bytes,7,opt,name=contact,proto3" json:"contact,omitempty"`
	Verified             bool                 `protobuf:"varint,9,opt,name=verified,proto3" json:"verified,omitempty"`
	Location             *Location            `protobuf:"bytes,10,opt,name=location,proto3" json:"location,omitempty"`
	Amenity              string               `protobuf:"bytes,11,opt,name=amenity,proto3" json:"amenity,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Place represent Place model and its properties

func (*Place) Descriptor

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

func (*Place) GetAmenity

func (m *Place) GetAmenity() string

func (*Place) GetContact

func (m *Place) GetContact() string

func (*Place) GetCreatedAt

func (m *Place) GetCreatedAt() *timestamp.Timestamp

func (*Place) GetDescription

func (m *Place) GetDescription() string

func (*Place) GetFeatured

func (m *Place) GetFeatured() string

func (*Place) GetId

func (m *Place) GetId() string

func (*Place) GetLocation

func (m *Place) GetLocation() *Location

func (*Place) GetName

func (m *Place) GetName() string

func (*Place) GetTagline

func (m *Place) GetTagline() string

func (*Place) GetVerified

func (m *Place) GetVerified() bool

func (*Place) GetWebsite

func (m *Place) GetWebsite() string

func (*Place) ProtoMessage

func (*Place) ProtoMessage()

func (*Place) Reset

func (m *Place) Reset()

func (*Place) String

func (m *Place) String() string

func (*Place) XXX_DiscardUnknown

func (m *Place) XXX_DiscardUnknown()

func (*Place) XXX_Marshal

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

func (*Place) XXX_Merge

func (dst *Place) XXX_Merge(src proto.Message)

func (*Place) XXX_Size

func (m *Place) XXX_Size() int

func (*Place) XXX_Unmarshal

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

type PlaceRequest

type PlaceRequest 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PlaceRequest) Descriptor

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

func (*PlaceRequest) GetId

func (m *PlaceRequest) GetId() string

func (*PlaceRequest) GetName

func (m *PlaceRequest) GetName() string

func (*PlaceRequest) ProtoMessage

func (*PlaceRequest) ProtoMessage()

func (*PlaceRequest) Reset

func (m *PlaceRequest) Reset()

func (*PlaceRequest) String

func (m *PlaceRequest) String() string

func (*PlaceRequest) XXX_DiscardUnknown

func (m *PlaceRequest) XXX_DiscardUnknown()

func (*PlaceRequest) XXX_Marshal

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

func (*PlaceRequest) XXX_Merge

func (dst *PlaceRequest) XXX_Merge(src proto.Message)

func (*PlaceRequest) XXX_Size

func (m *PlaceRequest) XXX_Size() int

func (*PlaceRequest) XXX_Unmarshal

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

type PlaceServiceClient

type PlaceServiceClient interface {
	AddPlace(ctx context.Context, in *Place, opts ...grpc.CallOption) (*Place, error)
	DeletePlace(ctx context.Context, in *PlaceRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	GetPlace(ctx context.Context, in *PlaceRequest, opts ...grpc.CallOption) (*Place, error)
	GetPlaces(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (PlaceService_GetPlacesClient, error)
	UpdatePlace(ctx context.Context, in *Place, opts ...grpc.CallOption) (*Place, error)
}

PlaceServiceClient is the client API for PlaceService service.

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

func NewPlaceServiceClient

func NewPlaceServiceClient(cc *grpc.ClientConn) PlaceServiceClient

type PlaceServiceServer

type PlaceServiceServer interface {
	AddPlace(context.Context, *Place) (*Place, error)
	DeletePlace(context.Context, *PlaceRequest) (*empty.Empty, error)
	GetPlace(context.Context, *PlaceRequest) (*Place, error)
	GetPlaces(*empty.Empty, PlaceService_GetPlacesServer) error
	UpdatePlace(context.Context, *Place) (*Place, error)
}

PlaceServiceServer is the server API for PlaceService service.

type PlaceService_GetPlacesClient

type PlaceService_GetPlacesClient interface {
	Recv() (*Places, error)
	grpc.ClientStream
}

type PlaceService_GetPlacesServer

type PlaceService_GetPlacesServer interface {
	Send(*Places) error
	grpc.ServerStream
}

type Places

type Places struct {
	Places               []*Place `protobuf:"bytes,1,rep,name=places,proto3" json:"places,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Places) Descriptor

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

func (*Places) GetPlaces

func (m *Places) GetPlaces() []*Place

func (*Places) ProtoMessage

func (*Places) ProtoMessage()

func (*Places) Reset

func (m *Places) Reset()

func (*Places) String

func (m *Places) String() string

func (*Places) XXX_DiscardUnknown

func (m *Places) XXX_DiscardUnknown()

func (*Places) XXX_Marshal

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

func (*Places) XXX_Merge

func (dst *Places) XXX_Merge(src proto.Message)

func (*Places) XXX_Size

func (m *Places) XXX_Size() int

func (*Places) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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