pb

package
v4.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

This file is generated by protoc-gen-persist Source File: pb/user.proto DO NOT EDIT !

Index

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) GetAllUsersAfterHook(context.Context, *Empty, *User) error

func (*DefaultHooks_UServ) GetAllUsersBeforeHook

func (*DefaultHooks_UServ) GetAllUsersBeforeHook(context.Context, *Empty) (*User, error)

func (*DefaultHooks_UServ) InsertUsersAfterHook

func (*DefaultHooks_UServ) InsertUsersAfterHook(context.Context, *User, *Empty2) error

func (*DefaultHooks_UServ) InsertUsersBeforeHook

func (*DefaultHooks_UServ) InsertUsersBeforeHook(context.Context, *User) (*Empty2, error)

type DefaultMappingImpl_UServ_SliceStringParam

type DefaultMappingImpl_UServ_SliceStringParam struct{}

func (*DefaultMappingImpl_UServ_SliceStringParam) SpannerScan

func (*DefaultMappingImpl_UServ_SliceStringParam) SpannerValue

func (this *DefaultMappingImpl_UServ_SliceStringParam) SpannerValue() (interface{}, error)

func (*DefaultMappingImpl_UServ_SliceStringParam) ToProto

func (*DefaultMappingImpl_UServ_SliceStringParam) ToSpanner

type DefaultMappingImpl_UServ_TimestampTimestamp

type DefaultMappingImpl_UServ_TimestampTimestamp struct{}

func (*DefaultMappingImpl_UServ_TimestampTimestamp) SpannerScan

func (*DefaultMappingImpl_UServ_TimestampTimestamp) SpannerValue

func (this *DefaultMappingImpl_UServ_TimestampTimestamp) SpannerValue() (interface{}, error)

func (*DefaultMappingImpl_UServ_TimestampTimestamp) ToProto

func (*DefaultMappingImpl_UServ_TimestampTimestamp) ToSpanner

type DefaultTypeMappings_UServ

type DefaultTypeMappings_UServ struct{}

func (*DefaultTypeMappings_UServ) SliceStringParam

func (*DefaultTypeMappings_UServ) TimestampTimestamp

type Empty

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

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

func (*Empty) XXX_Merge

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

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

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

type Empty2

type Empty2 struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty2) Descriptor

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

func (*Empty2) ProtoMessage

func (*Empty2) ProtoMessage()

func (*Empty2) Reset

func (m *Empty2) Reset()

func (*Empty2) String

func (m *Empty2) String() string

func (*Empty2) XXX_DiscardUnknown

func (m *Empty2) XXX_DiscardUnknown()

func (*Empty2) XXX_Marshal

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

func (*Empty2) XXX_Merge

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

func (*Empty2) XXX_Size

func (m *Empty2) XXX_Size() int

func (*Empty2) XXX_Unmarshal

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

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

func (*Friends) GetNames

func (m *Friends) GetNames() []string

func (*Friends) ProtoMessage

func (*Friends) ProtoMessage()

func (*Friends) Reset

func (m *Friends) Reset()

func (*Friends) String

func (m *Friends) String() string

func (*Friends) XXX_DiscardUnknown

func (m *Friends) XXX_DiscardUnknown()

func (*Friends) XXX_Marshal

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

func (*Friends) XXX_Merge

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

func (*Friends) XXX_Size

func (m *Friends) XXX_Size() int

func (*Friends) XXX_Unmarshal

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

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 Hooks_UServ interface {
	InsertUsersBeforeHook(context.Context, *User) (*Empty2, error)
	GetAllUsersBeforeHook(context.Context, *Empty) (*User, error)
	InsertUsersAfterHook(context.Context, *User, *Empty2) error
	GetAllUsersAfterHook(context.Context, *Empty, *User) error
}

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 (this *Impl_UServ) CreateTable(ctx context.Context, req *Empty) (*Empty, error)

func (*Impl_UServ) DropTable

func (this *Impl_UServ) DropTable(ctx context.Context, req *Empty) (*Empty, error)

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 (this *Impl_UServ) SelectUserById(ctx context.Context, req *User) (*User, error)

func (*Impl_UServ) UpdateAllNames

func (this *Impl_UServ) UpdateAllNames(req *Empty, stream UServ_UpdateAllNamesServer) error

func (*Impl_UServ) UpdateNameToFoo

func (this *Impl_UServ) UpdateNameToFoo(ctx context.Context, req *User) (*Empty, error)

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_InsertUsers interface {
	GetId() int64
	GetName() string
	GetFriends() *Friends
	GetCreatedOn() *timestamp.Timestamp
}

type In_UServ_SelectUserById

type In_UServ_SelectUserById interface {
	GetId() int64
	GetName() string
	GetFriends() *Friends
	GetCreatedOn() *timestamp.Timestamp
}

type In_UServ_UpdateNameToFoo

