resolvers

package
v0.0.0-...-b144089 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoStructToPb

func GoStructToPb[G any, P any](gostruct G) P

func PbToGoStruct

func PbToGoStruct[P any, G any](pb P, skipId bool) G

func StructFieldCapsNameMap

func StructFieldCapsNameMap[T any](obj *T) (map[string]int, error)

Returns a map of a struct's field names in all caps with their field positions, given an object of that struct

func ValOrPointerVal

func ValOrPointerVal(val reflect.Value) reflect.Value

Types

type Pagination

type Pagination struct {
	Limit  *int32
	Offset *int32
	Total  *int32
}

type PaginationInput

type PaginationInput struct {
	Limit  *int32
	Offset *int32
}

type Root

type Root struct {
	VersionResolver
}

func NewRoot

func NewRoot() *Root

type VersionResolver

type VersionResolver struct{}

func (*VersionResolver) Version

func (r *VersionResolver) Version() string

Jump to

Keyboard shortcuts

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