examples

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Foo

type Foo struct {
	// contains filtered or unexported fields
}

Foo is the service object

type FooCreateResponse

type FooCreateResponse struct {
	// contains filtered or unexported fields
}

FooCreateResponse is the service response when creating Foo

type FooServiceConnector

type FooServiceConnector struct {
	jac.Jac
	// contains filtered or unexported fields
}

FooServiceConnector is your custom service connector

func NewFooServiceConnector

func NewFooServiceConnector(baseEndpoint string) *FooServiceConnector

NewFooServiceConnector is your custom connector to FooService where you can define your own data transformations and operations and then use jac.Jac's methods to easily send POST/GET/DELETE methods

func (*FooServiceConnector) CreateFoo

func (c *FooServiceConnector) CreateFoo(foo Foo) (*FooCreateResponse, error)

CreateFoo is an example of simple connector function which uses jac.Jac to create new Foo instance via connector

Jump to

Keyboard shortcuts

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