GreptimeTeam/greptimedb-ingester-go

support different struct in WriteObject

开放

#25 创建于 2024年2月27日

 (0 条评论) (0 个反应) (0 位负责人)Go (7 个派生)auto 404
good first issue

仓库指标

星标
 (16 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

for now, ingester-go only support one type in Client.WriteObject, but it should behave like ingester-java, like:

resp, err := client.WriteObject(context.Background(), cup1, mem1, cup2, mem2)

Function signature

from

func (c *Client) WriteObject(ctx context.Context, obj any) (*gpb.GreptimeResponse, error) 

to

func (c *Client) WriteObject(ctx context.Context, objs ...any) (*gpb.GreptimeResponse, error) 

NOTE

  • To simplify the maintenance, WriteObject use variadic parameters

贡献者指南