Skip to content

support different struct in WriteObject #25

@yuanbohan

Description

@yuanbohan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions