api

package
v0.0.0-...-eb5cc7f Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJourneyAPI

func NewJourneyAPI(repo repo.Repo, producer kafka.Producer, metric metrics.Metrics, chunkSize int) desc.JourneyApiV1Server

NewJourneyAPI returns JourneyAPI

Types

type JourneyAPI

type JourneyAPI struct {
	desc.UnimplementedJourneyApiV1Server
	// contains filtered or unexported fields
}

JourneyAPI - gRPC API implementation for working with journeys

func (*JourneyAPI) CreateJourneyTaskV1

func (api *JourneyAPI) CreateJourneyTaskV1(ctx context.Context, req *desc.CreateJourneyTaskRequestV1) (*emptypb.Empty, error)

CreateJourneyTaskV1 - create new journey using producer

func (*JourneyAPI) CreateJourneyV1

CreateJourneyV1 - create new journey

func (*JourneyAPI) DescribeJourneyV1

DescribeJourneyV1 - get journey description by journeyID

func (*JourneyAPI) ListJourneysV1

ListJourneysV1 - get list of journey with offset and limit

func (*JourneyAPI) MultiCreateJourneyTaskV1

func (api *JourneyAPI) MultiCreateJourneyTaskV1(ctx context.Context, req *desc.MultiCreateJourneyTaskRequestV1) (*emptypb.Empty, error)

MultiCreateJourneyTaskV1 - create new journeys using producer and splitting on chunks

func (*JourneyAPI) MultiCreateJourneyV1

MultiCreateJourneyV1 - create new journeys using chunks and return added journeys ids. If there is error for any chunk returns already added ids and error.

func (*JourneyAPI) RemoveJourneyTaskV1

func (api *JourneyAPI) RemoveJourneyTaskV1(ctx context.Context, req *desc.RemoveJourneyTaskRequestV1) (*emptypb.Empty, error)

RemoveJourneyTaskV1 - remove journey using producer

func (*JourneyAPI) RemoveJourneyV1

func (api *JourneyAPI) RemoveJourneyV1(ctx context.Context, req *desc.RemoveJourneyRequestV1) (*emptypb.Empty, error)

RemoveJourneyV1 - remove journey

func (*JourneyAPI) UpdateJourneyTaskV1

func (api *JourneyAPI) UpdateJourneyTaskV1(ctx context.Context, req *desc.UpdateJourneyTaskRequestV1) (*emptypb.Empty, error)

UpdateJourneyTaskV1 - find journey by id and update another fields using producer

func (*JourneyAPI) UpdateJourneyV1

func (api *JourneyAPI) UpdateJourneyV1(ctx context.Context, req *desc.UpdateJourneyRequestV1) (*emptypb.Empty, error)

UpdateJourneyV1 - find journey by id and update another fields

Jump to

Keyboard shortcuts

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