type In_UServ_UpdateNameToFoo interface {
	GetId() int64
	GetName() string
	GetFriends() *Friends
	GetCreatedOn() *timestamp.Timestamp
}

type In_UServ_UpdateUserName

type In_UServ_UpdateUserName interface {
	GetId() int64
	GetName() string
	GetFriends() *Friends
	GetCreatedOn() *timestamp.Timestamp
}

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

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

Next returns the next scanned row out of the database, or (nil, false) if there are no more rows

func (*Iter_UServ_CreateUsersTable) One

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

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

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

Next returns the next scanned row out of the database, or (nil, false) if there are no more rows

func (*Iter_UServ_GetAllUsers) One

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

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

Next returns the next scanned row out of the database, or (nil, false) if there are no more rows

func (*Iter_UServ_GetFriends) One

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

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

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

Next returns the next scanned row out of the database, or (nil, false) if there are no more rows

func (*Iter_UServ_InsertUsers) One

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

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

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

Next returns the next scanned row out of the database, or (nil, false) if there are no more rows

func (*Iter_UServ_SelectUserById) One

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

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

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

Next returns the next scanned row out of the database, or (nil, false) if there are no more rows

func (*Iter_UServ_UpdateNameToFoo) One

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

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

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

Next returns the next scanned row out of the database, or (nil, false) if there are no more rows

func (*Iter_UServ_UpdateUserName) One

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

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 MappingImpl_UServ_TimestampTimestamp

type MappingImpl_UServ_TimestampTimestamp interface {
	ToProto(**timestamp.Timestamp) error
	ToSpanner(*timestamp.Timestamp) 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_GetAllUsers interface {
	GetId() int64
	GetName() string
	GetFriends() *Friends
	GetCreatedOn() *timestamp.Timestamp
}

type Out_UServ_GetFriends

type Out_UServ_GetFriends interface {
	GetId() int64
	GetName() string
	GetFriends() *Friends
	GetCreatedOn() *timestamp.Timestamp
}

type Out_UServ_InsertUsers

type Out_UServ_InsertUsers interface {
}

type Out_UServ_SelectUserById

type Out_UServ_SelectUserById interface {
	GetId() int64
	GetName() string
	GetFriends() *Friends
	GetCreatedOn() *timestamp.Timestamp
}

type Out_UServ_UpdateNameToFoo

type Out_UServ_UpdateNameToFoo interface {
}

type Out_UServ_UpdateUserName

type Out_UServ_UpdateUserName interface {
	GetId() int64
	GetName() string
	GetFriends() *Friends
	GetCreatedOn() *timestamp.Timestamp
}

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

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

Drop returns a struct that will perform the 'drop' query. When Execute is called, it will use the following fields: []

func (*Queries_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

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

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

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

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

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

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

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

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

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

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

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

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

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 Result

type Result interface {
	LastInsertId() (int64, error)
	RowsAffected() (int64, 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)

func (*Row_UServ_CreateUsersTable) Unwrap

func (this *Row_UServ_CreateUsersTable) 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

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)

func (*Row_UServ_Drop) Unwrap

func (this *Row_UServ_Drop) 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

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)

func (*Row_UServ_InsertUsers) Unwrap

func (this *Row_UServ_InsertUsers) 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

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)

func (*Row_UServ_UpdateNameToFoo) Unwrap

func (this *Row_UServ_UpdateNameToFoo) 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

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 (*SliceStringConverter) SpannerValue

func (s *SliceStringConverter) SpannerValue() (interface{}, error)

func (*SliceStringConverter) ToProto

func (s *SliceStringConverter) ToProto(req **SliceStringParam) error

func (*SliceStringConverter) ToSpanner

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

func (ts TimeString) ToProto(req **timestamp.Timestamp) error

func (TimeString) ToSpanner

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_InsertUsersClient interface {
	Send(*User) error
	CloseAndRecv() (*Empty2, error)
	grpc.ClientStream
}

type UServ_InsertUsersServer

type UServ_InsertUsersServer interface {
	SendAndClose(*Empty2) error
	Recv() (*User, error)
	grpc.ServerStream
}

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 UServ_UpdateUserNamesClient

type UServ_UpdateUserNamesClient interface {
	Send(*User) error
	Recv() (*User, error)
	grpc.ClientStream
}

type UServ_UpdateUserNamesServer

type UServ_UpdateUserNamesServer interface {
	Send(*User) error
	Recv() (*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 IncId

func IncId(u *User) ([]*User, error)

func (*User) Descriptor

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

func (*User) GetCreatedOn

func (m *User) GetCreatedOn() *timestamp.Timestamp

func (*User) GetFriends

func (m *User) GetFriends() *Friends

func (*User) GetId

func (m *User) GetId() int64

func (*User) GetName

func (m *User) GetName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

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

func (*User) XXX_Merge

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

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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