jsonplaceholderClient

package
v0.0.0-...-b0fceeb Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provider = fx.Options(
	fx.Provide(NewClient),
)

Functions

This section is empty.

Types

type Client

type Client interface {
	GetPosts(ctx context.Context, postId string) (*PostDto, error)
}

func NewClient

func NewClient(cf gox.CrossFunction, goxHttpCtx goxHttpApi.GoxHttpContext) Client

type PostDto

type PostDto struct {
	Id     int    `json:"id"`
	UserId int    `json:"userId"`
	Title  string `json:"title"`
}

Jump to

Keyboard shortcuts

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