foo

package
v0.0.0-...-6b8f104 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Code generated by argen. DO NOT EDIT. This code was generated from a template.

Manual changes to this file may cause unexpected behavior in your application. Manual changes to this file will be overwritten if the code is regenerated.

Generate info: argen@v1.11.0-b (Commit: 6934fae2)

Code generated by argen. DO NOT EDIT. This code was generated from a template.

Manual changes to this file may cause unexpected behavior in your application. Manual changes to this file will be overwritten if the code is regenerated.

Generate info: argen@v1.11.0-b (Commit: 6934fae2)

Code generated by argen. DO NOT EDIT. This code was generated from a template.

Manual changes to this file may cause unexpected behavior in your application. Manual changes to this file will be overwritten if the code is regenerated.

Generate info: argen@v1.11.0-b (Commit: 6934fae2)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallMockerLogger

func CallMockerLogger(params FooParams, res FooList) func() (activerecord.MockerLogger, error)

func MarshalFixtures

func MarshalFixtures(objs []*Foo) ([]byte, error)

func MockCallRequest

func MockCallRequest(ctx context.Context, params FooParams) []byte

func UnpackJsonRawData

func UnpackJsonRawData(r *bytes.Reader) (ret s2s.ServiceResponse, errRet error)

func UnpackStatus

func UnpackStatus(r *bytes.Reader) (ret int, errRet error)

func UnpackTraceID

func UnpackTraceID(r *bytes.Reader) (ret string, errRet error)

Types

type Foo

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

proc struct

func Call

func Call(ctx context.Context, params FooParams) (*Foo, error)

func CallOnMaster

func CallOnMaster(ctx context.Context, params FooParams) (*Foo, error)

func New

func New(ctx context.Context) *Foo

func TupleToStruct

func TupleToStruct(ctx context.Context, tuple octopus.TupleData) (*Foo, error)

func UnmarshalDeleteFixtures

func UnmarshalDeleteFixtures(source []byte) []*Foo

func UnmarshalFixtures

func UnmarshalFixtures(source []byte) []*Foo

func (*Foo) GetJsonRawData

func (obj *Foo) GetJsonRawData() s2s.ServiceResponse

func (*Foo) GetParams

func (obj *Foo) GetParams() FooParams

func (*Foo) GetStatus

func (obj *Foo) GetStatus() int

func (*Foo) GetTraceID

func (obj *Foo) GetTraceID() string

func (*Foo) MockSelectResponse

func (obj *Foo) MockSelectResponse() ([][]byte, error)

func (*Foo) RepoSelector

func (obj *Foo) RepoSelector(ctx context.Context) (any, error)

func (*Foo) SetJsonRawData

func (obj *Foo) SetJsonRawData(JsonRawData s2s.ServiceResponse) error

func (*Foo) SetStatus

func (obj *Foo) SetStatus(Status int) error

func (*Foo) SetTraceID

func (obj *Foo) SetTraceID(TraceID string) error

type FooFT

type FooFT struct {
	Params      FooFTPK             `yaml:"params"`
	Status      int                 `yaml:"status"`
	JsonRawData s2s.ServiceResponse `yaml:"json_raw_data"`
	TraceID     string              `yaml:"trace_id"`
}

func UnmarshalFixturesFromJSON

func UnmarshalFixturesFromJSON(source []byte) ([]FooFT, error)

type FooFTPK

type FooFTPK struct {
	SearchQuery map[string]string `yaml:"search_query" mapstructure:"search_query" json:"search_query"`

	TraceID string `yaml:"trace_id" mapstructure:"trace_id" json:"trace_id"`
}

type FooList

type FooList []*Foo

func (FooList) String

func (objs FooList) String() string

type FooParams

type FooParams struct {
	SearchQuery map[string]string
	TraceID     string
}

func (FooParams) PK

func (obj FooParams) PK() string

Jump to

Keyboard shortcuts

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