Documentation ¶
Overview ¶
This file is generated by protoc-gen-persist Source File: pb/user.proto DO NOT EDIT !
Index ¶
- func RegisterUServServer(s *grpc.Server, srv UServServer)
- type DefaultHooks_UServ
- func (*DefaultHooks_UServ) GetAllUsersAfterHook(context.Context, *Empty, *User) error
- func (*DefaultHooks_UServ) GetAllUsersBeforeHook(context.Context, *Empty) (*User, error)
- func (*DefaultHooks_UServ) InsertUsersAfterHook(context.Context, *User, *Empty2) error
- func (*DefaultHooks_UServ) InsertUsersBeforeHook(context.Context, *User) (*Empty2, error)
- type DefaultMappingImpl_UServ_SliceStringParam
- func (this *DefaultMappingImpl_UServ_SliceStringParam) SpannerScan(*spanner.GenericColumnValue) error
- func (this *DefaultMappingImpl_UServ_SliceStringParam) SpannerValue() (interface{}, error)
- func (this *DefaultMappingImpl_UServ_SliceStringParam) ToProto(**SliceStringParam) error
- func (this *DefaultMappingImpl_UServ_SliceStringParam) ToSpanner(*SliceStringParam) persist.SpannerScanValuer
- type DefaultMappingImpl_UServ_TimestampTimestamp
- func (this *DefaultMappingImpl_UServ_TimestampTimestamp) SpannerScan(*spanner.GenericColumnValue) error
- func (this *DefaultMappingImpl_UServ_TimestampTimestamp) SpannerValue() (interface{}, error)
- func (this *DefaultMappingImpl_UServ_TimestampTimestamp) ToProto(**timestamp.Timestamp) error
- func (this *DefaultMappingImpl_UServ_TimestampTimestamp) ToSpanner(*timestamp.Timestamp) persist.SpannerScanValuer
- type DefaultTypeMappings_UServ
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type Empty2
- func (*Empty2) Descriptor() ([]byte, []int)
- func (*Empty2) ProtoMessage()
- func (m *Empty2) Reset()
- func (m *Empty2) String() string
- func (m *Empty2) XXX_DiscardUnknown()
- func (m *Empty2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Empty2) XXX_Merge(src proto.Message)
- func (m *Empty2) XXX_Size() int
- func (m *Empty2) XXX_Unmarshal(b []byte) error
- type Friends
- func (*Friends) Descriptor() ([]byte, []int)
- func (m *Friends) GetNames() []string
- func (*Friends) ProtoMessage()
- func (m *Friends) Reset()
- func (m *Friends) String() string
- func (m *Friends) XXX_DiscardUnknown()
- func (m *Friends) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Friends) XXX_Merge(src proto.Message)
- func (m *Friends) XXX_Size() int
- func (m *Friends) XXX_Unmarshal(b []byte) error
- type FriendsReq
- func (*FriendsReq) Descriptor() ([]byte, []int)
- func (m *FriendsReq) GetNames() *SliceStringParam
- func (*FriendsReq) ProtoMessage()
- func (m *FriendsReq) Reset()
- func (m *FriendsReq) String() string
- func (m *FriendsReq) XXX_DiscardUnknown()
- func (m *FriendsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FriendsReq) XXX_Merge(src proto.Message)
- func (m *FriendsReq) XXX_Size() int
- func (m *FriendsReq) XXX_Unmarshal(b []byte) error
- type Hooks_UServ
- type Impl_UServ
- func (this *Impl_UServ) CreateTable(ctx context.Context, req *Empty) (*Empty, error)
- func (this *Impl_UServ) DropTable(ctx context.Context, req *Empty) (*Empty, error)
- func (this *Impl_UServ) GetAllUsers(req *Empty, stream UServ_GetAllUsersServer) error
- func (this *Impl_UServ) GetAllUsersTx(req *Empty, stream UServ_GetAllUsersServer, tx persist.SpannerRunnable) error
- func (this *Impl_UServ) GetFriends(req *FriendsReq, stream UServ_GetFriendsServer) error
- func (this *Impl_UServ) GetFriendsTx(req *FriendsReq, stream UServ_GetFriendsServer, tx persist.SpannerRunnable) error
- func (this *Impl_UServ) InsertUsers(stream UServ_InsertUsersServer) error
- func (this *Impl_UServ) InsertUsersTx(stream UServ_InsertUsersServer) error
- func (this *Impl_UServ) SelectUserById(ctx context.Context, req *User) (*User, error)
- func (this *Impl_UServ) UpdateAllNames(req *Empty, stream UServ_UpdateAllNamesServer) error
- func (this *Impl_UServ) UpdateNameToFoo(ctx context.Context, req *User) (*Empty, error)
- func (this *Impl_UServ) UpdateUserNames(stream UServ_UpdateUserNamesServer) error
- type In_UServ_CreateUsersTable
- type In_UServ_Drop
- type In_UServ_GetAllUsers
- type In_UServ_GetFriends
- type In_UServ_InsertUsers
- type In_UServ_SelectUserById
- type In_UServ_UpdateNameToFoo
- type In_UServ_UpdateUserName
- type InsertUserReq
- func (*InsertUserReq) Descriptor() ([]byte, []int)
- func (m *InsertUserReq) GetCreatedOn() *timestamp.Timestamp
- func (m *InsertUserReq) GetFriends() *Friends
- func (m *InsertUserReq) GetId() int64
- func (m *InsertUserReq) GetName() string
- func (*InsertUserReq) ProtoMessage()
- func (m *InsertUserReq) Reset()
- func (m *InsertUserReq) String() string
- func (m *InsertUserReq) XXX_DiscardUnknown()
- func (m *InsertUserReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *InsertUserReq) XXX_Merge(src proto.Message)
- func (m *InsertUserReq) XXX_Size() int
- func (m *InsertUserReq) XXX_Unmarshal(b []byte) error
- type Iter_UServ_CreateUsersTable
- func (this *Iter_UServ_CreateUsersTable) Each(fun func(*Row_UServ_CreateUsersTable) error) error
- func (this *Iter_UServ_CreateUsersTable) IterInTypeEmpty()
- func (this *Iter_UServ_CreateUsersTable) IterOutTypeEmpty()
- func (this *Iter_UServ_CreateUsersTable) Next() (*Row_UServ_CreateUsersTable, bool)
- func (this *Iter_UServ_CreateUsersTable) One() *Row_UServ_CreateUsersTable
- func (this *Iter_UServ_CreateUsersTable) Slice() []*Row_UServ_CreateUsersTable
- func (this *Iter_UServ_CreateUsersTable) Zero() error
- type Iter_UServ_Drop
- func (this *Iter_UServ_Drop) Each(fun func(*Row_UServ_Drop) error) error
- func (this *Iter_UServ_Drop) IterInTypeEmpty()
- func (this *Iter_UServ_Drop) IterOutTypeEmpty()
- func (this *Iter_UServ_Drop) Next() (*Row_UServ_Drop, bool)
- func (this *Iter_UServ_Drop) One() *Row_UServ_Drop
- func (this *Iter_UServ_Drop) Slice() []*Row_UServ_Drop
- func (this *Iter_UServ_Drop) Zero() error
- type Iter_UServ_GetAllUsers
- func (this *Iter_UServ_GetAllUsers) Each(fun func(*Row_UServ_GetAllUsers) error) error
- func (this *Iter_UServ_GetAllUsers) IterInTypeEmpty()
- func (this *Iter_UServ_GetAllUsers) IterOutTypeUser()
- func (this *Iter_UServ_GetAllUsers) Next() (*Row_UServ_GetAllUsers, bool)
- func (this *Iter_UServ_GetAllUsers) One() *Row_UServ_GetAllUsers
- func (this *Iter_UServ_GetAllUsers) Slice() []*Row_UServ_GetAllUsers
- func (this *Iter_UServ_GetAllUsers) Zero() error
- type Iter_UServ_GetFriends
- func (this *Iter_UServ_GetFriends) Each(fun func(*Row_UServ_GetFriends) error) error
- func (this *Iter_UServ_GetFriends) IterInTypeFriendsReq()
- func (this *Iter_UServ_GetFriends) IterOutTypeUser()
- func (this *Iter_UServ_GetFriends) Next() (*Row_UServ_GetFriends, bool)
- func (this *Iter_UServ_GetFriends) One() *Row_UServ_GetFriends
- func (this *Iter_UServ_GetFriends) Slice() []*Row_UServ_GetFriends
- func (this *Iter_UServ_GetFriends) Zero() error
- type Iter_UServ_InsertUsers
- func (this *Iter_UServ_InsertUsers) Each(fun func(*Row_UServ_InsertUsers) error) error
- func (this *Iter_UServ_InsertUsers) IterInTypeUser()
- func (this *Iter_UServ_InsertUsers) IterOutTypeEmpty()
- func (this *Iter_UServ_InsertUsers) Next() (*Row_UServ_InsertUsers, bool)
- func (this *Iter_UServ_InsertUsers) One() *Row_UServ_InsertUsers
- func (this *Iter_UServ_InsertUsers) Slice() []*Row_UServ_InsertUsers
- func (this *Iter_UServ_InsertUsers) Zero() error
- type Iter_UServ_SelectUserById
- func (this *Iter_UServ_SelectUserById) Each(fun func(*Row_UServ_SelectUserById) error) error
- func (this *Iter_UServ_SelectUserById) IterInTypeUser()
- func (this *Iter_UServ_SelectUserById) IterOutTypeUser()
- func (this *Iter_UServ_SelectUserById) Next() (*Row_UServ_SelectUserById, bool)
- func (this *Iter_UServ_SelectUserById) One() *Row_UServ_SelectUserById
- func (this *Iter_UServ_SelectUserById) Slice() []*Row_UServ_SelectUserById
- func (this *Iter_UServ_SelectUserById) Zero() error
- type Iter_UServ_UpdateNameToFoo
- func (this *Iter_UServ_UpdateNameToFoo) Each(fun func(*Row_UServ_UpdateNameToFoo) error) error
- func (this *Iter_UServ_UpdateNameToFoo) IterInTypeUser()
- func (this *Iter_UServ_UpdateNameToFoo) IterOutTypeEmpty()
- func (this *Iter_UServ_UpdateNameToFoo) Next() (*Row_UServ_UpdateNameToFoo, bool)
- func (this *Iter_UServ_UpdateNameToFoo) One() *Row_UServ_UpdateNameToFoo
- func (this *Iter_UServ_UpdateNameToFoo) Slice() []*Row_UServ_UpdateNameToFoo
- func (this *Iter_UServ_UpdateNameToFoo) Zero() error
- type Iter_UServ_UpdateUserName
- func (this *Iter_UServ_UpdateUserName) Each(fun func(*Row_UServ_UpdateUserName) error) error
- func (this *Iter_UServ_UpdateUserName) IterInTypeUser()
- func (this *Iter_UServ_UpdateUserName) IterOutTypeUser()
- func (this *Iter_UServ_UpdateUserName) Next() (*Row_UServ_UpdateUserName, bool)
- func (this *Iter_UServ_UpdateUserName) One() *Row_UServ_UpdateUserName
- func (this *Iter_UServ_UpdateUserName) Slice() []*Row_UServ_UpdateUserName
- func (this *Iter_UServ_UpdateUserName) Zero() error
- type MappingImpl_UServ_SliceStringParam
- type MappingImpl_UServ_TimestampTimestamp
- type Opts_UServ
- type Out_UServ_CreateUsersTable
- type Out_UServ_Drop
- type Out_UServ_GetAllUsers
- type Out_UServ_GetFriends
- type Out_UServ_InsertUsers
- type Out_UServ_SelectUserById
- type Out_UServ_UpdateNameToFoo
- type Out_UServ_UpdateUserName
- type Queries_UServ
- func (this *Queries_UServ) CreateUsersTable(ctx context.Context, db persist.SpannerRunnable) *Query_UServ_CreateUsersTable
- func (this *Queries_UServ) Drop(ctx context.Context, db persist.SpannerRunnable) *Query_UServ_Drop
- func (this *Queries_UServ) GetAllUsers(ctx context.Context, db persist.SpannerRunnable) *Query_UServ_GetAllUsers
- func (this *Queries_UServ) GetFriends(ctx context.Context, db persist.SpannerRunnable) *Query_UServ_GetFriends
- func (this *Queries_UServ) InsertUsers(ctx context.Context, db persist.SpannerRunnable) *Query_UServ_InsertUsers
- func (this *Queries_UServ) SelectUserById(ctx context.Context, db persist.SpannerRunnable) *Query_UServ_SelectUserById
- func (this *Queries_UServ) UpdateNameToFoo(ctx context.Context, db persist.SpannerRunnable) *Query_UServ_UpdateNameToFoo
- func (this *Queries_UServ) UpdateUserName(ctx context.Context, db persist.SpannerRunnable) *Query_UServ_UpdateUserName
- type Query_UServ_CreateUsersTable
- type Query_UServ_Drop
- type Query_UServ_GetAllUsers
- type Query_UServ_GetFriends
- type Query_UServ_InsertUsers
- type Query_UServ_SelectUserById
- type Query_UServ_UpdateNameToFoo
- type Query_UServ_UpdateUserName
- type RestOfHandlers_UServ
- type Result
- type Row_UServ_CreateUsersTable
- type Row_UServ_Drop
- type Row_UServ_GetAllUsers
- type Row_UServ_GetFriends
- type Row_UServ_InsertUsers
- type Row_UServ_SelectUserById
- type Row_UServ_UpdateNameToFoo
- type Row_UServ_UpdateUserName
- type SliceStringConverter
- func (s *SliceStringConverter) SpannerScan(src *spanner.GenericColumnValue) error
- func (s *SliceStringConverter) SpannerValue() (interface{}, error)
- func (s *SliceStringConverter) ToProto(req **SliceStringParam) error
- func (s *SliceStringConverter) ToSpanner(v *SliceStringParam) persist.SpannerScanValuer
- type SliceStringParam
- func (*SliceStringParam) Descriptor() ([]byte, []int)
- func (m *SliceStringParam) GetSlice() []string
- func (*SliceStringParam) ProtoMessage()
- func (m *SliceStringParam) Reset()
- func (m *SliceStringParam) String() string
- func (m *SliceStringParam) XXX_DiscardUnknown()
- func (m *SliceStringParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SliceStringParam) XXX_Merge(src proto.Message)
- func (m *SliceStringParam) XXX_Size() int
- func (m *SliceStringParam) XXX_Unmarshal(b []byte) error
- type SpannerResult
- type TimeString
- type TypeMappings_UServ
- type UServClient
- type UServServer
- type UServ_GetAllUsersClient
- type UServ_GetAllUsersServer
- type UServ_GetFriendsClient
- type UServ_GetFriendsServer
- type UServ_InsertUsersClient
- type UServ_InsertUsersServer
- type UServ_UpdateAllNamesClient
- type UServ_UpdateAllNamesServer
- type UServ_UpdateUserNamesClient
- type UServ_UpdateUserNamesServer
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetCreatedOn() *timestamp.Timestamp
- func (m *User) GetFriends() *Friends
- func (m *User) GetId() int64
- func (m *User) GetName() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUServServer ¶
func RegisterUServServer(s *grpc.Server, srv UServServer)
Types ¶
type DefaultHooks_UServ ¶
type DefaultHooks_UServ struct{}
func (*DefaultHooks_UServ) GetAllUsersAfterHook ¶
func (*DefaultHooks_UServ) GetAllUsersBeforeHook ¶
func (*DefaultHooks_UServ) InsertUsersAfterHook ¶
func (*DefaultHooks_UServ) InsertUsersBeforeHook ¶
type DefaultMappingImpl_UServ_SliceStringParam ¶
type DefaultMappingImpl_UServ_SliceStringParam struct{}
func (*DefaultMappingImpl_UServ_SliceStringParam) SpannerScan ¶
func (this *DefaultMappingImpl_UServ_SliceStringParam) SpannerScan(*spanner.GenericColumnValue) error
func (*DefaultMappingImpl_UServ_SliceStringParam) SpannerValue ¶
func (this *DefaultMappingImpl_UServ_SliceStringParam) SpannerValue() (interface{}, error)
func (*DefaultMappingImpl_UServ_SliceStringParam) ToProto ¶
func (this *DefaultMappingImpl_UServ_SliceStringParam) ToProto(**SliceStringParam) error
func (*DefaultMappingImpl_UServ_SliceStringParam) ToSpanner ¶
func (this *DefaultMappingImpl_UServ_SliceStringParam) ToSpanner(*SliceStringParam) persist.SpannerScanValuer
type DefaultMappingImpl_UServ_TimestampTimestamp ¶
type DefaultMappingImpl_UServ_TimestampTimestamp struct{}
func (*DefaultMappingImpl_UServ_TimestampTimestamp) SpannerScan ¶
func (this *DefaultMappingImpl_UServ_TimestampTimestamp) SpannerScan(*spanner.GenericColumnValue) error
func (*DefaultMappingImpl_UServ_TimestampTimestamp) SpannerValue ¶
func (this *DefaultMappingImpl_UServ_TimestampTimestamp) SpannerValue() (interface{}, error)
func (*DefaultMappingImpl_UServ_TimestampTimestamp) ToProto ¶
func (this *DefaultMappingImpl_UServ_TimestampTimestamp) ToProto(**timestamp.Timestamp) error
func (*DefaultMappingImpl_UServ_TimestampTimestamp) ToSpanner ¶
func (this *DefaultMappingImpl_UServ_TimestampTimestamp) ToSpanner(*timestamp.Timestamp) persist.SpannerScanValuer
type DefaultTypeMappings_UServ ¶
type DefaultTypeMappings_UServ struct{}
func (*DefaultTypeMappings_UServ) SliceStringParam ¶
func (this *DefaultTypeMappings_UServ) SliceStringParam() MappingImpl_UServ_SliceStringParam
func (*DefaultTypeMappings_UServ) TimestampTimestamp ¶
func (this *DefaultTypeMappings_UServ) TimestampTimestamp() MappingImpl_UServ_TimestampTimestamp
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type Empty2 ¶
type Empty2 struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty2) Descriptor ¶
func (*Empty2) ProtoMessage ¶
func (*Empty2) ProtoMessage()
func (*Empty2) XXX_DiscardUnknown ¶
func (m *Empty2) XXX_DiscardUnknown()
func (*Empty2) XXX_Marshal ¶
func (*Empty2) XXX_Unmarshal ¶
type Friends ¶
type Friends struct { Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Friends) Descriptor ¶
func (*Friends) ProtoMessage ¶
func (*Friends) ProtoMessage()
func (*Friends) XXX_DiscardUnknown ¶
func (m *Friends) XXX_DiscardUnknown()
func (*Friends) XXX_Marshal ¶
func (*Friends) XXX_Unmarshal ¶
type FriendsReq ¶
type FriendsReq struct { Names *SliceStringParam `protobuf:"bytes,2,opt,name=names,proto3" json:"names,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FriendsReq) Descriptor ¶
func (*FriendsReq) Descriptor() ([]byte, []int)
func (*FriendsReq) GetNames ¶
func (m *FriendsReq) GetNames() *SliceStringParam
func (*FriendsReq) ProtoMessage ¶
func (*FriendsReq) ProtoMessage()
func (*FriendsReq) Reset ¶
func (m *FriendsReq) Reset()
func (*FriendsReq) String ¶
func (m *FriendsReq) String() string
func (*FriendsReq) XXX_DiscardUnknown ¶
func (m *FriendsReq) XXX_DiscardUnknown()
func (*FriendsReq) XXX_Marshal ¶
func (m *FriendsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FriendsReq) XXX_Merge ¶
func (dst *FriendsReq) XXX_Merge(src proto.Message)
func (*FriendsReq) XXX_Size ¶
func (m *FriendsReq) XXX_Size() int
func (*FriendsReq) XXX_Unmarshal ¶
func (m *FriendsReq) XXX_Unmarshal(b []byte) error
type Hooks_UServ ¶
type Impl_UServ ¶
type Impl_UServ struct { QUERIES *Queries_UServ HANDLERS RestOfHandlers_UServ DB *spanner.Client // contains filtered or unexported fields }
func ImplUServ ¶
func ImplUServ(db *spanner.Client, handlers RestOfHandlers_UServ, opts ...Opts_UServ) *Impl_UServ
func (*Impl_UServ) CreateTable ¶
func (*Impl_UServ) GetAllUsers ¶
func (this *Impl_UServ) GetAllUsers(req *Empty, stream UServ_GetAllUsersServer) error
func (*Impl_UServ) GetAllUsersTx ¶
func (this *Impl_UServ) GetAllUsersTx(req *Empty, stream UServ_GetAllUsersServer, tx persist.SpannerRunnable) error
func (*Impl_UServ) GetFriends ¶
func (this *Impl_UServ) GetFriends(req *FriendsReq, stream UServ_GetFriendsServer) error
func (*Impl_UServ) GetFriendsTx ¶
func (this *Impl_UServ) GetFriendsTx(req *FriendsReq, stream UServ_GetFriendsServer, tx persist.SpannerRunnable) error
func (*Impl_UServ) InsertUsers ¶
func (this *Impl_UServ) InsertUsers(stream UServ_InsertUsersServer) error
func (*Impl_UServ) InsertUsersTx ¶
func (this *Impl_UServ) InsertUsersTx(stream UServ_InsertUsersServer) error
func (*Impl_UServ) SelectUserById ¶
func (*Impl_UServ) UpdateAllNames ¶
func (this *Impl_UServ) UpdateAllNames(req *Empty, stream UServ_UpdateAllNamesServer) error
func (*Impl_UServ) UpdateNameToFoo ¶
func (*Impl_UServ) UpdateUserNames ¶
func (this *Impl_UServ) UpdateUserNames(stream UServ_UpdateUserNamesServer) error
type In_UServ_CreateUsersTable ¶
type In_UServ_CreateUsersTable interface { }
type In_UServ_Drop ¶
type In_UServ_Drop interface { }
type In_UServ_GetAllUsers ¶
type In_UServ_GetAllUsers interface { }
type In_UServ_GetFriends ¶
type In_UServ_GetFriends interface {
GetNames() *SliceStringParam
}
type In_UServ_InsertUsers ¶
type In_UServ_SelectUserById ¶
type In_UServ_UpdateUserName ¶
type InsertUserReq ¶
type InsertUserReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Friends *Friends `protobuf:"bytes,3,opt,name=friends,proto3" json:"friends,omitempty"` CreatedOn *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_on,json=createdOn,proto3" json:"created_on,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InsertUserReq) Descriptor ¶
func (*InsertUserReq) Descriptor() ([]byte, []int)
func (*InsertUserReq) GetCreatedOn ¶
func (m *InsertUserReq) GetCreatedOn() *timestamp.Timestamp
func (*InsertUserReq) GetFriends ¶
func (m *InsertUserReq) GetFriends() *Friends
func (*InsertUserReq) GetId ¶
func (m *InsertUserReq) GetId() int64
func (*InsertUserReq) GetName ¶
func (m *InsertUserReq) GetName() string
func (*InsertUserReq) ProtoMessage ¶
func (*InsertUserReq) ProtoMessage()
func (*InsertUserReq) Reset ¶
func (m *InsertUserReq) Reset()
func (*InsertUserReq) String ¶
func (m *InsertUserReq) String() string
func (*InsertUserReq) XXX_DiscardUnknown ¶
func (m *InsertUserReq) XXX_DiscardUnknown()
func (*InsertUserReq) XXX_Marshal ¶
func (m *InsertUserReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InsertUserReq) XXX_Merge ¶
func (dst *InsertUserReq) XXX_Merge(src proto.Message)
func (*InsertUserReq) XXX_Size ¶
func (m *InsertUserReq) XXX_Size() int
func (*InsertUserReq) XXX_Unmarshal ¶
func (m *InsertUserReq) XXX_Unmarshal(b []byte) error
type Iter_UServ_CreateUsersTable ¶
type Iter_UServ_CreateUsersTable struct {
// contains filtered or unexported fields
}
func (*Iter_UServ_CreateUsersTable) Each ¶
func (this *Iter_UServ_CreateUsersTable) Each(fun func(*Row_UServ_CreateUsersTable) error) error
Each performs 'fun' on each row in the result set. Each respects the context passed to it. It will stop iteration, and returns this.ctx.Err() if encountered.
func (*Iter_UServ_CreateUsersTable) IterInTypeEmpty ¶
func (this *Iter_UServ_CreateUsersTable) IterInTypeEmpty()
func (*Iter_UServ_CreateUsersTable) IterOutTypeEmpty ¶
func (this *Iter_UServ_CreateUsersTable) IterOutTypeEmpty()
func (*Iter_UServ_CreateUsersTable) Next ¶
func (this *Iter_UServ_CreateUsersTable) Next() (*Row_UServ_CreateUsersTable, bool)
Next returns the next scanned row out of the database, or (nil, false) if there are no more rows
func (*Iter_UServ_CreateUsersTable) One ¶
func (this *Iter_UServ_CreateUsersTable) One() *Row_UServ_CreateUsersTable
One returns the sole row, or ensures an error if there was not one result when this row is converted
func (*Iter_UServ_CreateUsersTable) Slice ¶
func (this *Iter_UServ_CreateUsersTable) Slice() []*Row_UServ_CreateUsersTable
Slice returns all rows found in the iterator as a Slice.
func (*Iter_UServ_CreateUsersTable) Zero ¶
func (this *Iter_UServ_CreateUsersTable) Zero() error
Zero returns an error if there were any rows in the result
type Iter_UServ_Drop ¶
type Iter_UServ_Drop struct {
// contains filtered or unexported fields
}
func (*Iter_UServ_Drop) Each ¶
func (this *Iter_UServ_Drop) Each(fun func(*Row_UServ_Drop) error) error
Each performs 'fun' on each row in the result set. Each respects the context passed to it. It will stop iteration, and returns this.ctx.Err() if encountered.
func (*Iter_UServ_Drop) IterInTypeEmpty ¶
func (this *Iter_UServ_Drop) IterInTypeEmpty()
func (*Iter_UServ_Drop) IterOutTypeEmpty ¶
func (this *Iter_UServ_Drop) IterOutTypeEmpty()
func (*Iter_UServ_Drop) Next ¶
func (this *Iter_UServ_Drop) Next() (*Row_UServ_Drop, bool)
Next returns the next scanned row out of the database, or (nil, false) if there are no more rows
func (*Iter_UServ_Drop) One ¶
func (this *Iter_UServ_Drop) One() *Row_UServ_Drop
One returns the sole row, or ensures an error if there was not one result when this row is converted
func (*Iter_UServ_Drop) Slice ¶
func (this *Iter_UServ_Drop) Slice() []*Row_UServ_Drop
Slice returns all rows found in the iterator as a Slice.
func (*Iter_UServ_Drop) Zero ¶
func (this *Iter_UServ_Drop) Zero() error
Zero returns an error if there were any rows in the result
type Iter_UServ_GetAllUsers ¶
type Iter_UServ_GetAllUsers struct {
// contains filtered or unexported fields
}
func (*Iter_UServ_GetAllUsers) Each ¶
func (this *Iter_UServ_GetAllUsers) Each(fun func(*Row_UServ_GetAllUsers) error) error
Each performs 'fun' on each row in the result set. Each respects the context passed to it. It will stop iteration, and returns this.ctx.Err() if encountered.
func (*Iter_UServ_GetAllUsers) IterInTypeEmpty ¶
func (this *Iter_UServ_GetAllUsers) IterInTypeEmpty()
func (*Iter_UServ_GetAllUsers) IterOutTypeUser ¶
func (this *Iter_UServ_GetAllUsers) IterOutTypeUser()
func (*Iter_UServ_GetAllUsers) Next ¶
func (this *Iter_UServ_GetAllUsers) Next() (*Row_UServ_GetAllUsers, bool)
Next returns the next scanned row out of the database, or (nil, false) if there are no more rows
func (*Iter_UServ_GetAllUsers) One ¶
func (this *Iter_UServ_GetAllUsers) One() *Row_UServ_GetAllUsers
One returns the sole row, or ensures an error if there was not one result when this row is converted
func (*Iter_UServ_GetAllUsers) Slice ¶
func (this *Iter_UServ_GetAllUsers) Slice() []*Row_UServ_GetAllUsers
Slice returns all rows found in the iterator as a Slice.
func (*Iter_UServ_GetAllUsers) Zero ¶
func (this *Iter_UServ_GetAllUsers) Zero() error
Zero returns an error if there were any rows in the result
type Iter_UServ_GetFriends ¶
type Iter_UServ_GetFriends struct {
// contains filtered or unexported fields
}
func (*Iter_UServ_GetFriends) Each ¶
func (this *Iter_UServ_GetFriends) Each(fun func(*Row_UServ_GetFriends) error) error
Each performs 'fun' on each row in the result set. Each respects the context passed to it. It will stop iteration, and returns this.ctx.Err() if encountered.
func (*Iter_UServ_GetFriends) IterInTypeFriendsReq ¶
func (this *Iter_UServ_GetFriends) IterInTypeFriendsReq()
func (*Iter_UServ_GetFriends) IterOutTypeUser ¶
func (this *Iter_UServ_GetFriends) IterOutTypeUser()
func (*Iter_UServ_GetFriends) Next ¶
func (this *Iter_UServ_GetFriends) Next() (*Row_UServ_GetFriends, bool)
Next returns the next scanned row out of the database, or (nil, false) if there are no more rows
func (*Iter_UServ_GetFriends) One ¶
func (this *Iter_UServ_GetFriends) One() *Row_UServ_GetFriends
One returns the sole row, or ensures an error if there was not one result when this row is converted
func (*Iter_UServ_GetFriends) Slice ¶
func (this *Iter_UServ_GetFriends) Slice() []*Row_UServ_GetFriends
Slice returns all rows found in the iterator as a Slice.
func (*Iter_UServ_GetFriends) Zero ¶
func (this *Iter_UServ_GetFriends) Zero() error
Zero returns an error if there were any rows in the result
type Iter_UServ_InsertUsers ¶
type Iter_UServ_InsertUsers struct {
// contains filtered or unexported fields
}
func (*Iter_UServ_InsertUsers) Each ¶
func (this *Iter_UServ_InsertUsers) Each(fun func(*Row_UServ_InsertUsers) error) error
Each performs 'fun' on each row in the result set. Each respects the context passed to it. It will stop iteration, and returns this.ctx.Err() if encountered.
func (*Iter_UServ_InsertUsers) IterInTypeUser ¶
func (this *Iter_UServ_InsertUsers) IterInTypeUser()
func (*Iter_UServ_InsertUsers) IterOutTypeEmpty ¶
func (this *Iter_UServ_InsertUsers) IterOutTypeEmpty()
func (*Iter_UServ_InsertUsers) Next ¶
func (this *Iter_UServ_InsertUsers) Next() (*Row_UServ_InsertUsers, bool)
Next returns the next scanned row out of the database, or (nil, false) if there are no more rows
func (*Iter_UServ_InsertUsers) One ¶
func (this *Iter_UServ_InsertUsers) One() *Row_UServ_InsertUsers
One returns the sole row, or ensures an error if there was not one result when this row is converted
func (*Iter_UServ_InsertUsers) Slice ¶
func (this *Iter_UServ_InsertUsers) Slice() []*Row_UServ_InsertUsers
Slice returns all rows found in the iterator as a Slice.
func (*Iter_UServ_InsertUsers) Zero ¶
func (this *Iter_UServ_InsertUsers) Zero() error
Zero returns an error if there were any rows in the result
type Iter_UServ_SelectUserById ¶
type Iter_UServ_SelectUserById struct {
// contains filtered or unexported fields
}
func (*Iter_UServ_SelectUserById) Each ¶
func (this *Iter_UServ_SelectUserById) Each(fun func(*Row_UServ_SelectUserById) error) error
Each performs 'fun' on each row in the result set. Each respects the context passed to it. It will stop iteration, and returns this.ctx.Err() if encountered.
func (*Iter_UServ_SelectUserById) IterInTypeUser ¶
func (this *Iter_UServ_SelectUserById) IterInTypeUser()
func (*Iter_UServ_SelectUserById) IterOutTypeUser ¶
func (this *Iter_UServ_SelectUserById) IterOutTypeUser()
func (*Iter_UServ_SelectUserById) Next ¶
func (this *Iter_UServ_SelectUserById) Next() (*Row_UServ_SelectUserById, bool)
Next returns the next scanned row out of the database, or (nil, false) if there are no more rows
func (*Iter_UServ_SelectUserById) One ¶
func (this *Iter_UServ_SelectUserById) One() *Row_UServ_SelectUserById
One returns the sole row, or ensures an error if there was not one result when this row is converted
func (*Iter_UServ_SelectUserById) Slice ¶
func (this *Iter_UServ_SelectUserById) Slice() []*Row_UServ_SelectUserById
Slice returns all rows found in the iterator as a Slice.
func (*Iter_UServ_SelectUserById) Zero ¶
func (this *Iter_UServ_SelectUserById) Zero() error
Zero returns an error if there were any rows in the result
type Iter_UServ_UpdateNameToFoo ¶
type Iter_UServ_UpdateNameToFoo struct {
// contains filtered or unexported fields
}
func (*Iter_UServ_UpdateNameToFoo) Each ¶
func (this *Iter_UServ_UpdateNameToFoo) Each(fun func(*Row_UServ_UpdateNameToFoo) error) error
Each performs 'fun' on each row in the result set. Each respects the context passed to it. It will stop iteration, and returns this.ctx.Err() if encountered.
func (*Iter_UServ_UpdateNameToFoo) IterInTypeUser ¶
func (this *Iter_UServ_UpdateNameToFoo) IterInTypeUser()
func (*Iter_UServ_UpdateNameToFoo) IterOutTypeEmpty ¶
func (this *Iter_UServ_UpdateNameToFoo) IterOutTypeEmpty()
func (*Iter_UServ_UpdateNameToFoo) Next ¶
func (this *Iter_UServ_UpdateNameToFoo) Next() (*Row_UServ_UpdateNameToFoo, bool)
Next returns the next scanned row out of the database, or (nil, false) if there are no more rows
func (*Iter_UServ_UpdateNameToFoo) One ¶
func (this *Iter_UServ_UpdateNameToFoo) One() *Row_UServ_UpdateNameToFoo
One returns the sole row, or ensures an error if there was not one result when this row is converted
func (*Iter_UServ_UpdateNameToFoo) Slice ¶
func (this *Iter_UServ_UpdateNameToFoo) Slice() []*Row_UServ_UpdateNameToFoo
Slice returns all rows found in the iterator as a Slice.
func (*Iter_UServ_UpdateNameToFoo) Zero ¶
func (this *Iter_UServ_UpdateNameToFoo) Zero() error
Zero returns an error if there were any rows in the result
type Iter_UServ_UpdateUserName ¶
type Iter_UServ_UpdateUserName struct {
// contains filtered or unexported fields
}
func (*Iter_UServ_UpdateUserName) Each ¶
func (this *Iter_UServ_UpdateUserName) Each(fun func(*Row_UServ_UpdateUserName) error) error
Each performs 'fun' on each row in the result set. Each respects the context passed to it. It will stop iteration, and returns this.ctx.Err() if encountered.
func (*Iter_UServ_UpdateUserName) IterInTypeUser ¶
func (this *Iter_UServ_UpdateUserName) IterInTypeUser()
func (*Iter_UServ_UpdateUserName) IterOutTypeUser ¶
func (this *Iter_UServ_UpdateUserName) IterOutTypeUser()
func (*Iter_UServ_UpdateUserName) Next ¶
func (this *Iter_UServ_UpdateUserName) Next() (*Row_UServ_UpdateUserName, bool)
Next returns the next scanned row out of the database, or (nil, false) if there are no more rows
func (*Iter_UServ_UpdateUserName) One ¶
func (this *Iter_UServ_UpdateUserName) One() *Row_UServ_UpdateUserName
One returns the sole row, or ensures an error if there was not one result when this row is converted
func (*Iter_UServ_UpdateUserName) Slice ¶
func (this *Iter_UServ_UpdateUserName) Slice() []*Row_UServ_UpdateUserName
Slice returns all rows found in the iterator as a Slice.
func (*Iter_UServ_UpdateUserName) Zero ¶
func (this *Iter_UServ_UpdateUserName) Zero() error
Zero returns an error if there were any rows in the result
type MappingImpl_UServ_SliceStringParam ¶
type MappingImpl_UServ_SliceStringParam interface { ToProto(**SliceStringParam) error ToSpanner(*SliceStringParam) persist.SpannerScanValuer SpannerScan(*spanner.GenericColumnValue) error SpannerValue() (interface{}, error) }
type Opts_UServ ¶
type Opts_UServ struct { MAPPINGS TypeMappings_UServ HOOKS Hooks_UServ }
func OptsUServ ¶
func OptsUServ(hooks Hooks_UServ, mappings TypeMappings_UServ) Opts_UServ
type Out_UServ_CreateUsersTable ¶
type Out_UServ_CreateUsersTable interface { }
type Out_UServ_Drop ¶
type Out_UServ_Drop interface { }
type Out_UServ_GetAllUsers ¶
type Out_UServ_GetFriends ¶
type Out_UServ_InsertUsers ¶
type Out_UServ_InsertUsers interface { }
type Out_UServ_UpdateNameToFoo ¶
type Out_UServ_UpdateNameToFoo interface { }
type Queries_UServ ¶
type Queries_UServ struct {
// contains filtered or unexported fields
}
Queries_UServ holds all the queries found the proto service option as methods
func QueriesUServ ¶
func QueriesUServ(opts ...Opts_UServ) *Queries_UServ
QueriesUServ returns all the known 'SQL' queires for the 'UServ' service. If no opts are provided default implementations are used.
func (*Queries_UServ) CreateUsersTable ¶
func (this *Queries_UServ) CreateUsersTable(ctx context.Context, db persist.SpannerRunnable) *Query_UServ_CreateUsersTable
CreateUsersTable returns a struct that will perform the 'create_users_table' query. When Execute is called, it will use the following fields: []
func (*Queries_UServ) Drop ¶
func (this *Queries_UServ) Drop(ctx context.Context, db persist.SpannerRunnable) *Query_UServ_Drop
Drop returns a struct that will perform the 'drop' query. When Execute is called, it will use the following fields: []
func (*Queries_UServ) GetAllUsers ¶
func (this *Queries_UServ) GetAllUsers(ctx context.Context, db persist.SpannerRunnable) *Query_UServ_GetAllUsers
GetAllUsers returns a struct that will perform the 'get_all_users' query. When Execute is called, it will use the following fields: []
func (*Queries_UServ) GetFriends ¶
func (this *Queries_UServ) GetFriends(ctx context.Context, db persist.SpannerRunnable) *Query_UServ_GetFriends
GetFriends returns a struct that will perform the 'get_friends' query. When Execute is called, it will use the following fields: [names]
func (*Queries_UServ) InsertUsers ¶
func (this *Queries_UServ) InsertUsers(ctx context.Context, db persist.SpannerRunnable) *Query_UServ_InsertUsers
InsertUsers returns a struct that will perform the 'insert_users' query. When Execute is called, it will use the following fields: [id name friends created_on]
func (*Queries_UServ) SelectUserById ¶
func (this *Queries_UServ) SelectUserById(ctx context.Context, db persist.SpannerRunnable) *Query_UServ_SelectUserById
SelectUserById returns a struct that will perform the 'select_user_by_id' query. When Execute is called, it will use the following fields: [id]
func (*Queries_UServ) UpdateNameToFoo ¶
func (this *Queries_UServ) UpdateNameToFoo(ctx context.Context, db persist.SpannerRunnable) *Query_UServ_UpdateNameToFoo
UpdateNameToFoo returns a struct that will perform the 'update_name_to_foo' query. When Execute is called, it will use the following fields: [id]
func (*Queries_UServ) UpdateUserName ¶
func (this *Queries_UServ) UpdateUserName(ctx context.Context, db persist.SpannerRunnable) *Query_UServ_UpdateUserName
UpdateUserName returns a struct that will perform the 'update_user_name' query. When Execute is called, it will use the following fields: [name id]
type Query_UServ_CreateUsersTable ¶
type Query_UServ_CreateUsersTable struct {
// contains filtered or unexported fields
}
Query_UServ_CreateUsersTable (future doc string needed)
func (*Query_UServ_CreateUsersTable) Execute ¶
func (this *Query_UServ_CreateUsersTable) Execute(x In_UServ_CreateUsersTable) *Iter_UServ_CreateUsersTable
Executes the query 'create_users_table' with parameters retrieved from x. Fields used: []
func (*Query_UServ_CreateUsersTable) QueryInType_Empty ¶
func (this *Query_UServ_CreateUsersTable) QueryInType_Empty()
func (*Query_UServ_CreateUsersTable) QueryOutType_Empty ¶
func (this *Query_UServ_CreateUsersTable) QueryOutType_Empty()
type Query_UServ_Drop ¶
type Query_UServ_Drop struct {
// contains filtered or unexported fields
}
Query_UServ_Drop (future doc string needed)
func (*Query_UServ_Drop) Execute ¶
func (this *Query_UServ_Drop) Execute(x In_UServ_Drop) *Iter_UServ_Drop
Executes the query 'drop' with parameters retrieved from x. Fields used: []
func (*Query_UServ_Drop) QueryInType_Empty ¶
func (this *Query_UServ_Drop) QueryInType_Empty()
func (*Query_UServ_Drop) QueryOutType_Empty ¶
func (this *Query_UServ_Drop) QueryOutType_Empty()
type Query_UServ_GetAllUsers ¶
type Query_UServ_GetAllUsers struct {
// contains filtered or unexported fields
}
Query_UServ_GetAllUsers (future doc string needed)
func (*Query_UServ_GetAllUsers) Execute ¶
func (this *Query_UServ_GetAllUsers) Execute(x In_UServ_GetAllUsers) *Iter_UServ_GetAllUsers
Executes the query 'get_all_users' with parameters retrieved from x. Fields used: []
func (*Query_UServ_GetAllUsers) QueryInType_Empty ¶
func (this *Query_UServ_GetAllUsers) QueryInType_Empty()
func (*Query_UServ_GetAllUsers) QueryOutType_User ¶
func (this *Query_UServ_GetAllUsers) QueryOutType_User()
type Query_UServ_GetFriends ¶
type Query_UServ_GetFriends struct {
// contains filtered or unexported fields
}
Query_UServ_GetFriends (future doc string needed)
func (*Query_UServ_GetFriends) Execute ¶
func (this *Query_UServ_GetFriends) Execute(x In_UServ_GetFriends) *Iter_UServ_GetFriends
Executes the query 'get_friends' with parameters retrieved from x. Fields used: [names]
func (*Query_UServ_GetFriends) QueryInType_FriendsReq ¶
func (this *Query_UServ_GetFriends) QueryInType_FriendsReq()
func (*Query_UServ_GetFriends) QueryOutType_User ¶
func (this *Query_UServ_GetFriends) QueryOutType_User()
type Query_UServ_InsertUsers ¶
type Query_UServ_InsertUsers struct {
// contains filtered or unexported fields
}
Query_UServ_InsertUsers (future doc string needed)
func (*Query_UServ_InsertUsers) Execute ¶
func (this *Query_UServ_InsertUsers) Execute(x In_UServ_InsertUsers) *Iter_UServ_InsertUsers
Executes the query 'insert_users' with parameters retrieved from x. Fields used: [id name friends created_on]
func (*Query_UServ_InsertUsers) QueryInType_User ¶
func (this *Query_UServ_InsertUsers) QueryInType_User()
func (*Query_UServ_InsertUsers) QueryOutType_Empty ¶
func (this *Query_UServ_InsertUsers) QueryOutType_Empty()
type Query_UServ_SelectUserById ¶
type Query_UServ_SelectUserById struct {
// contains filtered or unexported fields
}
Query_UServ_SelectUserById (future doc string needed)
func (*Query_UServ_SelectUserById) Execute ¶
func (this *Query_UServ_SelectUserById) Execute(x In_UServ_SelectUserById) *Iter_UServ_SelectUserById
Executes the query 'select_user_by_id' with parameters retrieved from x. Fields used: [id]
func (*Query_UServ_SelectUserById) QueryInType_User ¶
func (this *Query_UServ_SelectUserById) QueryInType_User()
func (*Query_UServ_SelectUserById) QueryOutType_User ¶
func (this *Query_UServ_SelectUserById) QueryOutType_User()
type Query_UServ_UpdateNameToFoo ¶
type Query_UServ_UpdateNameToFoo struct {
// contains filtered or unexported fields
}
Query_UServ_UpdateNameToFoo (future doc string needed)
func (*Query_UServ_UpdateNameToFoo) Execute ¶
func (this *Query_UServ_UpdateNameToFoo) Execute(x In_UServ_UpdateNameToFoo) *Iter_UServ_UpdateNameToFoo
Executes the query 'update_name_to_foo' with parameters retrieved from x. Fields used: [id]
func (*Query_UServ_UpdateNameToFoo) QueryInType_User ¶
func (this *Query_UServ_UpdateNameToFoo) QueryInType_User()
func (*Query_UServ_UpdateNameToFoo) QueryOutType_Empty ¶
func (this *Query_UServ_UpdateNameToFoo) QueryOutType_Empty()
type Query_UServ_UpdateUserName ¶
type Query_UServ_UpdateUserName struct {
// contains filtered or unexported fields
}
Query_UServ_UpdateUserName (future doc string needed)
func (*Query_UServ_UpdateUserName) Execute ¶
func (this *Query_UServ_UpdateUserName) Execute(x In_UServ_UpdateUserName) *Iter_UServ_UpdateUserName
Executes the query 'update_user_name' with parameters retrieved from x. Fields used: [name id]
func (*Query_UServ_UpdateUserName) QueryInType_User ¶
func (this *Query_UServ_UpdateUserName) QueryInType_User()
func (*Query_UServ_UpdateUserName) QueryOutType_User ¶
func (this *Query_UServ_UpdateUserName) QueryOutType_User()
type RestOfHandlers_UServ ¶
type RestOfHandlers_UServ interface { UpdateUserNames(UServ_UpdateUserNamesServer) error UpdateAllNames(*Empty, UServ_UpdateAllNamesServer) error }
type Row_UServ_CreateUsersTable ¶
type Row_UServ_CreateUsersTable struct {
// contains filtered or unexported fields
}
func (*Row_UServ_CreateUsersTable) Empty ¶
func (this *Row_UServ_CreateUsersTable) Empty() (*Empty, error)
func (*Row_UServ_CreateUsersTable) Proto ¶
func (this *Row_UServ_CreateUsersTable) Proto() (*Empty, error)
type Row_UServ_Drop ¶
type Row_UServ_Drop struct {
// contains filtered or unexported fields
}
func (*Row_UServ_Drop) Empty ¶
func (this *Row_UServ_Drop) Empty() (*Empty, error)
func (*Row_UServ_Drop) Proto ¶
func (this *Row_UServ_Drop) Proto() (*Empty, error)
type Row_UServ_GetAllUsers ¶
type Row_UServ_GetAllUsers struct {
// contains filtered or unexported fields
}
func (*Row_UServ_GetAllUsers) Proto ¶
func (this *Row_UServ_GetAllUsers) Proto() (*User, error)
func (*Row_UServ_GetAllUsers) Unwrap ¶
func (this *Row_UServ_GetAllUsers) Unwrap(pointerToMsg proto.Message) error
Unwrap takes an address to a proto.Message as its only parameter Unwrap can only set into output protos of that match method return types + the out option on the query itself
func (*Row_UServ_GetAllUsers) User ¶
func (this *Row_UServ_GetAllUsers) User() (*User, error)
type Row_UServ_GetFriends ¶
type Row_UServ_GetFriends struct {
// contains filtered or unexported fields
}
func (*Row_UServ_GetFriends) Proto ¶
func (this *Row_UServ_GetFriends) Proto() (*User, error)
func (*Row_UServ_GetFriends) Unwrap ¶
func (this *Row_UServ_GetFriends) Unwrap(pointerToMsg proto.Message) error
Unwrap takes an address to a proto.Message as its only parameter Unwrap can only set into output protos of that match method return types + the out option on the query itself
func (*Row_UServ_GetFriends) User ¶
func (this *Row_UServ_GetFriends) User() (*User, error)
type Row_UServ_InsertUsers ¶
type Row_UServ_InsertUsers struct {
// contains filtered or unexported fields
}
func (*Row_UServ_InsertUsers) Empty ¶
func (this *Row_UServ_InsertUsers) Empty() (*Empty, error)
func (*Row_UServ_InsertUsers) Empty2 ¶
func (this *Row_UServ_InsertUsers) Empty2() (*Empty2, error)
func (*Row_UServ_InsertUsers) Proto ¶
func (this *Row_UServ_InsertUsers) Proto() (*Empty, error)
type Row_UServ_SelectUserById ¶
type Row_UServ_SelectUserById struct {
// contains filtered or unexported fields
}
func (*Row_UServ_SelectUserById) Proto ¶
func (this *Row_UServ_SelectUserById) Proto() (*User, error)
func (*Row_UServ_SelectUserById) Unwrap ¶
func (this *Row_UServ_SelectUserById) Unwrap(pointerToMsg proto.Message) error
Unwrap takes an address to a proto.Message as its only parameter Unwrap can only set into output protos of that match method return types + the out option on the query itself
func (*Row_UServ_SelectUserById) User ¶
func (this *Row_UServ_SelectUserById) User() (*User, error)
type Row_UServ_UpdateNameToFoo ¶
type Row_UServ_UpdateNameToFoo struct {
// contains filtered or unexported fields
}
func (*Row_UServ_UpdateNameToFoo) Empty ¶
func (this *Row_UServ_UpdateNameToFoo) Empty() (*Empty, error)
func (*Row_UServ_UpdateNameToFoo) Proto ¶
func (this *Row_UServ_UpdateNameToFoo) Proto() (*Empty, error)
type Row_UServ_UpdateUserName ¶
type Row_UServ_UpdateUserName struct {
// contains filtered or unexported fields
}
func (*Row_UServ_UpdateUserName) Proto ¶
func (this *Row_UServ_UpdateUserName) Proto() (*User, error)
func (*Row_UServ_UpdateUserName) Unwrap ¶
func (this *Row_UServ_UpdateUserName) Unwrap(pointerToMsg proto.Message) error
Unwrap takes an address to a proto.Message as its only parameter Unwrap can only set into output protos of that match method return types + the out option on the query itself
func (*Row_UServ_UpdateUserName) User ¶
func (this *Row_UServ_UpdateUserName) User() (*User, error)
type SliceStringConverter ¶
type SliceStringConverter struct {
// contains filtered or unexported fields
}
func (*SliceStringConverter) SpannerScan ¶
func (s *SliceStringConverter) SpannerScan(src *spanner.GenericColumnValue) error
func (*SliceStringConverter) SpannerValue ¶
func (s *SliceStringConverter) SpannerValue() (interface{}, error)
func (*SliceStringConverter) ToProto ¶
func (s *SliceStringConverter) ToProto(req **SliceStringParam) error
func (*SliceStringConverter) ToSpanner ¶
func (s *SliceStringConverter) ToSpanner(v *SliceStringParam) persist.SpannerScanValuer
type SliceStringParam ¶
type SliceStringParam struct { Slice []string `protobuf:"bytes,1,rep,name=slice,proto3" json:"slice,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SliceStringParam) Descriptor ¶
func (*SliceStringParam) Descriptor() ([]byte, []int)
func (*SliceStringParam) GetSlice ¶
func (m *SliceStringParam) GetSlice() []string
func (*SliceStringParam) ProtoMessage ¶
func (*SliceStringParam) ProtoMessage()
func (*SliceStringParam) Reset ¶
func (m *SliceStringParam) Reset()
func (*SliceStringParam) String ¶
func (m *SliceStringParam) String() string
func (*SliceStringParam) XXX_DiscardUnknown ¶
func (m *SliceStringParam) XXX_DiscardUnknown()
func (*SliceStringParam) XXX_Marshal ¶
func (m *SliceStringParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SliceStringParam) XXX_Merge ¶
func (dst *SliceStringParam) XXX_Merge(src proto.Message)
func (*SliceStringParam) XXX_Size ¶
func (m *SliceStringParam) XXX_Size() int
func (*SliceStringParam) XXX_Unmarshal ¶
func (m *SliceStringParam) XXX_Unmarshal(b []byte) error
type SpannerResult ¶
type SpannerResult struct {
// contains filtered or unexported fields
}
func (*SpannerResult) LastInsertId ¶
func (sr *SpannerResult) LastInsertId() (int64, error)
func (*SpannerResult) RowsAffected ¶
func (sr *SpannerResult) RowsAffected() (int64, error)
type TimeString ¶
type TimeString struct {
// contains filtered or unexported fields
}
func (*TimeString) SpannerScan ¶
func (t *TimeString) SpannerScan(src *spanner.GenericColumnValue) error
func (*TimeString) SpannerValue ¶
func (t *TimeString) SpannerValue() (interface{}, error)
func (TimeString) ToSpanner ¶
func (ts TimeString) ToSpanner(t *timestamp.Timestamp) persist.SpannerScanValuer
type TypeMappings_UServ ¶
type TypeMappings_UServ interface { TimestampTimestamp() MappingImpl_UServ_TimestampTimestamp SliceStringParam() MappingImpl_UServ_SliceStringParam }
type UServClient ¶
type UServClient interface { CreateTable(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) InsertUsers(ctx context.Context, opts ...grpc.CallOption) (UServ_InsertUsersClient, error) GetAllUsers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (UServ_GetAllUsersClient, error) SelectUserById(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) UpdateUserNames(ctx context.Context, opts ...grpc.CallOption) (UServ_UpdateUserNamesClient, error) UpdateNameToFoo(ctx context.Context, in *User, opts ...grpc.CallOption) (*Empty, error) UpdateAllNames(ctx context.Context, in *Empty, opts ...grpc.CallOption) (UServ_UpdateAllNamesClient, error) GetFriends(ctx context.Context, in *FriendsReq, opts ...grpc.CallOption) (UServ_GetFriendsClient, error) DropTable(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) }
UServClient is the client API for UServ service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUServClient ¶
func NewUServClient(cc *grpc.ClientConn) UServClient
type UServServer ¶
type UServServer interface { CreateTable(context.Context, *Empty) (*Empty, error) InsertUsers(UServ_InsertUsersServer) error GetAllUsers(*Empty, UServ_GetAllUsersServer) error SelectUserById(context.Context, *User) (*User, error) UpdateUserNames(UServ_UpdateUserNamesServer) error UpdateNameToFoo(context.Context, *User) (*Empty, error) UpdateAllNames(*Empty, UServ_UpdateAllNamesServer) error GetFriends(*FriendsReq, UServ_GetFriendsServer) error DropTable(context.Context, *Empty) (*Empty, error) }
UServServer is the server API for UServ service.
type UServ_GetAllUsersClient ¶
type UServ_GetAllUsersClient interface { Recv() (*User, error) grpc.ClientStream }
type UServ_GetAllUsersServer ¶
type UServ_GetAllUsersServer interface { Send(*User) error grpc.ServerStream }
type UServ_GetFriendsClient ¶
type UServ_GetFriendsClient interface { Recv() (*User, error) grpc.ClientStream }
type UServ_GetFriendsServer ¶
type UServ_GetFriendsServer interface { Send(*User) error grpc.ServerStream }
type UServ_InsertUsersClient ¶
type UServ_InsertUsersServer ¶
type UServ_UpdateAllNamesClient ¶
type UServ_UpdateAllNamesClient interface { Recv() (*User, error) grpc.ClientStream }
type UServ_UpdateAllNamesServer ¶
type UServ_UpdateAllNamesServer interface { Send(*User) error grpc.ServerStream }
type User ¶
type User struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Friends *Friends `protobuf:"bytes,3,opt,name=friends,proto3" json:"friends,omitempty"` CreatedOn *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_on,json=createdOn,proto3" json:"created_on,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*User) Descriptor ¶
func (*User) GetCreatedOn ¶
func (*User) GetFriends ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()