logtypesapi

package
v1.8.0-beta Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Code generated by apigen; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AvailableLogTypes

type AvailableLogTypes struct {
	LogTypes []string `json:"logTypes"`
}

type DynamoDBLogTypes

type DynamoDBLogTypes struct {
	DB        dynamodbiface.DynamoDBAPI
	TableName string
}

func (*DynamoDBLogTypes) IndexLogTypes

func (d *DynamoDBLogTypes) IndexLogTypes(ctx context.Context) ([]string, error)

type LogTypesAPI

type LogTypesAPI struct {
	NativeLogTypes func() []string
	Database       LogTypesDatabase
}

LogTypesAPI handles the business logic of log types LogTypesAPI

func (*LogTypesAPI) ListAvailableLogTypes

func (api *LogTypesAPI) ListAvailableLogTypes(ctx context.Context) (*AvailableLogTypes, error)

ListAvailableLogTypes lists all available log type ids

type LogTypesAPILambdaClient

type LogTypesAPILambdaClient struct {
	LambdaName string
	LambdaAPI  *lambda.Lambda
	Validate   func(interface{}) error
	JSON       jsoniter.API
}

LogTypesAPILambdaClient implements LogTypesAPI by invoking a Lambda

func (*LogTypesAPILambdaClient) ListAvailableLogTypes

func (c *LogTypesAPILambdaClient) ListAvailableLogTypes(ctx context.Context) (*AvailableLogTypes, error)

type LogTypesAPIPayload

type LogTypesAPIPayload struct {
	ListAvailableLogTypes *struct{}
}

type LogTypesDatabase

type LogTypesDatabase interface {
	// Return an index of available log types
	IndexLogTypes(ctx context.Context) ([]string, error)
}

LogTypesDatabase handles the external actions required for LogTypesAPI to be implemented

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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