Documentation ¶
Overview ¶
Package client consists of tools which are helpful for making any client
Index ¶
- func AddColumns(conn *grpc.ClientConn, keys []string) (ret *pb.ActivityResponse, err error)
- func DeleteColumns(conn *grpc.ClientConn, keys []string) (ret *pb.ActivityResponse, err error)
- func DeleteMembers(conn *grpc.ClientConn, members []*pb.DeleteRequest) (ret *pb.ActivityResponse, err error)
- func GetActivities(conn *grpc.ClientConn, opts *pb.ActivityRequest) (ret []*pb.ActivityItem, err error)
- func GetKeys(conn *grpc.ClientConn) (ret []string, err error)
- func IncrementActivities(conn *grpc.ClientConn, reqs []*pb.IncRequest) (ret *pb.ActivityResponse, err error)
- func UpdateMembers(conn *grpc.ClientConn, members []*pb.ActivityItem) (ret *pb.ActivityResponse, err error)
- func WriteMembers(conn *grpc.ClientConn, members []*pb.ActivityItem) (ret *pb.ActivityResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddColumns ¶
func AddColumns(conn *grpc.ClientConn, keys []string) (ret *pb.ActivityResponse, err error)
AddColumns asks the server to add the given keys to all documents in the collection
func DeleteColumns ¶
func DeleteColumns(conn *grpc.ClientConn, keys []string) (ret *pb.ActivityResponse, err error)
DeleteColumns asks the server to delete the given keys from all documents in the collection
func DeleteMembers ¶
func DeleteMembers(conn *grpc.ClientConn, members []*pb.DeleteRequest) (ret *pb.ActivityResponse, err error)
DeleteMembers asks the server to delete a given slice of members
func GetActivities ¶
func GetActivities(conn *grpc.ClientConn, opts *pb.ActivityRequest) (ret []*pb.ActivityItem, err error)
GetActivities sends a ActivityRequest to the server and returns a slice of ActivityItems Primarily used to query the database for activities
func GetKeys ¶
func GetKeys(conn *grpc.ClientConn) (ret []string, err error)
GetKeys gets the keys for activities from the server
func IncrementActivities ¶
func IncrementActivities(conn *grpc.ClientConn, reqs []*pb.IncRequest) (ret *pb.ActivityResponse, err error)
IncrementActivities requests the server to increment the activities provided in reqs
func UpdateMembers ¶
func UpdateMembers(conn *grpc.ClientConn, members []*pb.ActivityItem) (ret *pb.ActivityResponse, err error)
UpdateMembers sends a given array of members to the server in order to update the DB It's notable that using ActivityItem for the datastructure which gets sent to the server here prevents name-updates from happening. A potential solution could be to include an objectid in the query and change it via that or include an optional "namechange" field in the struct. Not sure what the best solution is.
func WriteMembers ¶
func WriteMembers(conn *grpc.ClientConn, members []*pb.ActivityItem) (ret *pb.ActivityResponse, err error)
WriteMembers sends a given array of members to the server to write them in the DB
Types ¶
This section is empty.