person

package
v0.0.0-...-86bf676 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	ID       string   `json:"id"`
	Nickname string   `json:"apelido"`
	Name     string   `json:"nome"`
	Birthday string   `json:"nascimento"`
	Stack    []string `json:"stack"`
}

func (Result) MarshalEasyJSON

func (v Result) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Result) MarshalJSON

func (v Result) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Result) UnmarshalEasyJSON

func (v *Result) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Result) UnmarshalJSON

func (v *Result) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Results

type Results []Result

func (Results) MarshalEasyJSON

func (v Results) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Results) MarshalJSON

func (v Results) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Results) UnmarshalEasyJSON

func (v *Results) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Results) UnmarshalJSON

func (v *Results) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Service

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

func New

func New(queries *repo.Queries) *Service

func (*Service) Count

func (s *Service) Count(ctx context.Context) (int64, error)

func (*Service) Create

func (s *Service) Create(
	ctx context.Context, nickname, name string, birthday time.Time, stack []string) (string, error)

func (*Service) Get

func (s *Service) Get(ctx context.Context, id string) (Result, error)

func (*Service) Search

func (s *Service) Search(ctx context.Context, query string) (Results, error)

Jump to

Keyboard shortcuts

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