pkg

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonRPCUser

type JsonRPCUser struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Age  int64  `json:"age"`
	Time int64  `json:"time"`
	Sex  string `json:"sex"`
}

func (JsonRPCUser) String

func (u JsonRPCUser) String() string

type UserProvider

type UserProvider struct {
	GetUsers func(ids []interface{}) ([]*JsonRPCUser, error)
	GetUser  func(ctx context.Context, id string) (*JsonRPCUser, error)
	GetUser0 func(id string, name string) (*JsonRPCUser, error)
	GetUser1 func(ctx context.Context, id string) (*JsonRPCUser, error)
	GetUser2 func(ctx context.Context, id string) (*JsonRPCUser, error) `dubbo:"getUser"`
	GetUser3 func() error
	Echo     func(ctx context.Context, req string) (string, error) // Echo represent EchoFilter will be used
}

type UserProvider1

type UserProvider1 struct {
	GetUsers func(ids []interface{}) ([]*JsonRPCUser, error)
	GetUser  func(ctx context.Context, id string) (*JsonRPCUser, error)
	GetUser0 func(id string, name string) (*JsonRPCUser, error)
	GetUser1 func(ctx context.Context, id string) (*JsonRPCUser, error)
	GetUser2 func(ctx context.Context, id string) (*JsonRPCUser, error) `dubbo:"getUser"`
	GetUser3 func() error
	Echo     func(ctx context.Context, req string) (string, error) // Echo represent EchoFilter will be used
}

type UserProvider2

type UserProvider2 struct {
	GetUsers func(ids []interface{}) ([]*JsonRPCUser, error)
	GetUser  func(ctx context.Context, id string) (*JsonRPCUser, error)
	GetUser0 func(id string, name string) (*JsonRPCUser, error)
	GetUser1 func(ctx context.Context, id string) (*JsonRPCUser, error)
	GetUser2 func(ctx context.Context, id string) (*JsonRPCUser, error) `dubbo:"getUser"`
	GetUser3 func() error
	Echo     func(ctx context.Context, req string) (string, error) // Echo represent EchoFilter will be used
}

Jump to

Keyboard shortcuts

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