Documentation ¶
Index ¶
- func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer)
- func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
- func RegisterInterestServiceServer(s *grpc.Server, srv InterestServiceServer)
- func RegisterPlaceServiceServer(s *grpc.Server, srv PlaceServiceServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (m *Account) GetCreatedAt() *timestamp.Timestamp
- func (m *Account) GetEmail() string
- func (m *Account) GetId() string
- func (m *Account) GetName() string
- func (m *Account) GetPassword() string
- func (m *Account) GetProfileUrl() string
- func (m *Account) GetUsername() string
- func (m *Account) GetVerified() bool
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (m *Account) String() string
- func (m *Account) XXX_DiscardUnknown()
- func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Account) XXX_Merge(src proto.Message)
- func (m *Account) XXX_Size() int
- func (m *Account) XXX_Unmarshal(b []byte) error
- type AccountRequest
- func (*AccountRequest) Descriptor() ([]byte, []int)
- func (m *AccountRequest) GetId() string
- func (m *AccountRequest) GetName() string
- func (*AccountRequest) ProtoMessage()
- func (m *AccountRequest) Reset()
- func (m *AccountRequest) String() string
- func (m *AccountRequest) XXX_DiscardUnknown()
- func (m *AccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AccountRequest) XXX_Merge(src proto.Message)
- func (m *AccountRequest) XXX_Size() int
- func (m *AccountRequest) XXX_Unmarshal(b []byte) error
- type AccountResponse
- func (*AccountResponse) Descriptor() ([]byte, []int)
- func (m *AccountResponse) GetId() string
- func (m *AccountResponse) GetName() string
- func (*AccountResponse) ProtoMessage()
- func (m *AccountResponse) Reset()
- func (m *AccountResponse) String() string
- func (m *AccountResponse) XXX_DiscardUnknown()
- func (m *AccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AccountResponse) XXX_Merge(src proto.Message)
- func (m *AccountResponse) XXX_Size() int
- func (m *AccountResponse) XXX_Unmarshal(b []byte) error
- type AccountServiceClient
- type AccountServiceServer
- type AuthRequest
- func (*AuthRequest) Descriptor() ([]byte, []int)
- func (m *AuthRequest) GetPassword() string
- func (m *AuthRequest) GetUsername() string
- func (*AuthRequest) ProtoMessage()
- func (m *AuthRequest) Reset()
- func (m *AuthRequest) String() string
- func (m *AuthRequest) XXX_DiscardUnknown()
- func (m *AuthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AuthRequest) XXX_Merge(src proto.Message)
- func (m *AuthRequest) XXX_Size() int
- func (m *AuthRequest) XXX_Unmarshal(b []byte) error
- type AuthResponse
- func (*AuthResponse) Descriptor() ([]byte, []int)
- func (m *AuthResponse) GetToken() string
- func (*AuthResponse) ProtoMessage()
- func (m *AuthResponse) Reset()
- func (m *AuthResponse) String() string
- func (m *AuthResponse) XXX_DiscardUnknown()
- func (m *AuthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AuthResponse) XXX_Merge(src proto.Message)
- func (m *AuthResponse) XXX_Size() int
- func (m *AuthResponse) XXX_Unmarshal(b []byte) error
- type AuthServiceClient
- type AuthServiceServer
- type Interest
- func (*Interest) Descriptor() ([]byte, []int)
- func (m *Interest) GetFeatured() string
- func (m *Interest) GetId() string
- func (m *Interest) GetName() string
- func (*Interest) ProtoMessage()
- func (m *Interest) Reset()
- func (m *Interest) String() string
- func (m *Interest) XXX_DiscardUnknown()
- func (m *Interest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Interest) XXX_Merge(src proto.Message)
- func (m *Interest) XXX_Size() int
- func (m *Interest) XXX_Unmarshal(b []byte) error
- type InterestRequest
- func (*InterestRequest) Descriptor() ([]byte, []int)
- func (m *InterestRequest) GetId() string
- func (m *InterestRequest) GetName() string
- func (*InterestRequest) ProtoMessage()
- func (m *InterestRequest) Reset()
- func (m *InterestRequest) String() string
- func (m *InterestRequest) XXX_DiscardUnknown()
- func (m *InterestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *InterestRequest) XXX_Merge(src proto.Message)
- func (m *InterestRequest) XXX_Size() int
- func (m *InterestRequest) XXX_Unmarshal(b []byte) error
- type InterestResponse
- func (*InterestResponse) Descriptor() ([]byte, []int)
- func (m *InterestResponse) GetId() string
- func (m *InterestResponse) GetName() string
- func (*InterestResponse) ProtoMessage()
- func (m *InterestResponse) Reset()
- func (m *InterestResponse) String() string
- func (m *InterestResponse) XXX_DiscardUnknown()
- func (m *InterestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *InterestResponse) XXX_Merge(src proto.Message)
- func (m *InterestResponse) XXX_Size() int
- func (m *InterestResponse) XXX_Unmarshal(b []byte) error
- type InterestServiceClient
- type InterestServiceServer
- type InterestService_GetInterestsClient
- type InterestService_GetInterestsServer
- type Interests
- func (*Interests) Descriptor() ([]byte, []int)
- func (m *Interests) GetInterests() []*Interest
- func (*Interests) ProtoMessage()
- func (m *Interests) Reset()
- func (m *Interests) String() string
- func (m *Interests) XXX_DiscardUnknown()
- func (m *Interests) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Interests) XXX_Merge(src proto.Message)
- func (m *Interests) XXX_Size() int
- func (m *Interests) XXX_Unmarshal(b []byte) error
- type Location
- func (*Location) Descriptor() ([]byte, []int)
- func (m *Location) GetLatitude() string
- func (m *Location) GetLongitude() string
- func (*Location) ProtoMessage()
- func (m *Location) Reset()
- func (m *Location) String() string
- func (m *Location) XXX_DiscardUnknown()
- func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Location) XXX_Merge(src proto.Message)
- func (m *Location) XXX_Size() int
- func (m *Location) XXX_Unmarshal(b []byte) error
- type Place
- func (*Place) Descriptor() ([]byte, []int)
- func (m *Place) GetAmenity() string
- func (m *Place) GetContact() string
- func (m *Place) GetCreatedAt() *timestamp.Timestamp
- func (m *Place) GetDescription() string
- func (m *Place) GetFeatured() string
- func (m *Place) GetId() string
- func (m *Place) GetLocation() *Location
- func (m *Place) GetName() string
- func (m *Place) GetTagline() string
- func (m *Place) GetVerified() bool
- func (m *Place) GetWebsite() string
- func (*Place) ProtoMessage()
- func (m *Place) Reset()
- func (m *Place) String() string
- func (m *Place) XXX_DiscardUnknown()
- func (m *Place) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Place) XXX_Merge(src proto.Message)
- func (m *Place) XXX_Size() int
- func (m *Place) XXX_Unmarshal(b []byte) error
- type PlaceRequest
- func (*PlaceRequest) Descriptor() ([]byte, []int)
- func (m *PlaceRequest) GetId() string
- func (m *PlaceRequest) GetName() string
- func (*PlaceRequest) ProtoMessage()
- func (m *PlaceRequest) Reset()
- func (m *PlaceRequest) String() string
- func (m *PlaceRequest) XXX_DiscardUnknown()
- func (m *PlaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PlaceRequest) XXX_Merge(src proto.Message)
- func (m *PlaceRequest) XXX_Size() int
- func (m *PlaceRequest) XXX_Unmarshal(b []byte) error
- type PlaceServiceClient
- type PlaceServiceServer
- type PlaceService_GetPlacesClient
- type PlaceService_GetPlacesServer
- type Places
- func (*Places) Descriptor() ([]byte, []int)
- func (m *Places) GetPlaces() []*Place
- func (*Places) ProtoMessage()
- func (m *Places) Reset()
- func (m *Places) String() string
- func (m *Places) XXX_DiscardUnknown()
- func (m *Places) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Places) XXX_Merge(src proto.Message)
- func (m *Places) XXX_Size() int
- func (m *Places) XXX_Unmarshal(b []byte) error
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) GetCreatedAt ¶
func (*Account) GetPassword ¶
func (*Account) GetProfileUrl ¶
func (*Account) GetUsername ¶
func (*Account) GetVerified ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) XXX_DiscardUnknown ¶
func (m *Account) XXX_DiscardUnknown()
func (*Account) XXX_Marshal ¶
func (*Account) XXX_Unmarshal ¶
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) GetFeatured ¶
func (*Interest) ProtoMessage ¶
func (*Interest) ProtoMessage()
func (*Interest) XXX_DiscardUnknown ¶
func (m *Interest) XXX_DiscardUnknown()
func (*Interest) XXX_Marshal ¶
func (*Interest) XXX_Unmarshal ¶
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) GetInterests ¶
func (*Interests) ProtoMessage ¶
func (*Interests) ProtoMessage()
func (*Interests) XXX_DiscardUnknown ¶
func (m *Interests) XXX_DiscardUnknown()
func (*Interests) XXX_Marshal ¶
func (*Interests) XXX_Unmarshal ¶
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) GetLatitude ¶
func (*Location) GetLongitude ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) XXX_DiscardUnknown ¶
func (m *Location) XXX_DiscardUnknown()
func (*Location) XXX_Marshal ¶
func (*Location) XXX_Unmarshal ¶
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) GetAmenity ¶
func (*Place) GetContact ¶
func (*Place) GetCreatedAt ¶
func (*Place) GetDescription ¶
func (*Place) GetFeatured ¶
func (*Place) GetLocation ¶
func (*Place) GetTagline ¶
func (*Place) GetVerified ¶
func (*Place) GetWebsite ¶
func (*Place) ProtoMessage ¶
func (*Place) ProtoMessage()
func (*Place) XXX_DiscardUnknown ¶
func (m *Place) XXX_DiscardUnknown()
func (*Place) XXX_Marshal ¶
func (*Place) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*Places) ProtoMessage()
func (*Places) XXX_DiscardUnknown ¶
func (m *Places) XXX_DiscardUnknown()