leaf

package
v0.0.0-...-f078915 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: BSD-3-Clause Imports: 5 Imported by: 1

README

leaf

import "github.com/blueprint-uservices/blueprint/examples/leaf/workflow/leaf"

Index

type LeafObject

type LeafObject struct {
    ID    int64
    Name  string
    Count int
    Props map[string]NestedLeafObject
}

type LeafService

type LeafService interface {
    HelloNothing(ctx ctxx.Context) error
    HelloInt(ctx ctxx.Context, a int64) (int64, error)
    HelloObject(ctx ctxx.Context, obj *LeafObject) (*LeafObject, error)
    HelloMate(ctx ctxx.Context, a int, b int32, c string, d map[string]LeafObject, elems []string, elems2 []NestedLeafObject) (string, []string, int32, int, map[string]LeafObject, error)
}

type LeafServiceImpl

type LeafServiceImpl struct {
    LeafService
    Cache      backend.Cache
    Collection backend.NoSQLCollection
    Counter    metric.Int64Counter
    // contains filtered or unexported fields
}

func NewLeafServiceImpl
func NewLeafServiceImpl(ctx ctxx.Context, cache backend.Cache, db backend.NoSQLDatabase) (*LeafServiceImpl, error)

func (*LeafServiceImpl) HelloInt
func (l *LeafServiceImpl) HelloInt(ctx ctxx.Context, a int64) (int64, error)

func (*LeafServiceImpl) HelloMate
func (l *LeafServiceImpl) HelloMate(ctx ctxx.Context, a int, b int32, c string, d map[string]LeafObject, elems []string, elems2 []NestedLeafObject) (string, []string, int32, int, map[string]LeafObject, error)

func (*LeafServiceImpl) HelloNothing
func (l *LeafServiceImpl) HelloNothing(ctx ctxx.Context) error

func (*LeafServiceImpl) HelloObject
func (l *LeafServiceImpl) HelloObject(ctx ctxx.Context, obj *LeafObject) (*LeafObject, error)

func (*LeafServiceImpl) NonServiceFunction
func (l *LeafServiceImpl) NonServiceFunction() int64

type MyInt

type MyInt int64

type NestedLeafObject

type NestedLeafObject struct {
    Key   string
    Value string
    Props []string
}

type NonLeafService

type NonLeafService interface {
    Hello(ctx context.Context, a int64) (int64, error)
}

func NewNonLeafServiceImpl
func NewNonLeafServiceImpl(ctx context.Context, leafService LeafService) (NonLeafService, error)

type NonLeafServiceImpl

type NonLeafServiceImpl struct {
    NonLeafService
    // contains filtered or unexported fields
}

func (*NonLeafServiceImpl) Hello
func (nl *NonLeafServiceImpl) Hello(ctx context.Context, a int64) (int64, error)

Generated by gomarkdoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeafObject

type LeafObject struct {
	ID    int64
	Name  string
	Count int
	Props map[string]NestedLeafObject
}

type LeafService

type LeafService interface {
	HelloNothing(ctx ctxx.Context) error
	HelloInt(ctx ctxx.Context, a int64) (int64, error)
	HelloObject(ctx ctxx.Context, obj *LeafObject) (*LeafObject, error)
	HelloMate(ctx ctxx.Context, a int, b int32, c string, d map[string]LeafObject, elems []string, elems2 []NestedLeafObject) (string, []string, int32, int, map[string]LeafObject, error)
}

type LeafServiceImpl

type LeafServiceImpl struct {
	LeafService
	Cache      backend.Cache
	Collection backend.NoSQLCollection
	Counter    metric.Int64Counter
	// contains filtered or unexported fields
}

func NewLeafServiceImpl

func NewLeafServiceImpl(ctx ctxx.Context, cache backend.Cache, db backend.NoSQLDatabase) (*LeafServiceImpl, error)

func (*LeafServiceImpl) HelloInt

func (l *LeafServiceImpl) HelloInt(ctx ctxx.Context, a int64) (int64, error)

func (*LeafServiceImpl) HelloMate

func (l *LeafServiceImpl) HelloMate(ctx ctxx.Context, a int, b int32, c string, d map[string]LeafObject, elems []string, elems2 []NestedLeafObject) (string, []string, int32, int, map[string]LeafObject, error)

func (*LeafServiceImpl) HelloNothing

func (l *LeafServiceImpl) HelloNothing(ctx ctxx.Context) error

func (*LeafServiceImpl) HelloObject

func (l *LeafServiceImpl) HelloObject(ctx ctxx.Context, obj *LeafObject) (*LeafObject, error)

func (*LeafServiceImpl) NonServiceFunction

func (l *LeafServiceImpl) NonServiceFunction() int64

type MyInt

type MyInt int64

type NestedLeafObject

type NestedLeafObject struct {
	Key   string
	Value string
	Props []string
}

type NonLeafService

type NonLeafService interface {
	Hello(ctx context.Context, a int64) (int64, error)
}

func NewNonLeafServiceImpl

func NewNonLeafServiceImpl(ctx context.Context, leafService LeafService) (NonLeafService, error)

type NonLeafServiceImpl

type NonLeafServiceImpl struct {
	NonLeafService
	// contains filtered or unexported fields
}

func (*NonLeafServiceImpl) Hello

func (nl *NonLeafServiceImpl) Hello(ctx context.Context, a int64) (int64, error)

Jump to

Keyboard shortcuts

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