SYMBOL INDEX (2765 symbols across 314 files) FILE: api/metadata/metadata.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type ListServicesRequest (line 25) | type ListServicesRequest struct method Reset (line 31) | func (x *ListServicesRequest) Reset() { method String (line 40) | func (x *ListServicesRequest) String() string { method ProtoMessage (line 44) | func (*ListServicesRequest) ProtoMessage() {} method ProtoReflect (line 46) | func (x *ListServicesRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 59) | func (*ListServicesRequest) Descriptor() ([]byte, []int) { type ListServicesReply (line 63) | type ListServicesReply struct method Reset (line 72) | func (x *ListServicesReply) Reset() { method String (line 81) | func (x *ListServicesReply) String() string { method ProtoMessage (line 85) | func (*ListServicesReply) ProtoMessage() {} method ProtoReflect (line 87) | func (x *ListServicesReply) ProtoReflect() protoreflect.Message { method Descriptor (line 100) | func (*ListServicesReply) Descriptor() ([]byte, []int) { method GetServices (line 104) | func (x *ListServicesReply) GetServices() []string { method GetMethods (line 111) | func (x *ListServicesReply) GetMethods() []string { type GetServiceDescRequest (line 118) | type GetServiceDescRequest struct method Reset (line 126) | func (x *GetServiceDescRequest) Reset() { method String (line 135) | func (x *GetServiceDescRequest) String() string { method ProtoMessage (line 139) | func (*GetServiceDescRequest) ProtoMessage() {} method ProtoReflect (line 141) | func (x *GetServiceDescRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 154) | func (*GetServiceDescRequest) Descriptor() ([]byte, []int) { method GetName (line 158) | func (x *GetServiceDescRequest) GetName() string { type GetServiceDescReply (line 165) | type GetServiceDescReply struct method Reset (line 173) | func (x *GetServiceDescReply) Reset() { method String (line 182) | func (x *GetServiceDescReply) String() string { method ProtoMessage (line 186) | func (*GetServiceDescReply) ProtoMessage() {} method ProtoReflect (line 188) | func (x *GetServiceDescReply) ProtoReflect() protoreflect.Message { method Descriptor (line 201) | func (*GetServiceDescReply) Descriptor() ([]byte, []int) { method GetFileDescSet (line 205) | func (x *GetServiceDescReply) GetFileDescSet() *descriptorpb.FileDescr... function file_metadata_metadata_proto_rawDescGZIP (line 264) | func file_metadata_metadata_proto_rawDescGZIP() []byte { function init (line 292) | func init() { file_metadata_metadata_proto_init() } function file_metadata_metadata_proto_init (line 293) | func file_metadata_metadata_proto_init() { FILE: api/metadata/metadata_grpc.pb.go constant _ (line 19) | _ = grpc.SupportPackageIsVersion7 type MetadataClient (line 24) | type MetadataClient interface type metadataClient (line 31) | type metadataClient struct method ListServices (line 39) | func (c *metadataClient) ListServices(ctx context.Context, in *ListSer... method GetServiceDesc (line 48) | func (c *metadataClient) GetServiceDesc(ctx context.Context, in *GetSe... function NewMetadataClient (line 35) | func NewMetadataClient(cc grpc.ClientConnInterface) MetadataClient { type MetadataServer (line 60) | type MetadataServer interface type UnimplementedMetadataServer (line 69) | type UnimplementedMetadataServer struct method ListServices (line 72) | func (UnimplementedMetadataServer) ListServices(context.Context, *List... method GetServiceDesc (line 75) | func (UnimplementedMetadataServer) GetServiceDesc(context.Context, *Ge... method mustEmbedUnimplementedMetadataServer (line 78) | func (UnimplementedMetadataServer) mustEmbedUnimplementedMetadataServe... type UnsafeMetadataServer (line 83) | type UnsafeMetadataServer interface function RegisterMetadataServer (line 87) | func RegisterMetadataServer(s grpc.ServiceRegistrar, srv MetadataServer) { function _Metadata_ListServices_Handler (line 91) | func _Metadata_ListServices_Handler(srv interface{}, ctx context.Context... function _Metadata_GetServiceDesc_Handler (line 109) | func _Metadata_GetServiceDesc_Handler(srv interface{}, ctx context.Conte... FILE: api/metadata/metadata_http.pb.go constant _ (line 18) | _ = http.SupportPackageIsVersion1 type MetadataHTTPServer (line 20) | type MetadataHTTPServer interface function RegisterMetadataHTTPServer (line 25) | func RegisterMetadataHTTPServer(s *http.Server, srv MetadataHTTPServer) { function _Metadata_ListServices0_HTTP_Handler (line 31) | func _Metadata_ListServices0_HTTP_Handler(srv MetadataHTTPServer) func(c... function _Metadata_GetServiceDesc0_HTTP_Handler (line 50) | func _Metadata_GetServiceDesc0_HTTP_Handler(srv MetadataHTTPServer) func... type MetadataHTTPClient (line 72) | type MetadataHTTPClient interface type MetadataHTTPClientImpl (line 77) | type MetadataHTTPClientImpl struct method GetServiceDesc (line 85) | func (c *MetadataHTTPClientImpl) GetServiceDesc(ctx context.Context, i... method ListServices (line 98) | func (c *MetadataHTTPClientImpl) ListServices(ctx context.Context, in ... function NewMetadataHTTPClient (line 81) | func NewMetadataHTTPClient(client *http.Client) MetadataHTTPClient { FILE: api/metadata/server.go type Server (line 26) | type Server struct method load (line 44) | func (s *Server) load() error { method ListServices (line 101) | func (s *Server) ListServices(_ context.Context, _ *ListServicesReques... method GetServiceDesc (line 125) | func (s *Server) GetServiceDesc(_ context.Context, in *GetServiceDescR... function NewServer (line 36) | func NewServer(srv *grpc.Server) *Server { function parseMetadata (line 142) | func parseMetadata(meta any) (*dpb.FileDescriptorProto, error) { function decodeFileDesc (line 156) | func decodeFileDesc(enc []byte) (*dpb.FileDescriptorProto, error) { function allDependency (line 168) | func allDependency(fd *dpb.FileDescriptorProto) ([]*dpb.FileDescriptorPr... function decompress (line 187) | func decompress(b []byte) ([]byte, error) { function fileDescriptorProto (line 199) | func fileDescriptorProto(path string) (*dpb.FileDescriptorProto, error) { FILE: app.go type AppInfo (line 21) | type AppInfo interface type App (line 30) | type App struct method ID (line 63) | func (a *App) ID() string { return a.opts.id } method Name (line 66) | func (a *App) Name() string { return a.opts.name } method Version (line 69) | func (a *App) Version() string { return a.opts.version } method Metadata (line 72) | func (a *App) Metadata() map[string]string { return a.opts.metadata } method Endpoint (line 75) | func (a *App) Endpoint() []string { method Run (line 83) | func (a *App) Run() error { method Stop (line 154) | func (a *App) Stop() (err error) { method buildInstance (line 176) | func (a *App) buildInstance() (*registry.ServiceInstance, error) { function New (line 39) | func New(opts ...Option) *App { type appKey (line 201) | type appKey struct function NewContext (line 204) | func NewContext(ctx context.Context, s AppInfo) context.Context { function FromContext (line 209) | func FromContext(ctx context.Context) (s AppInfo, ok bool) { FILE: app_test.go type mockRegistry (line 17) | type mockRegistry struct method Register (line 22) | func (r *mockRegistry) Register(_ context.Context, service *registry.S... method Deregister (line 33) | func (r *mockRegistry) Deregister(_ context.Context, service *registry... function TestApp (line 43) | func TestApp(t *testing.T) { function TestApp_ID (line 76) | func TestApp_ID(t *testing.T) { function TestApp_Name (line 84) | func TestApp_Name(t *testing.T) { function TestApp_Version (line 92) | func TestApp_Version(t *testing.T) { function TestApp_Metadata (line 100) | func TestApp_Metadata(t *testing.T) { function TestApp_Endpoint (line 111) | func TestApp_Endpoint(t *testing.T) { function TestApp_buildInstance (line 132) | func TestApp_buildInstance(t *testing.T) { function TestApp_Context (line 185) | func TestApp_Context(t *testing.T) { function TestApp_ContextCanceled (line 287) | func TestApp_ContextCanceled(t *testing.T) { FILE: cmd/kratos/internal/base/install.go function GoInstall (line 11) | func GoInstall(path ...string) error { FILE: cmd/kratos/internal/base/mod.go function ModulePath (line 15) | func ModulePath(filename string) (string, error) { function ModuleVersion (line 24) | func ModuleVersion(path string) (string, error) { function KratosMod (line 47) | func KratosMod() string { FILE: cmd/kratos/internal/base/mod_test.go function TestModuleVersion (line 8) | func TestModuleVersion(t *testing.T) { function TestModulePath (line 16) | func TestModulePath(t *testing.T) { FILE: cmd/kratos/internal/base/path.go function kratosHome (line 14) | func kratosHome() string { function kratosHomeWithDir (line 28) | func kratosHomeWithDir(dir string) string { function copyFile (line 38) | func copyFile(src, dst string, replaces []string) error { function copyDir (line 58) | func copyDir(src, dst string, replaces, ignores []string) error { function hasSets (line 92) | func hasSets(name string, sets []string) bool { function Tree (line 101) | func Tree(path string, dir string) { FILE: cmd/kratos/internal/base/repo.go type Repo (line 17) | type Repo struct method Path (line 51) | func (r *Repo) Path() string { method Pull (line 67) | func (r *Repo) Pull(ctx context.Context) error { method Clone (line 85) | func (r *Repo) Clone(ctx context.Context) error { method CopyTo (line 104) | func (r *Repo) CopyTo(ctx context.Context, to string, modPath string, ... method CopyToV2 (line 116) | func (r *Repo) CopyToV2(ctx context.Context, to string, modPath string... function repoDir (line 23) | func repoDir(url string) string { function NewRepo (line 42) | func NewRepo(url string, branch string) *Repo { FILE: cmd/kratos/internal/base/repo_test.go function TestRepo (line 9) | func TestRepo(t *testing.T) { function TestRepoClone (line 40) | func TestRepoClone(t *testing.T) { FILE: cmd/kratos/internal/base/vcs_url.go function ParseVCSUrl (line 18) | func ParseVCSUrl(repo string) (*url.URL, error) { FILE: cmd/kratos/internal/base/vcs_url_test.go function TestParseVCSUrl (line 9) | func TestParseVCSUrl(t *testing.T) { function TestParseSsh (line 44) | func TestParseSsh(t *testing.T) { FILE: cmd/kratos/internal/change/change.go function init (line 23) | func init() { function run (line 31) | func run(_ *cobra.Command, args []string) { FILE: cmd/kratos/internal/change/get.go type ReleaseInfo (line 15) | type ReleaseInfo struct type CommitInfo (line 24) | type CommitInfo struct type ErrorInfo (line 30) | type ErrorInfo struct type GithubAPI (line 34) | type GithubAPI struct method GetReleaseInfo (line 41) | func (g *GithubAPI) GetReleaseInfo(version string) ReleaseInfo { method GetCommitsInfo (line 59) | func (g *GithubAPI) GetCommitsInfo() []CommitInfo { function printGithubErrorInfo (line 84) | func printGithubErrorInfo(body []byte) { function requestGithubAPI (line 93) | func requestGithubAPI(url string, method string, body io.Reader, token s... function ParseCommitsInfo (line 114) | func ParseCommitsInfo(info []CommitInfo) string { function ParseReleaseInfo (line 175) | func ParseReleaseInfo(info ReleaseInfo) string { function ParseGithubURL (line 193) | func ParseGithubURL(url string) (owner string, repo string) { function fatal (line 213) | func fatal(err error) { FILE: cmd/kratos/internal/change/get_test.go function TestParseGithubURL (line 5) | func TestParseGithubURL(t *testing.T) { FILE: cmd/kratos/internal/project/add.go method Add (line 19) | func (p *Project) Add(ctx context.Context, dir string, layout string, br... FILE: cmd/kratos/internal/project/new.go type Project (line 16) | type Project struct method New (line 22) | func (p *Project) New(ctx context.Context, dir string, layout string, ... FILE: cmd/kratos/internal/project/project.go function init (line 39) | func init() { function run (line 46) | func run(_ *cobra.Command, args []string) { function processProjectParams (line 124) | func processProjectParams(projectName string, workingDir string) (projec... function getgomodProjectRoot (line 149) | func getgomodProjectRoot(dir string) string { function gomodIsNotExistIn (line 159) | func gomodIsNotExistIn(dir string) bool { function selectRepo (line 164) | func selectRepo() (string, error) { FILE: cmd/kratos/internal/project/project_linux_test.go function Test_processProjectParams (line 9) | func Test_processProjectParams(t *testing.T) { FILE: cmd/kratos/internal/project/project_test.go function TestCmdNew (line 15) | func TestCmdNew(t *testing.T) { function TestCmdNewNoMod (line 44) | func TestCmdNewNoMod(t *testing.T) { function assertImportsInclude (line 76) | func assertImportsInclude(t *testing.T, path, expected string) { function imports (line 94) | func imports(path string) ([]string, error) { function assertGoMod (line 110) | func assertGoMod(t *testing.T, path, expected string) { function changeCurrentDir (line 124) | func changeCurrentDir(t *testing.T) string { FILE: cmd/kratos/internal/project/project_windows_test.go function Test_processProjectParams (line 9) | func Test_processProjectParams(t *testing.T) { FILE: cmd/kratos/internal/proto/add/add.go function run (line 22) | func run(_ *cobra.Command, args []string) { function modName (line 51) | func modName() string { function goPackage (line 61) | func goPackage(path string) string { function javaPackage (line 66) | func javaPackage(name string) string { function serviceName (line 70) | func serviceName(name string) string { function toUpperCamelCase (line 74) | func toUpperCamelCase(s string) string { FILE: cmd/kratos/internal/proto/add/add_test.go function TestUnderscoreToUpperCamelCase (line 5) | func TestUnderscoreToUpperCamelCase(t *testing.T) { FILE: cmd/kratos/internal/proto/add/proto.go type Proto (line 10) | type Proto struct method Generate (line 20) | func (p *Proto) Generate() error { FILE: cmd/kratos/internal/proto/add/template.go constant protoTemplate (line 9) | protoTemplate = ` method execute (line 42) | func (p *Proto) execute() ([]byte, error) { FILE: cmd/kratos/internal/proto/client/client.go function init (line 26) | func init() { function run (line 33) | func run(_ *cobra.Command, args []string) { function look (line 62) | func look(name ...string) error { function walk (line 71) | func walk(dir string, args []string) error { function generate (line 84) | func generate(proto string, args []string) error { function pathExists (line 124) | func pathExists(path string) bool { FILE: cmd/kratos/internal/proto/proto.go function init (line 18) | func init() { FILE: cmd/kratos/internal/proto/server/server.go function init (line 25) | func init() { function run (line 29) | func run(_ *cobra.Command, args []string) { function getMethodType (line 95) | func getMethodType(streamsRequest, streamsReturns bool) MethodType { function parametersName (line 108) | func parametersName(name string) string { function serviceName (line 112) | func serviceName(name string) string { function rpcName (line 116) | func rpcName(name string) string { function toUpperCamelCase (line 120) | func toUpperCamelCase(s string) string { FILE: cmd/kratos/internal/proto/server/server_test.go function Test_serviceName (line 5) | func Test_serviceName(t *testing.T) { function Test_parametersName (line 79) | func Test_parametersName(t *testing.T) { FILE: cmd/kratos/internal/proto/server/template.go type MethodType (line 88) | type MethodType constant unaryType (line 91) | unaryType MethodType = 1 constant twoWayStreamsType (line 92) | twoWayStreamsType MethodType = 2 constant requestStreamsType (line 93) | requestStreamsType MethodType = 3 constant returnsStreamsType (line 94) | returnsStreamsType MethodType = 4 type Service (line 98) | type Service struct method execute (line 119) | func (s *Service) execute() ([]byte, error) { type Method (line 109) | type Method struct FILE: cmd/kratos/internal/run/run.go function init (line 23) | func init() { function Run (line 28) | func Run(cmd *cobra.Command, args []string) { function splitArgs (line 82) | func splitArgs(cmd *cobra.Command, args []string) (cmdArgs, programArgs ... function findCMD (line 90) | func findCMD(base string) (map[string]string, error) { function changeWorkingDirectory (line 140) | func changeWorkingDirectory(cmd *exec.Cmd, targetDir string) { FILE: cmd/kratos/internal/upgrade/upgrade.go function Run (line 20) | func Run(_ *cobra.Command, _ []string) { FILE: cmd/kratos/main.go function init (line 22) | func init() { function main (line 30) | func main() { FILE: cmd/kratos/version.go constant release (line 4) | release = "v2.9.2" FILE: cmd/protoc-gen-go-errors/errors.go constant errorsPackage (line 18) | errorsPackage = protogen.GoImportPath("github.com/go-kratos/kratos/v2/er... constant fmtPackage (line 19) | fmtPackage = protogen.GoImportPath("fmt") function generateFile (line 25) | func generateFile(gen *protogen.Plugin, file *protogen.File) *protogen.G... function generateFileContent (line 41) | func generateFileContent(gen *protogen.Plugin, file *protogen.File, g *p... function genErrorsReason (line 62) | func genErrorsReason(_ *protogen.Plugin, _ *protogen.File, g *protogen.G... function case2Camel (line 110) | func case2Camel(name string) string { FILE: cmd/protoc-gen-go-errors/errors/errors.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type Error (line 24) | type Error struct method Reset (line 35) | func (x *Error) Reset() { method String (line 44) | func (x *Error) String() string { method ProtoMessage (line 48) | func (*Error) ProtoMessage() {} method ProtoReflect (line 50) | func (x *Error) ProtoReflect() protoreflect.Message { method Descriptor (line 63) | func (*Error) Descriptor() ([]byte, []int) { method GetCode (line 67) | func (x *Error) GetCode() int32 { method GetReason (line 74) | func (x *Error) GetReason() string { method GetMessage (line 81) | func (x *Error) GetMessage() string { method GetMetadata (line 88) | func (x *Error) GetMetadata() map[string]string { function file_errors_proto_rawDescGZIP (line 166) | func file_errors_proto_rawDescGZIP() []byte { function init (line 191) | func init() { file_errors_proto_init() } function file_errors_proto_init (line 192) | func file_errors_proto_init() { FILE: cmd/protoc-gen-go-errors/errors_test.go function Test_case2Camel (line 5) | func Test_case2Camel(t *testing.T) { FILE: cmd/protoc-gen-go-errors/main.go function main (line 13) | func main() { FILE: cmd/protoc-gen-go-errors/template.go type errorInfo (line 12) | type errorInfo struct type errorWrapper (line 21) | type errorWrapper struct method execute (line 25) | func (e *errorWrapper) execute() string { FILE: cmd/protoc-gen-go-errors/version.go constant release (line 4) | release = "v2.9.2" FILE: cmd/protoc-gen-go-http/http.go constant contextPackage (line 19) | contextPackage = protogen.GoImportPath("context") constant transportHTTPPackage (line 20) | transportHTTPPackage = protogen.GoImportPath("github.com/go-kratos/krato... constant bindingPackage (line 21) | bindingPackage = protogen.GoImportPath("github.com/go-kratos/krato... function generateFile (line 27) | func generateFile(gen *protogen.Plugin, file *protogen.File, omitempty b... function generateFileContent (line 50) | func generateFileContent(gen *protogen.Plugin, file *protogen.File, g *p... function genService (line 66) | func genService(_ *protogen.Plugin, file *protogen.File, g *protogen.Gen... function hasHTTPRule (line 97) | func hasHTTPRule(services []*protogen.Service) bool { function buildHTTPRule (line 112) | func buildHTTPRule(g *protogen.GeneratedFile, service *protogen.Service,... function buildMethodDesc (line 175) | func buildMethodDesc(g *protogen.GeneratedFile, m *protogen.Method, meth... function buildPathVars (line 230) | func buildPathVars(path string) (res map[string]*string) { function replacePath (line 248) | func replacePath(name string, value string, path string) string { function camelCaseVars (line 262) | func camelCaseVars(s string) string { function camelCase (line 279) | func camelCase(s string) string { function isASCIILower (line 319) | func isASCIILower(c byte) bool { function isASCIIDigit (line 324) | func isASCIIDigit(c byte) bool { function protocVersion (line 328) | func protocVersion(gen *protogen.Plugin) string { constant deprecationComment (line 340) | deprecationComment = "// Deprecated: Do not use." FILE: cmd/protoc-gen-go-http/http_test.go function TestNoParameters (line 8) | func TestNoParameters(t *testing.T) { function TestSingleParam (line 16) | func TestSingleParam(t *testing.T) { function TestTwoParametersReplacement (line 27) | func TestTwoParametersReplacement(t *testing.T) { function TestNoReplacePath (line 44) | func TestNoReplacePath(t *testing.T) { function TestReplacePath (line 55) | func TestReplacePath(t *testing.T) { function TestIteration (line 63) | func TestIteration(t *testing.T) { function TestIterationMiddle (line 76) | func TestIterationMiddle(t *testing.T) { function TestReplaceBoundary (line 89) | func TestReplaceBoundary(t *testing.T) { FILE: cmd/protoc-gen-go-http/main.go function main (line 17) | func main() { FILE: cmd/protoc-gen-go-http/template.go type serviceDesc (line 13) | type serviceDesc struct method execute (line 38) | func (s *serviceDesc) execute() string { type methodDesc (line 21) | type methodDesc struct FILE: cmd/protoc-gen-go-http/version.go constant release (line 4) | release = "v2.9.2" FILE: config/config.go type Observer (line 25) | type Observer type Config (line 28) | type Config interface type config (line 36) | type config struct method watch (line 62) | func (c *config) watch(w Watcher) { method Load (line 96) | func (c *config) Load() error { method Value (line 124) | func (c *config) Value(key string) Value { method Scan (line 135) | func (c *config) Scan(v any) error { method Watch (line 143) | func (c *config) Watch(key string, o Observer) error { method Close (line 151) | func (c *config) Close() error { function New (line 45) | func New(opts ...Option) Config { function Get (line 161) | func Get[T any](c Config, key string) (T, error) { FILE: config/config_test.go constant _testJSON (line 11) | _testJSON = ` type testConfigStruct (line 39) | type testConfigStruct struct type testJSONSource (line 62) | type testJSONSource struct method Load (line 72) | func (p *testJSONSource) Load() ([]*KeyValue, error) { method Watch (line 81) | func (p *testJSONSource) Watch() (Watcher, error) { function newTestJSONSource (line 68) | func newTestJSONSource(data string) *testJSONSource { type testWatcher (line 85) | type testWatcher struct method Next (line 95) | func (w *testWatcher) Next() ([]*KeyValue, error) { method Stop (line 106) | func (w *testWatcher) Stop() error { function newTestWatcher (line 91) | func newTestWatcher(sig, err chan struct{}) Watcher { function TestConfig (line 111) | func TestConfig(t *testing.T) { FILE: config/env/env.go type env (line 10) | type env struct method Load (line 18) | func (e *env) Load() (kvs []*config.KeyValue, err error) { method load (line 22) | func (e *env) load(envs []string) []*config.KeyValue { method Watch (line 47) | func (e *env) Watch() (config.Watcher, error) { function NewSource (line 14) | func NewSource(prefixes ...string) config.Source { function matchPrefix (line 55) | func matchPrefix(prefixes []string, s string) (string, bool) { FILE: config/env/env_test.go constant _testJSON (line 13) | _testJSON = ` function TestEnvWithPrefix (line 30) | func TestEnvWithPrefix(t *testing.T) { function TestEnvWithoutPrefix (line 148) | func TestEnvWithoutPrefix(t *testing.T) { function Test_env_load (line 262) | func Test_env_load(t *testing.T) { function Test_matchPrefix (line 390) | func Test_matchPrefix(t *testing.T) { function Test_env_watch (line 421) | func Test_env_watch(t *testing.T) { FILE: config/env/watcher.go type watcher (line 11) | type watcher struct method Next (line 22) | func (w *watcher) Next() ([]*config.KeyValue, error) { method Stop (line 27) | func (w *watcher) Stop() error { function NewWatcher (line 16) | func NewWatcher() (config.Watcher, error) { FILE: config/env/watcher_test.go function Test_watcher_next (line 7) | func Test_watcher_next(t *testing.T) { function Test_watcher_stop (line 22) | func Test_watcher_stop(t *testing.T) { FILE: config/file/file.go type file (line 14) | type file struct method loadFile (line 23) | func (f *file) loadFile(path string) (*config.KeyValue, error) { method loadDir (line 44) | func (f *file) loadDir(path string) (kvs []*config.KeyValue, err error) { method Load (line 63) | func (f *file) Load() (kvs []*config.KeyValue, err error) { method Watch (line 78) | func (f *file) Watch() (config.Watcher, error) { function NewSource (line 19) | func NewSource(path string) config.Source { FILE: config/file/file_test.go constant _testJSON (line 16) | _testJSON = ` constant _testJSONUpdate (line 42) | _testJSONUpdate = ` function TestFile (line 85) | func TestFile(t *testing.T) { function testWatchFile (line 104) | func testWatchFile(t *testing.T, path string) { function testWatchDir (line 152) | func testWatchDir(t *testing.T, path, file string) { function testSource (line 181) | func testSource(t *testing.T, path string, data []byte) { function TestConfig (line 194) | func TestConfig(t *testing.T) { function testConfig (line 208) | func testConfig(t *testing.T, c config.Config) { function testScan (line 277) | func testScan(t *testing.T, c config.Config) { function TestMergeDataRace (line 306) | func TestMergeDataRace(t *testing.T) { FILE: config/file/format.go function format (line 5) | func format(name string) string { FILE: config/file/format_test.go function TestFormat (line 7) | func TestFormat(t *testing.T) { function BenchmarkFormat (line 53) | func BenchmarkFormat(b *testing.B) { FILE: config/file/watcher.go type watcher (line 15) | type watcher struct method Next (line 35) | func (w *watcher) Next() ([]*config.KeyValue, error) { method Stop (line 65) | func (w *watcher) Stop() error { function newWatcher (line 23) | func newWatcher(f *file) (config.Watcher, error) { FILE: config/options.go type Decoder (line 13) | type Decoder type Resolver (line 16) | type Resolver type Merge (line 19) | type Merge type Option (line 22) | type Option type options (line 24) | type options struct function WithSource (line 32) | func WithSource(s ...Source) Option { function WithDecoder (line 43) | func WithDecoder(d Decoder) Option { function WithResolveActualTypes (line 51) | func WithResolveActualTypes(enableConvertToType bool) Option { function WithResolver (line 58) | func WithResolver(r Resolver) Option { function WithMergeFunc (line 65) | func WithMergeFunc(m Merge) Option { function defaultDecoder (line 73) | func defaultDecoder(src *KeyValue, target map[string]any) error { function newActualTypesResolver (line 94) | func newActualTypesResolver(enableConvertToType bool) func(map[string]an... function defaultResolver (line 103) | func defaultResolver(input map[string]any) error { function resolver (line 108) | func resolver(input map[string]any, mapper func(name string) string, toT... function mapper (line 138) | func mapper(input map[string]any) func(name string) string { function convertToType (line 152) | func convertToType(input string) any { function expand (line 184) | func expand(s string, mapping func(string) string, toType bool) any { FILE: config/options_test.go function TestDefaultDecoder (line 9) | func TestDefaultDecoder(t *testing.T) { function TestDefaultResolver (line 45) | func TestDefaultResolver(t *testing.T) { function TestNewDefaultResolver (line 202) | func TestNewDefaultResolver(t *testing.T) { function TestExpand (line 360) | func TestExpand(t *testing.T) { function TestWithMergeFunc (line 388) | func TestWithMergeFunc(t *testing.T) { FILE: config/reader.go type Reader (line 18) | type Reader interface type reader (line 25) | type reader struct method Merge (line 39) | func (r *reader) Merge(kvs ...*KeyValue) error { method Value (line 61) | func (r *reader) Value(path string) (Value, bool) { method Source (line 67) | func (r *reader) Source() ([]byte, error) { method Resolve (line 73) | func (r *reader) Resolve() error { method cloneMap (line 79) | func (r *reader) cloneMap() (map[string]any, error) { function newReader (line 31) | func newReader(opts options) Reader { function cloneMap (line 85) | func cloneMap(src map[string]any) (map[string]any, error) { function convertMap (line 104) | func convertMap(src any) any { function readValue (line 134) | func readValue(values map[string]any, path string) (Value, bool) { function marshalJSON (line 160) | func marshalJSON(v any) ([]byte, error) { function unmarshalJSON (line 167) | func unmarshalJSON(data []byte, v any) error { FILE: config/reader_test.go function TestReader_Merge (line 13) | func TestReader_Merge(t *testing.T) { function TestReader_Value (line 81) | func TestReader_Value(t *testing.T) { function TestReader_Source (line 185) | func TestReader_Source(t *testing.T) { function TestCloneMap (line 217) | func TestCloneMap(t *testing.T) { function TestConvertMap (line 252) | func TestConvertMap(t *testing.T) { function TestReadValue (line 287) | func TestReadValue(t *testing.T) { FILE: config/source.go type KeyValue (line 4) | type KeyValue struct type Source (line 11) | type Source interface type Watcher (line 17) | type Watcher interface FILE: config/value.go type Value (line 22) | type Value interface type atomicValue (line 35) | type atomicValue struct method typeAssertError (line 39) | func (v *atomicValue) typeAssertError() error { method Bool (line 43) | func (v *atomicValue) Bool() (bool, error) { method Int (line 55) | func (v *atomicValue) Int() (int64, error) { method Slice (line 87) | func (v *atomicValue) Slice() ([]Value, error) { method Map (line 101) | func (v *atomicValue) Map() (map[string]Value, error) { method Float (line 115) | func (v *atomicValue) Float() (float64, error) { method String (line 147) | func (v *atomicValue) String() (string, error) { method Duration (line 161) | func (v *atomicValue) Duration() (time.Duration, error) { method Scan (line 169) | func (v *atomicValue) Scan(obj any) error { type errValue (line 180) | type errValue struct method Bool (line 184) | func (v errValue) Bool() (bool, error) { return false, v.... method Int (line 185) | func (v errValue) Int() (int64, error) { return 0, v.err } method Float (line 186) | func (v errValue) Float() (float64, error) { return 0.0, v.err } method Duration (line 187) | func (v errValue) Duration() (time.Duration, error) { return 0, v.err } method String (line 188) | func (v errValue) String() (string, error) { return "", v.err } method Scan (line 189) | func (v errValue) Scan(any) error { return v.err } method Load (line 190) | func (v errValue) Load() any { return nil } method Store (line 191) | func (v errValue) Store(any) {} method Slice (line 192) | func (v errValue) Slice() ([]Value, error) { return nil, v.err } method Map (line 193) | func (v errValue) Map() (map[string]Value, error) { return nil, v.err } FILE: config/value_test.go function TestAtomicValue_Bool (line 9) | func TestAtomicValue_Bool(t *testing.T) { function TestAtomicValue_Int (line 47) | func TestAtomicValue_Int(t *testing.T) { function TestAtomicValue_Float (line 72) | func TestAtomicValue_Float(t *testing.T) { type ts (line 97) | type ts struct method String (line 102) | func (t ts) String() string { function TestAtomicValue_String (line 106) | func TestAtomicValue_String(t *testing.T) { function TestAtomicValue_Duration (line 144) | func TestAtomicValue_Duration(t *testing.T) { function TestAtomicValue_Slice (line 159) | func TestAtomicValue_Slice(t *testing.T) { function TestAtomicValue_Map (line 178) | func TestAtomicValue_Map(t *testing.T) { function TestAtomicValue_Scan (line 209) | func TestAtomicValue_Scan(t *testing.T) { FILE: contrib/config/apollo/apollo.go type apollo (line 16) | type apollo struct method load (line 146) | func (e *apollo) load() []*config.KeyValue { method getConfig (line 180) | func (e *apollo) getConfig(ns string) (*config.KeyValue, error) { method getOriginConfig (line 200) | func (e apollo) getOriginConfig(ns string) (*config.KeyValue, error) { method Load (line 213) | func (e *apollo) Load() (kv []*config.KeyValue, err error) { method Watch (line 217) | func (e *apollo) Watch() (config.Watcher, error) { constant yaml (line 22) | yaml = "yaml" constant yml (line 23) | yml = "yml" constant json (line 24) | json = "json" constant properties (line 25) | properties = "properties" type Option (line 31) | type Option type options (line 33) | type options struct function WithAppID (line 45) | func WithAppID(appID string) Option { function WithCluster (line 52) | func WithCluster(cluster string) Option { function WithEndpoint (line 59) | func WithEndpoint(endpoint string) Option { function WithEnableBackup (line 66) | func WithEnableBackup() Option { function WithDisableBackup (line 73) | func WithDisableBackup() Option { function WithSecret (line 80) | func WithSecret(secret string) Option { function WithNamespace (line 87) | func WithNamespace(name string) Option { function WithBackupPath (line 94) | func WithBackupPath(backupPath string) Option { function WithOriginalConfig (line 101) | func WithOriginalConfig() Option { function NewSource (line 110) | func NewSource(opts ...Option) config.Source { function format (line 132) | func format(ns string) string { function resolve (line 227) | func resolve(key string, value any, target map[string]any) { function genKey (line 260) | func genKey(ns, sub string) string { function init (line 279) | func init() { FILE: contrib/config/apollo/apollo_test.go function Test_genKey (line 7) | func Test_genKey(t *testing.T) { function Test_format (line 51) | func Test_format(t *testing.T) { FILE: contrib/config/apollo/parser.go type jsonExtParser (line 3) | type jsonExtParser struct method Parse (line 5) | func (parser jsonExtParser) Parse(configContent any) (map[string]any, ... type yamlExtParser (line 9) | type yamlExtParser struct method Parse (line 11) | func (parser yamlExtParser) Parse(configContent any) (map[string]any, ... FILE: contrib/config/apollo/watcher.go type watcher (line 14) | type watcher struct method Next (line 92) | func (w *watcher) Next() ([]*config.KeyValue, error) { method Stop (line 101) | func (w *watcher) Stop() error { type customChangeListener (line 21) | type customChangeListener struct method onChange (line 26) | func (c *customChangeListener) onChange(namespace string, changes map[... method OnChange (line 63) | func (c *customChangeListener) OnChange(changeEvent *storage.ChangeEve... method OnNewestChange (line 72) | func (c *customChangeListener) OnNewestChange(_ *storage.FullChangeEve... function newWatcher (line 74) | func newWatcher(a *apollo) (config.Watcher, error) { FILE: contrib/config/apollo/watcher_test.go function Test_onChange (line 12) | func Test_onChange(t *testing.T) { FILE: contrib/config/consul/config.go type Option (line 15) | type Option type options (line 17) | type options struct function WithContext (line 23) | func WithContext(ctx context.Context) Option { function WithPath (line 30) | func WithPath(p string) Option { type source (line 36) | type source struct method Load (line 62) | func (s *source) Load() ([]*config.KeyValue, error) { method Watch (line 88) | func (s *source) Watch() (config.Watcher, error) { function New (line 41) | func New(client *api.Client, opts ...Option) (config.Source, error) { FILE: contrib/config/consul/config_test.go constant testPath (line 13) | testPath = "kratos/test/config" constant testKey (line 15) | testKey = "kratos/test/config/key" function TestConfig (line 17) | func TestConfig(t *testing.T) { function TestExtToFormat (line 68) | func TestExtToFormat(t *testing.T) { function Test_source_Watch (line 106) | func Test_source_Watch(t *testing.T) { function Test_source_Load (line 188) | func Test_source_Load(t *testing.T) { FILE: contrib/config/consul/watcher.go type watcher (line 14) | type watcher struct method handle (line 23) | func (w *watcher) handle(_ uint64, data any) { method Next (line 90) | func (w *watcher) Next() ([]*config.KeyValue, error) { method Stop (line 99) | func (w *watcher) Stop() error { function newWatcher (line 61) | func newWatcher(s *source) (*watcher, error) { FILE: contrib/config/etcd/config.go type Option (line 15) | type Option type options (line 17) | type options struct function WithContext (line 24) | func WithContext(ctx context.Context) Option { function WithPath (line 31) | func WithPath(p string) Option { function WithPrefix (line 38) | func WithPrefix(prefix bool) Option { type source (line 44) | type source struct method Load (line 71) | func (s *source) Load() ([]*config.KeyValue, error) { method Watch (line 94) | func (s *source) Watch() (config.Watcher, error) { function New (line 49) | func New(client *clientv3.Client, opts ...Option) (config.Source, error) { FILE: contrib/config/etcd/config_test.go constant testKey (line 13) | testKey = "/kratos/test/config" function TestConfig (line 15) | func TestConfig(t *testing.T) { function TestExtToFormat (line 70) | func TestExtToFormat(t *testing.T) { function TestEtcdWithPath (line 113) | func TestEtcdWithPath(t *testing.T) { function TestEtcdWithPrefix (line 142) | func TestEtcdWithPrefix(t *testing.T) { FILE: contrib/config/etcd/watcher.go type watcher (line 11) | type watcher struct method Next (line 36) | func (w *watcher) Next() ([]*config.KeyValue, error) { method Stop (line 48) | func (w *watcher) Stop() error { function newWatcher (line 19) | func newWatcher(s *source) *watcher { FILE: contrib/config/kubernetes/config.go type Option (line 20) | type Option type options (line 22) | type options struct function Namespace (line 36) | func Namespace(ns string) Option { function LabelSelector (line 43) | func LabelSelector(label string) Option { function FieldSelector (line 50) | func FieldSelector(field string) Option { function KubeConfig (line 57) | func KubeConfig(config string) Option { function Master (line 64) | func Master(master string) Option { type kube (line 70) | type kube struct method init (line 86) | func (k *kube) init() (err error) { method load (line 103) | func (k *kube) load() (kvs []*config.KeyValue, err error) { method configMap (line 120) | func (k *kube) configMap(cm v1.ConfigMap) (kvs []*config.KeyValue) { method Load (line 133) | func (k *kube) Load() ([]*config.KeyValue, error) { method Watch (line 143) | func (k *kube) Watch() (config.Watcher, error) { function NewSource (line 76) | func NewSource(opts ...Option) config.Source { FILE: contrib/config/kubernetes/config_test.go constant testKey (line 22) | testKey = "test_config.json" constant namespace (line 23) | namespace = "default" constant name (line 24) | name = "test" function TestSource (line 38) | func TestSource(t *testing.T) { function ExampleNewSource (line 54) | func ExampleNewSource() { function TestConfig (line 70) | func TestConfig(t *testing.T) { function TestExtToFormat (line 147) | func TestExtToFormat(t *testing.T) { FILE: contrib/config/kubernetes/watcher.go type watcher (line 14) | type watcher struct method Next (line 33) | func (w *watcher) Next() ([]*config.KeyValue, error) { method Stop (line 58) | func (w *watcher) Stop() error { function newWatcher (line 19) | func newWatcher(k *kube) (config.Watcher, error) { FILE: contrib/config/kubernetes/watcher_test.go function TestKube (line 15) | func TestKube(t *testing.T) { FILE: contrib/config/nacos/config.go type Option (line 14) | type Option type options (line 16) | type options struct function WithGroup (line 22) | func WithGroup(group string) Option { function WithDataID (line 29) | func WithDataID(dataID string) Option { type Config (line 35) | type Config struct method Load (line 48) | func (c *Config) Load() ([]*config.KeyValue, error) { method Watch (line 66) | func (c *Config) Watch() (config.Watcher, error) { function NewConfigSource (line 40) | func NewConfigSource(client config_client.IConfigClient, opts ...Option)... FILE: contrib/config/nacos/config_test.go function TestConfig_Load (line 15) | func TestConfig_Load(t *testing.T) { function TestConfig_Watch (line 125) | func TestConfig_Watch(t *testing.T) { FILE: contrib/config/nacos/watcher.go type Watcher (line 13) | type Watcher struct method Next (line 39) | func (w *Watcher) Next() ([]*config.KeyValue, error) { method Close (line 55) | func (w *Watcher) Close() error { method Stop (line 64) | func (w *Watcher) Stop() error { type cancelListenConfigFunc (line 23) | type cancelListenConfigFunc function newWatcher (line 25) | func newWatcher(ctx context.Context, dataID string, group string, cancel... FILE: contrib/config/polaris/config.go type Option (line 15) | type Option type options (line 17) | type options struct function WithNamespace (line 25) | func WithNamespace(namespace string) Option { function WithFileGroup (line 32) | func WithFileGroup(fileGroup string) Option { function WithFileName (line 39) | func WithFileName(fileName string) Option { type source (line 45) | type source struct method Load (line 76) | func (s *source) Load() ([]*config.KeyValue, error) { method Watch (line 98) | func (s *source) Watch() (config.Watcher, error) { function New (line 50) | func New(client polaris.ConfigAPI, opts ...Option) (config.Source, error) { FILE: contrib/config/polaris/watcher.go type Watcher (line 15) | type Watcher struct method Next (line 61) | func (w *Watcher) Next() ([]*config.KeyValue, error) { method Stop (line 73) | func (w *Watcher) Stop() error { type eventChan (line 20) | type eventChan struct function getFullPath (line 27) | func getFullPath(namespace string, fileGroup string, fileName string) st... function receive (line 31) | func receive(event model.ConfigFileChangeEvent) { function newWatcher (line 44) | func newWatcher(configFile polaris.ConfigFile) *Watcher { FILE: contrib/encoding/msgpack/msgpack.go constant Name (line 10) | Name = "msgpack" function init (line 12) | func init() { type codec (line 17) | type codec struct method Marshal (line 19) | func (codec) Marshal(v any) ([]byte, error) { method Unmarshal (line 23) | func (codec) Unmarshal(data []byte, v any) error { method Name (line 27) | func (codec) Name() string { FILE: contrib/encoding/msgpack/msgpack_test.go type loginRequest (line 8) | type loginRequest struct type testModel (line 13) | type testModel struct function TestName (line 18) | func TestName(t *testing.T) { function TestCodec (line 25) | func TestCodec(t *testing.T) { FILE: contrib/errortracker/sentry/sentry.go type ctxKey (line 20) | type ctxKey struct type Option (line 22) | type Option type options (line 24) | type options struct function WithRepanic (line 32) | func WithRepanic(repanic bool) Option { function WithWaitForDelivery (line 39) | func WithWaitForDelivery(waitForDelivery bool) Option { function WithTimeout (line 46) | func WithTimeout(timeout time.Duration) Option { function WithTags (line 53) | func WithTags(kvs map[string]any) Option { function Server (line 60) | func Server(opts ...Option) middleware.Middleware { function recoverWithSentry (line 109) | func recoverWithSentry(ctx context.Context, opts options, hub *sentry.Hu... function isBrokenPipeError (line 126) | func isBrokenPipeError(err any) bool { function GetHubFromContext (line 140) | func GetHubFromContext(ctx context.Context) *sentry.Hub { FILE: contrib/errortracker/sentry/sentry_test.go function TestWithTags (line 8) | func TestWithTags(t *testing.T) { function TestWithRepanic (line 21) | func TestWithRepanic(t *testing.T) { function TestWithWaitForDelivery (line 31) | func TestWithWaitForDelivery(t *testing.T) { function TestWithTimeout (line 41) | func TestWithTimeout(t *testing.T) { FILE: contrib/log/aliyun/aliyun.go type Logger (line 17) | type Logger interface type aliyunLog (line 24) | type aliyunLog struct method GetProducer (line 29) | func (a *aliyunLog) GetProducer() *producer.Producer { method Close (line 80) | func (a *aliyunLog) Close() error { method Log (line 84) | func (a *aliyunLog) Log(level log.Level, keyvals ...any) error { type options (line 33) | type options struct function defaultOptions (line 41) | func defaultOptions() *options { function WithEndpoint (line 48) | func WithEndpoint(endpoint string) Option { function WithProject (line 54) | func WithProject(project string) Option { function WithLogstore (line 60) | func WithLogstore(logstore string) Option { function WithAccessKey (line 66) | func WithAccessKey(ak string) Option { function WithAccessSecret (line 72) | func WithAccessSecret(as string) Option { type Option (line 78) | type Option function NewAliyunLog (line 106) | func NewAliyunLog(options ...Option) (Logger, error) { function newString (line 129) | func newString(s string) *string { function toString (line 134) | func toString(v any) string { FILE: contrib/log/aliyun/aliyun_test.go function TestWithEndpoint (line 11) | func TestWithEndpoint(t *testing.T) { function TestWithProject (line 21) | func TestWithProject(t *testing.T) { function TestWithLogstore (line 31) | func TestWithLogstore(t *testing.T) { function TestWithAccessKey (line 41) | func TestWithAccessKey(t *testing.T) { function TestWithAccessSecret (line 51) | func TestWithAccessSecret(t *testing.T) { function TestLogger (line 61) | func TestLogger(t *testing.T) { function TestLog (line 77) | func TestLog(t *testing.T) { function TestNewString (line 111) | func TestNewString(t *testing.T) { function TestToString (line 118) | func TestToString(t *testing.T) { FILE: contrib/log/fluent/fluent.go type Option (line 18) | type Option type options (line 20) | type options struct function WithTimeout (line 33) | func WithTimeout(timeout time.Duration) Option { function WithWriteTimeout (line 40) | func WithWriteTimeout(writeTimeout time.Duration) Option { function WithBufferLimit (line 47) | func WithBufferLimit(bufferLimit int) Option { function WithRetryWait (line 54) | func WithRetryWait(retryWait int) Option { function WithMaxRetry (line 61) | func WithMaxRetry(maxRetry int) Option { function WithMaxRetryWait (line 68) | func WithMaxRetryWait(maxRetryWait int) Option { function WithTagPrefix (line 75) | func WithTagPrefix(tagPrefix string) Option { function WithAsync (line 82) | func WithAsync(async bool) Option { function WithForceStopAsyncSend (line 89) | func WithForceStopAsyncSend(forceStopAsyncSend bool) Option { type Logger (line 96) | type Logger struct method Log (line 154) | func (l *Logger) Log(level log.Level, keyvals ...any) error { method Close (line 175) | func (l *Logger) Close() error { function NewLogger (line 106) | func NewLogger(addr string, opts ...Option) (*Logger, error) { FILE: contrib/log/fluent/fluent_test.go function TestMain (line 13) | func TestMain(m *testing.M) { function TestWithTimeout (line 38) | func TestWithTimeout(t *testing.T) { function TestWithWriteTimeout (line 48) | func TestWithWriteTimeout(t *testing.T) { function TestWithBufferLimit (line 58) | func TestWithBufferLimit(t *testing.T) { function TestWithRetryWait (line 68) | func TestWithRetryWait(t *testing.T) { function TestWithMaxRetry (line 78) | func TestWithMaxRetry(t *testing.T) { function TestWithMaxRetryWait (line 88) | func TestWithMaxRetryWait(t *testing.T) { function TestWithTagPrefix (line 98) | func TestWithTagPrefix(t *testing.T) { function TestWithAsync (line 108) | func TestWithAsync(t *testing.T) { function TestWithForceStopAsyncSend (line 118) | func TestWithForceStopAsyncSend(t *testing.T) { function TestLogger (line 128) | func TestLogger(t *testing.T) { function TestLoggerWithOpt (line 142) | func TestLoggerWithOpt(t *testing.T) { function TestLoggerError (line 157) | func TestLoggerError(t *testing.T) { function BenchmarkLoggerPrint (line 174) | func BenchmarkLoggerPrint(b *testing.B) { function BenchmarkLoggerHelperV (line 189) | func BenchmarkLoggerHelperV(b *testing.B) { function BenchmarkLoggerHelperInfo (line 203) | func BenchmarkLoggerHelperInfo(b *testing.B) { function BenchmarkLoggerHelperInfof (line 218) | func BenchmarkLoggerHelperInfof(b *testing.B) { function BenchmarkLoggerHelperInfow (line 233) | func BenchmarkLoggerHelperInfow(b *testing.B) { FILE: contrib/log/logrus/logrus.go type Logger (line 11) | type Logger struct method Log (line 21) | func (l *Logger) Log(level log.Level, keyvals ...any) (err error) { function NewLogger (line 15) | func NewLogger(logger *logrus.Logger) log.Logger { FILE: contrib/log/logrus/logrus_test.go function TestLoggerLog (line 13) | func TestLoggerLog(t *testing.T) { FILE: contrib/log/tencent/tencent.go type Logger (line 15) | type Logger interface type tencentLog (line 22) | type tencentLog struct method GetProducer (line 27) | func (log *tencentLog) GetProducer() *cls.AsyncProducerClient { method Close (line 68) | func (log *tencentLog) Close() error { method Log (line 72) | func (log *tencentLog) Log(level log.Level, keyvals ...any) error { type options (line 31) | type options struct function defaultOptions (line 38) | func defaultOptions() *options { function WithEndpoint (line 42) | func WithEndpoint(endpoint string) Option { function WithTopicID (line 48) | func WithTopicID(topicID string) Option { function WithAccessKey (line 54) | func WithAccessKey(ak string) Option { function WithAccessSecret (line 60) | func WithAccessSecret(as string) Option { type Option (line 66) | type Option function NewLogger (line 93) | func NewLogger(options ...Option) (Logger, error) { function newString (line 113) | func newString(s string) *string { function toString (line 118) | func toString(v any) string { FILE: contrib/log/tencent/tencent_test.go function TestWithEndpoint (line 11) | func TestWithEndpoint(t *testing.T) { function TestWithTopicId (line 21) | func TestWithTopicId(t *testing.T) { function TestWithAccessKey (line 31) | func TestWithAccessKey(t *testing.T) { function TestWithAccessSecret (line 41) | func TestWithAccessSecret(t *testing.T) { function TestTestLogger (line 51) | func TestTestLogger(t *testing.T) { function TestLog (line 72) | func TestLog(t *testing.T) { function TestNewString (line 107) | func TestNewString(t *testing.T) { function TestToString (line 114) | func TestToString(t *testing.T) { FILE: contrib/log/zap/zap.go type Logger (line 14) | type Logger struct method Log (line 35) | func (l *Logger) Log(level log.Level, keyvals ...any) error { method Sync (line 74) | func (l *Logger) Sync() error { method Close (line 78) | func (l *Logger) Close() error { type Option (line 19) | type Option function WithMessageKey (line 22) | func WithMessageKey(key string) Option { function NewLogger (line 28) | func NewLogger(zlog *zap.Logger) *Logger { FILE: contrib/log/zap/zap_test.go type testWriteSyncer (line 12) | type testWriteSyncer struct method Write (line 16) | func (x *testWriteSyncer) Write(p []byte) (n int, err error) { method Sync (line 21) | func (x *testWriteSyncer) Sync() error { function TestLogger (line 25) | func TestLogger(t *testing.T) { FILE: contrib/log/zerolog/zerolog.go type Logger (line 11) | type Logger struct method Log (line 21) | func (l *Logger) Log(level log.Level, keyvals ...any) (err error) { function NewLogger (line 15) | func NewLogger(logger *zerolog.Logger) log.Logger { FILE: contrib/log/zerolog/zerolog_test.go type testWriteSyncer (line 11) | type testWriteSyncer struct method Write (line 15) | func (x *testWriteSyncer) Write(p []byte) (n int, err error) { function TestLogger (line 20) | func TestLogger(t *testing.T) { FILE: contrib/middleware/validate/internal/testdata/test.pb.go constant _ (line 21) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 23) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type Legacy (line 26) | type Legacy struct method Reset (line 34) | func (x *Legacy) Reset() { method String (line 41) | func (x *Legacy) String() string { method ProtoMessage (line 45) | func (*Legacy) ProtoMessage() {} method ProtoReflect (line 47) | func (x *Legacy) ProtoReflect() protoreflect.Message { method Descriptor (line 60) | func (*Legacy) Descriptor() ([]byte, []int) { method GetName (line 64) | func (x *Legacy) GetName() string { method GetAge (line 71) | func (x *Legacy) GetAge() int32 { type Mixed (line 78) | type Mixed struct method Reset (line 86) | func (x *Mixed) Reset() { method String (line 93) | func (x *Mixed) String() string { method ProtoMessage (line 97) | func (*Mixed) ProtoMessage() {} method ProtoReflect (line 99) | func (x *Mixed) ProtoReflect() protoreflect.Message { method Descriptor (line 112) | func (*Mixed) Descriptor() ([]byte, []int) { method GetName (line 116) | func (x *Mixed) GetName() string { method GetAge (line 123) | func (x *Mixed) GetAge() int32 { type Modern (line 130) | type Modern struct method Reset (line 138) | func (x *Modern) Reset() { method String (line 145) | func (x *Modern) String() string { method ProtoMessage (line 149) | func (*Modern) ProtoMessage() {} method ProtoReflect (line 151) | func (x *Modern) ProtoReflect() protoreflect.Message { method Descriptor (line 164) | func (*Modern) Descriptor() ([]byte, []int) { method GetName (line 168) | func (x *Modern) GetName() string { method GetAge (line 175) | func (x *Modern) GetAge() int32 { function file_test_proto_rawDescGZIP (line 215) | func file_test_proto_rawDescGZIP() []byte { function init (line 236) | func init() { file_test_proto_init() } function file_test_proto_init (line 237) | func file_test_proto_init() { FILE: contrib/middleware/validate/internal/testdata/test.pb.validate.go method Validate (line 41) | func (m *Legacy) Validate() error { method ValidateAll (line 48) | func (m *Legacy) ValidateAll() error { method validate (line 52) | func (m *Legacy) validate(all bool) error { type LegacyMultiError (line 90) | type LegacyMultiError method Error (line 93) | func (m LegacyMultiError) Error() string { method AllErrors (line 102) | func (m LegacyMultiError) AllErrors() []error { return m } type LegacyValidationError (line 106) | type LegacyValidationError struct method Field (line 114) | func (e LegacyValidationError) Field() string { return e.field } method Reason (line 117) | func (e LegacyValidationError) Reason() string { return e.reason } method Cause (line 120) | func (e LegacyValidationError) Cause() error { return e.cause } method Key (line 123) | func (e LegacyValidationError) Key() bool { return e.key } method ErrorName (line 126) | func (e LegacyValidationError) ErrorName() string { return "LegacyVali... method Error (line 129) | func (e LegacyValidationError) Error() string { method Validate (line 161) | func (m *Mixed) Validate() error { method ValidateAll (line 168) | func (m *Mixed) ValidateAll() error { method validate (line 172) | func (m *Mixed) validate(all bool) error { type MixedMultiError (line 201) | type MixedMultiError method Error (line 204) | func (m MixedMultiError) Error() string { method AllErrors (line 213) | func (m MixedMultiError) AllErrors() []error { return m } type MixedValidationError (line 217) | type MixedValidationError struct method Field (line 225) | func (e MixedValidationError) Field() string { return e.field } method Reason (line 228) | func (e MixedValidationError) Reason() string { return e.reason } method Cause (line 231) | func (e MixedValidationError) Cause() error { return e.cause } method Key (line 234) | func (e MixedValidationError) Key() bool { return e.key } method ErrorName (line 237) | func (e MixedValidationError) ErrorName() string { return "MixedValida... method Error (line 240) | func (e MixedValidationError) Error() string { method Validate (line 272) | func (m *Modern) Validate() error { method ValidateAll (line 279) | func (m *Modern) ValidateAll() error { method validate (line 283) | func (m *Modern) validate(all bool) error { type ModernMultiError (line 303) | type ModernMultiError method Error (line 306) | func (m ModernMultiError) Error() string { method AllErrors (line 315) | func (m ModernMultiError) AllErrors() []error { return m } type ModernValidationError (line 319) | type ModernValidationError struct method Field (line 327) | func (e ModernValidationError) Field() string { return e.field } method Reason (line 330) | func (e ModernValidationError) Reason() string { return e.reason } method Cause (line 333) | func (e ModernValidationError) Cause() error { return e.cause } method Key (line 336) | func (e ModernValidationError) Key() bool { return e.key } method ErrorName (line 339) | func (e ModernValidationError) ErrorName() string { return "ModernVali... method Error (line 342) | func (e ModernValidationError) Error() string { FILE: contrib/middleware/validate/validate.go type validator (line 13) | type validator interface function ProtoValidate (line 18) | func ProtoValidate() middleware.Middleware { FILE: contrib/middleware/validate/validate_test.go type testcase (line 14) | type testcase struct function TestTable (line 20) | func TestTable(t *testing.T) { FILE: contrib/opensergo/opensergo.go type Option (line 24) | type Option function WithEndpoint (line 26) | func WithEndpoint(endpoint string) Option { type options (line 32) | type options struct method ParseJSON (line 36) | func (o *options) ParseJSON(data []byte) error { type OpenSergo (line 40) | type OpenSergo struct method ReportMetadata (line 78) | func (s *OpenSergo) ReportMetadata(ctx context.Context, app kratos.App... function New (line 44) | func New(opts ...Option) (*OpenSergo, error) { function listDescriptors (line 118) | func listDescriptors() (services []*v1.ServiceDescriptor, types []*v1.Ty... function HTTPPatternInfo (line 187) | func HTTPPatternInfo(pattern any) (method string, path string) { FILE: contrib/opensergo/opensergo_test.go type testMetadataServiceServer (line 22) | type testMetadataServiceServer struct method ReportMetadata (line 26) | func (m *testMetadataServiceServer) ReportMetadata(_ context.Context, ... type testAppInfo (line 30) | type testAppInfo struct method ID (line 38) | func (t testAppInfo) ID() string { method Name (line 42) | func (t testAppInfo) Name() string { method Version (line 46) | func (t testAppInfo) Version() string { method Metadata (line 50) | func (t testAppInfo) Metadata() map[string]string { method Endpoint (line 54) | func (t testAppInfo) Endpoint() []string { function TestWithEndpoint (line 58) | func TestWithEndpoint(t *testing.T) { function TestOptionsParseJSON (line 67) | func TestOptionsParseJSON(t *testing.T) { function TestListDescriptors (line 80) | func TestListDescriptors(t *testing.T) { function TestHTTPPatternInfo (line 184) | func TestHTTPPatternInfo(t *testing.T) { function TestOpenSergo (line 269) | func TestOpenSergo(t *testing.T) { FILE: contrib/polaris/config.go type ConfigOption (line 16) | type ConfigOption type configOptions (line 18) | type configOptions struct function WithConfigFile (line 25) | func WithConfigFile(file ...File) ConfigOption { type File (line 31) | type File struct type source (line 36) | type source struct method Load (line 42) | func (s *source) Load() ([]*config.KeyValue, error) { method Watch (line 60) | func (s *source) Watch() (config.Watcher, error) { type ConfigWatcher (line 64) | type ConfigWatcher struct method Next (line 97) | func (w *ConfigWatcher) Next() ([]*config.KeyValue, error) { method Stop (line 117) | func (w *ConfigWatcher) Stop() error { function receive (line 69) | func receive(event chan model.ConfigFileChangeEvent) func(m model.Config... function newConfigWatcher (line 80) | func newConfigWatcher(configFile []polaris.ConfigFile) *ConfigWatcher { FILE: contrib/polaris/config_test.go function makeJSONRequest (line 28) | func makeJSONRequest(uri string, data string, method string, headers map... type commonRes (line 46) | type commonRes struct type LoginRes (line 50) | type LoginRes struct type configClient (line 57) | type configClient struct method createConfigFile (line 91) | func (client *configClient) createConfigFile(name string) error { method updateConfigFile (line 121) | func (client *configClient) updateConfigFile(name string) error { method deleteConfigFile (line 150) | func (client *configClient) deleteConfigFile(name string) error { method publishConfigFile (line 173) | func (client *configClient) publishConfigFile(name string) error { function newConfigClient (line 61) | func newConfigClient() (*configClient, error) { function getToken (line 71) | func getToken(testCenterURL string) (string, error) { function TestConfig (line 200) | func TestConfig(t *testing.T) { function TestExtToFormat (line 272) | func TestExtToFormat(t *testing.T) { function TestGetMultipleConfig (line 322) | func TestGetMultipleConfig(t *testing.T) { FILE: contrib/polaris/limiter.go type LimiterOption (line 14) | type LimiterOption type limiterOptions (line 17) | type limiterOptions struct function WithLimiterNamespace (line 37) | func WithLimiterNamespace(namespace string) LimiterOption { function WithLimiterService (line 44) | func WithLimiterService(service string) LimiterOption { function WithLimiterTimeout (line 51) | func WithLimiterTimeout(timeout time.Duration) LimiterOption { function WithLimiterRetryCount (line 58) | func WithLimiterRetryCount(retryCount int) LimiterOption { function WithLimiterToken (line 65) | func WithLimiterToken(token uint32) LimiterOption { type Limiter (line 71) | type Limiter struct method Allow (line 90) | func (l *Limiter) Allow(method string, argument ...model.Argument) (ra... function buildRequest (line 79) | func buildRequest(opts limiterOptions) polaris.QuotaRequest { FILE: contrib/polaris/polaris.go type Polaris (line 12) | type Polaris struct method Config (line 55) | func (p *Polaris) Config(opts ...ConfigOption) (config.Source, error) { method Registry (line 74) | func (p *Polaris) Registry(opts ...RegistryOption) (r *Registry) { method Limiter (line 89) | func (p *Polaris) Limiter(opts ...LimiterOption) (r Limiter) { type Option (line 23) | type Option function WithNamespace (line 26) | func WithNamespace(ns string) Option { function WithService (line 33) | func WithService(service string) Option { function New (line 40) | func New(sdk api.SDKContext, opts ...Option) Polaris { FILE: contrib/polaris/ratelimit.go function Ratelimit (line 23) | func Ratelimit(l Limiter) middleware.Middleware { FILE: contrib/polaris/registry.go type registryOptions (line 22) | type registryOptions struct type RegistryOption (line 53) | type RegistryOption type Registry (line 56) | type Registry struct method Register (line 98) | func (r *Registry) Register(_ context.Context, instance *registry.Serv... method Deregister (line 157) | func (r *Registry) Deregister(_ context.Context, serviceInstance *regi... method GetService (line 198) | func (r *Registry) GetService(_ context.Context, serviceName string) (... method Watch (line 231) | func (r *Registry) Watch(ctx context.Context, serviceName string) (reg... function WithRegistryServiceToken (line 63) | func WithRegistryServiceToken(serviceToken string) RegistryOption { function WithRegistryWeight (line 68) | func WithRegistryWeight(weight int) RegistryOption { function WithRegistryHealthy (line 73) | func WithRegistryHealthy(healthy bool) RegistryOption { function WithRegistryIsolate (line 78) | func WithRegistryIsolate(isolate bool) RegistryOption { function WithRegistryTTL (line 83) | func WithRegistryTTL(TTL int) RegistryOption { function WithRegistryTimeout (line 88) | func WithRegistryTimeout(timeout time.Duration) RegistryOption { function WithRegistryRetryCount (line 93) | func WithRegistryRetryCount(retryCount int) RegistryOption { function merge (line 218) | func merge(instances []model.Instance) map[string][]model.Instance { type Watcher (line 235) | type Watcher struct method Next (line 274) | func (w *Watcher) Next() ([]*registry.ServiceInstance, error) { method Stop (line 353) | func (w *Watcher) Stop() error { function newWatcher (line 246) | func newWatcher(ctx context.Context, namespace string, serviceName strin... function instancesToServiceInstances (line 358) | func instancesToServiceInstances(instances map[string][]model.Instance) ... function mapClone (line 384) | func mapClone[M ~map[K]V, K comparable, V any](m M) M { FILE: contrib/polaris/registry_test.go function TestRegistry (line 15) | func TestRegistry(t *testing.T) { FILE: contrib/polaris/router.go type router (line 23) | type router struct type RouterOption (line 27) | type RouterOption function WithRouterService (line 30) | func WithRouterService(service string) RouterOption { method NodeFilter (line 37) | func (p *Polaris) NodeFilter(opts ...RouterOption) selector.NodeFilter { function buildPolarisInstance (line 108) | func buildPolarisInstance(namespace string, nodes []selector.Node) *pb.S... FILE: contrib/polaris/router_test.go function TestRouter (line 18) | func TestRouter(t *testing.T) { type mockApp (line 185) | type mockApp struct method ID (line 187) | func (m mockApp) ID() string { method Name (line 191) | func (m mockApp) Name() string { method Version (line 195) | func (m mockApp) Version() string { method Metadata (line 199) | func (m mockApp) Metadata() map[string]string { method Endpoint (line 203) | func (m mockApp) Endpoint() []string { FILE: contrib/registry/consul/client.go type Datacenter (line 21) | type Datacenter constant SingleDatacenter (line 24) | SingleDatacenter Datacenter = "SINGLE" constant MultiDatacenter (line 25) | MultiDatacenter Datacenter = "MULTI" type Client (line 29) | type Client struct method Service (line 93) | func (c *Client) Service(ctx context.Context, service string, index ui... method multiDCService (line 116) | func (c *Client) multiDCService(ctx context.Context, service string, i... method singleDCEntries (line 152) | func (c *Client) singleDCEntries(service, tag string, passingOnly bool... method Register (line 157) | func (c *Client) Register(ctx context.Context, svc *registry.ServiceIn... method Deregister (line 294) | func (c *Client) Deregister(ctx context.Context, serviceID string) err... type canceler (line 51) | type canceler struct function defaultResolver (line 57) | func defaultResolver(_ context.Context, entries []*api.ServiceEntry) []*... type ServiceResolver (line 90) | type ServiceResolver function sleepCtx (line 282) | func sleepCtx(ctx context.Context, d time.Duration) error { FILE: contrib/registry/consul/registry.go type Option (line 21) | type Option function WithHealthCheck (line 24) | func WithHealthCheck(enable bool) Option { function WithTimeout (line 31) | func WithTimeout(timeout time.Duration) Option { function WithDatacenter (line 38) | func WithDatacenter(dc Datacenter) Option { function WithHeartbeat (line 45) | func WithHeartbeat(enable bool) Option { function WithServiceResolver (line 54) | func WithServiceResolver(fn ServiceResolver) Option { function WithHealthCheckInterval (line 63) | func WithHealthCheckInterval(interval int) Option { function WithDeregisterCriticalServiceAfter (line 72) | func WithDeregisterCriticalServiceAfter(interval int) Option { function WithServiceCheck (line 81) | func WithServiceCheck(checks ...*api.AgentServiceCheck) Option { function WithTags (line 90) | func WithTags(tags []string) Option { type Config (line 99) | type Config struct type Registry (line 104) | type Registry struct method Register (line 135) | func (r *Registry) Register(ctx context.Context, svc *registry.Service... method Deregister (line 140) | func (r *Registry) Deregister(ctx context.Context, svc *registry.Servi... method GetService (line 145) | func (r *Registry) GetService(ctx context.Context, name string) ([]*re... method ListServices (line 175) | func (r *Registry) ListServices() (allServices map[string][]*registry.... method Watch (line 192) | func (r *Registry) Watch(ctx context.Context, name string) (registry.W... method resolve (line 242) | func (r *Registry) resolve(ctx context.Context, ss *serviceSet) error { method tryDelete (line 288) | func (r *Registry) tryDelete(ss *serviceSet) bool { function New (line 113) | func New(apiClient *api.Client, opts ...Option) *Registry { FILE: contrib/registry/consul/registry_test.go function tcpServer (line 22) | func tcpServer(lis net.Listener) { function TestRegistry_Register (line 35) | func TestRegistry_Register(t *testing.T) { function TestRegistry_GetService (line 163) | func TestRegistry_GetService(t *testing.T) { function TestRegistry_Watch (line 308) | func TestRegistry_Watch(t *testing.T) { function TestRegistry_IdleAndWatch (line 449) | func TestRegistry_IdleAndWatch(t *testing.T) { function TestRegistry_IdleAndWatch2 (line 578) | func TestRegistry_IdleAndWatch2(t *testing.T) { function TestRegistry_ExitOldResolverAndReWatch (line 692) | func TestRegistry_ExitOldResolverAndReWatch(t *testing.T) { function TestRegistry_ShareServiceSet (line 828) | func TestRegistry_ShareServiceSet(t *testing.T) { function TestRegistry_MultiWatch (line 904) | func TestRegistry_MultiWatch(t *testing.T) { function getIntranetIP (line 1015) | func getIntranetIP() string { FILE: contrib/registry/consul/service.go type serviceSet (line 11) | type serviceSet struct method broadcast (line 24) | func (s *serviceSet) broadcast(ss []*registry.ServiceInstance) { method delete (line 36) | func (s *serviceSet) delete(w *watcher) { FILE: contrib/registry/consul/watcher.go type watcher (line 9) | type watcher struct method Next (line 18) | func (w *watcher) Next() (services []*registry.ServiceInstance, err er... method Stop (line 37) | func (w *watcher) Stop() error { FILE: contrib/registry/discovery/discovery.go type Discovery (line 19) | type Discovery struct method Close (line 80) | func (d *Discovery) Close() error { method selfProc (line 86) | func (d *Discovery) selfProc(resolver *Resolve, event <-chan struct{}) { method newSelf (line 100) | func (d *Discovery) newSelf(zones map[string][]*discoveryInstance) { method resolveBuild (line 137) | func (d *Discovery) resolveBuild(appID string) *Resolve { method serverProc (line 172) | func (d *Discovery) serverProc() { method pickNode (line 212) | func (d *Discovery) pickNode() string { method switchNode (line 220) | func (d *Discovery) switchNode() { method renew (line 225) | func (d *Discovery) renew(ctx context.Context, ins *discoveryInstance)... method cancel (line 268) | func (d *Discovery) cancel(ins *discoveryInstance) (err error) { method broadcast (line 306) | func (d *Discovery) broadcast(apps map[string]*disInstancesInfo) { method polls (line 340) | func (d *Discovery) polls(ctx context.Context) (apps map[string]*disIn... type appInfo (line 36) | type appInfo struct function New (line 44) | func New(c *Config) *Discovery { type Resolve (line 415) | type Resolve struct method Watch (line 422) | func (r *Resolve) Watch() <-chan struct{} { method fetch (line 427) | func (r *Resolve) fetch(_ context.Context) (ins *disInstancesInfo, ok ... method Close (line 449) | func (r *Resolve) Close() error { FILE: contrib/registry/discovery/discovery_helper.go constant _registerURL (line 22) | _registerURL = "http://%s/discovery/register" constant _cancelURL (line 24) | _cancelURL = "http://%s/discovery/cancel" constant _renewURL (line 25) | _renewURL = "http://%s/discovery/renew" constant _pollURL (line 26) | _pollURL = "http://%s/discovery/polls" constant _codeOK (line 29) | _codeOK = 0 constant _codeNotFound (line 30) | _codeNotFound = -404 constant _codeNotModified (line 31) | _codeNotModified = -304 constant _registerGap (line 35) | _registerGap = 30 * time.Second constant _statusUP (line 36) | _statusUP = "1" constant _discoveryAppID (line 37) | _discoveryAppID = "infra.discovery" type Config (line 41) | type Config struct function fixConfig (line 49) | func fixConfig(c *Config) error { type discoveryInstance (line 67) | type discoveryInstance struct constant _reservedInstanceIDKey (line 81) | _reservedInstanceIDKey = "kratos.v2.serviceinstance.id" function fromServerInstance (line 84) | func fromServerInstance(ins *registry.ServiceInstance, config *Config) *... function toServiceInstance (line 110) | func toServiceInstance(ins *discoveryInstance) *registry.ServiceInstance { type disInstancesInfo (line 139) | type disInstancesInfo struct type scheduler (line 146) | type scheduler struct type zoneStrategy (line 151) | type zoneStrategy struct type strategy (line 156) | type strategy struct constant _paramKeyRegion (line 161) | _paramKeyRegion = "region" constant _paramKeyZone (line 162) | _paramKeyZone = "zone" constant _paramKeyEnv (line 163) | _paramKeyEnv = "env" constant _paramKeyHostname (line 164) | _paramKeyHostname = "hostname" constant _paramKeyAppID (line 165) | _paramKeyAppID = "appid" constant _paramKeyAddrs (line 166) | _paramKeyAddrs = "addrs" constant _paramKeyVersion (line 167) | _paramKeyVersion = "version" constant _paramKeyStatus (line 168) | _paramKeyStatus = "status" constant _paramKeyMetadata (line 169) | _paramKeyMetadata = "metadata" function newParams (line 172) | func newParams(c *Config) url.Values { type discoveryCommonResp (line 185) | type discoveryCommonResp struct type discoveryPollsResp (line 190) | type discoveryPollsResp struct FILE: contrib/registry/discovery/impl_discover.go function filterInstancesByZone (line 13) | func filterInstancesByZone(ins *disInstancesInfo, zone string) []*regist... method GetService (line 30) | func (d *Discovery) GetService(ctx context.Context, serviceName string) ... method Watch (line 45) | func (d *Discovery) Watch(ctx context.Context, serviceName string) (regi... type watcher (line 53) | type watcher struct method Next (line 60) | func (w *watcher) Next() ([]*registry.ServiceInstance, error) { method Stop (line 86) | func (w *watcher) Stop() error { FILE: contrib/registry/discovery/impl_registrar.go method Register (line 16) | func (d *Discovery) Register(ctx context.Context, service *registry.Serv... method register (line 66) | func (d *Discovery) register(ctx context.Context, ins *discoveryInstance... method Deregister (line 125) | func (d *Discovery) Deregister(_ context.Context, service *registry.Serv... FILE: contrib/registry/etcd/registry.go type Option (line 20) | type Option type options (line 22) | type options struct function Context (line 30) | func Context(ctx context.Context) Option { function Namespace (line 35) | func Namespace(ns string) Option { function RegisterTTL (line 40) | func RegisterTTL(ttl time.Duration) Option { function MaxRetry (line 44) | func MaxRetry(num int) Option { type Registry (line 49) | type Registry struct method Register (line 86) | func (r *Registry) Register(ctx context.Context, service *registry.Ser... method registerKey (line 110) | func (r *Registry) registerKey(service *registry.ServiceInstance) stri... method Deregister (line 115) | func (r *Registry) Deregister(ctx context.Context, service *registry.S... method GetService (line 132) | func (r *Registry) GetService(ctx context.Context, name string) ([]*re... method serviceKey (line 152) | func (r *Registry) serviceKey(name string) string { method Watch (line 157) | func (r *Registry) Watch(ctx context.Context, name string) (registry.W... method registerWithKV (line 163) | func (r *Registry) registerWithKV(ctx context.Context, key string, val... method heartBeat (line 175) | func (r *Registry) heartBeat(ctx context.Context, leaseID clientv3.Lea... type serviceCancel (line 61) | type serviceCancel struct function New (line 67) | func New(client *clientv3.Client, opts ...Option) (r *Registry) { FILE: contrib/registry/etcd/registry_test.go function TestRegistry (line 16) | func TestRegistry(t *testing.T) { function TestHeartBeat (line 81) | func TestHeartBeat(t *testing.T) { FILE: contrib/registry/etcd/service.go function marshal (line 9) | func marshal(si *registry.ServiceInstance) (string, error) { function unmarshal (line 17) | func unmarshal(data []byte) (si *registry.ServiceInstance, err error) { FILE: contrib/registry/etcd/watcher.go type watcher (line 14) | type watcher struct method Next (line 44) | func (w *watcher) Next() ([]*registry.ServiceInstance, error) { method Stop (line 66) | func (w *watcher) Stop() error { method getInstance (line 71) | func (w *watcher) getInstance() ([]*registry.ServiceInstance, error) { method reWatch (line 90) | func (w *watcher) reWatch() error { function newWatcher (line 26) | func newWatcher(ctx context.Context, key, name string, client *clientv3.... FILE: contrib/registry/eureka/client.go constant statusUp (line 18) | statusUp = "UP" constant statusDown (line 19) | statusDown = "DOWN" constant statusOutOfService (line 20) | statusOutOfService = "OUT_OF_SERVICE" constant heartbeatRetry (line 21) | heartbeatRetry = 3 constant heartbeatTime (line 22) | heartbeatTime = 10 * time.Second constant httpTimeout (line 23) | httpTimeout = 3 * time.Second constant refreshTime (line 24) | refreshTime = 30 * time.Second type Endpoint (line 27) | type Endpoint struct type ApplicationsRootResponse (line 40) | type ApplicationsRootResponse struct type ApplicationsResponse (line 44) | type ApplicationsResponse struct type Application (line 50) | type Application struct type RequestInstance (line 55) | type RequestInstance struct type Instance (line 59) | type Instance struct type Port (line 75) | type Port struct type DataCenterInfo (line 80) | type DataCenterInfo struct type APIInterface (line 87) | type APIInterface interface type ClientOption (line 101) | type ClientOption function WithMaxRetry (line 103) | func WithMaxRetry(maxRetry int) ClientOption { function WithHeartbeatInterval (line 107) | func WithHeartbeatInterval(interval time.Duration) ClientOption { function WithClientContext (line 113) | func WithClientContext(ctx context.Context) ClientOption { function WithNamespace (line 117) | func WithNamespace(path string) ClientOption { type Client (line 121) | type Client struct method FetchApps (line 162) | func (e *Client) FetchApps(ctx context.Context) []Application { method FetchAppInstances (line 171) | func (e *Client) FetchAppInstances(ctx context.Context, appID string) ... method FetchAppUpInstances (line 176) | func (e *Client) FetchAppUpInstances(ctx context.Context, appID string... method FetchAppInstance (line 184) | func (e *Client) FetchAppInstance(ctx context.Context, appID string, i... method FetchInstance (line 189) | func (e *Client) FetchInstance(ctx context.Context, instanceID string)... method Out (line 194) | func (e *Client) Out(ctx context.Context, appID, instanceID string) er... method Down (line 198) | func (e *Client) Down(ctx context.Context, appID, instanceID string) e... method FetchAllUpInstances (line 202) | func (e *Client) FetchAllUpInstances(ctx context.Context) []Instance { method Register (line 206) | func (e *Client) Register(ctx context.Context, ep Endpoint) error { method Deregister (line 210) | func (e *Client) Deregister(ctx context.Context, appID, instanceID str... method registerEndpoint (line 218) | func (e *Client) registerEndpoint(ctx context.Context, ep Endpoint) er... method Heartbeat (line 253) | func (e *Client) Heartbeat(ep Endpoint) { method cancelHeartbeat (line 278) | func (e *Client) cancelHeartbeat(appID string) { method filterUp (line 286) | func (e *Client) filterUp(apps ...Application) (res []Instance) { method pickServer (line 298) | func (e *Client) pickServer(currentTimes int) string { method shuffle (line 302) | func (e *Client) shuffle() { method buildAPI (line 309) | func (e *Client) buildAPI(currentTimes int, params ...string) string { method request (line 318) | func (e *Client) request(ctx context.Context, method string, params []... method do (line 353) | func (e *Client) do(ctx context.Context, method string, params []strin... function NewClient (line 144) | func NewClient(urls []string, opts ...ClientOption) *Client { FILE: contrib/registry/eureka/eureka.go type subscriber (line 10) | type subscriber struct type API (line 15) | type API struct method refresh (line 39) | func (e *API) refresh(ctx context.Context) { method broadcast (line 52) | func (e *API) broadcast() { method cacheAllInstances (line 66) | func (e *API) cacheAllInstances() map[string][]Instance { method Register (line 76) | func (e *API) Register(ctx context.Context, serviceName string, endpoi... method Deregister (line 97) | func (e *API) Deregister(ctx context.Context, endpoints []Endpoint) er... method Subscribe (line 107) | func (e *API) Subscribe(serverName string, fn func()) error { method GetService (line 119) | func (e *API) GetService(ctx context.Context, serverName string) []Ins... method Unsubscribe (line 129) | func (e *API) Unsubscribe(serverName string) { method ToAppID (line 135) | func (e *API) ToAppID(serverName string) string { function NewAPI (line 23) | func NewAPI(ctx context.Context, client *Client, refreshInterval time.Du... FILE: contrib/registry/eureka/register.go type Option (line 18) | type Option function WithContext (line 21) | func WithContext(ctx context.Context) Option { function WithHeartbeat (line 25) | func WithHeartbeat(interval time.Duration) Option { function WithRefresh (line 29) | func WithRefresh(interval time.Duration) Option { function WithEurekaPath (line 33) | func WithEurekaPath(path string) Option { type Registry (line 37) | type Registry struct method Register (line 68) | func (r *Registry) Register(ctx context.Context, service *registry.Ser... method Deregister (line 73) | func (r *Registry) Deregister(ctx context.Context, service *registry.S... method GetService (line 78) | func (r *Registry) GetService(ctx context.Context, serviceName string)... method Watch (line 95) | func (r *Registry) Watch(ctx context.Context, serviceName string) (reg... method Endpoints (line 99) | func (r *Registry) Endpoints(service *registry.ServiceInstance) []Endp... function New (line 45) | func New(eurekaUrls []string, opts ...Option) (*Registry, error) { FILE: contrib/registry/eureka/register_test.go function TestRegistry (line 14) | func TestRegistry(_ *testing.T) { function do (line 38) | func do(r *Registry, s *registry.ServiceInstance) { function TestLock (line 95) | func TestLock(_ *testing.T) { FILE: contrib/registry/eureka/watcher.go type watcher (line 11) | type watcher struct method Next (line 36) | func (w *watcher) Next() (services []*registry.ServiceInstance, err er... method Stop (line 56) | func (w *watcher) Stop() error { function newWatch (line 19) | func newWatch(ctx context.Context, cli *API, serverName string) (*watche... FILE: contrib/registry/kubernetes/registry.go constant LabelsKeyServiceID (line 70) | LabelsKeyServiceID = "kratos-service-id" constant LabelsKeyServiceName (line 72) | LabelsKeyServiceName = "kratos-service-app" constant LabelsKeyServiceVersion (line 74) | LabelsKeyServiceVersion = "kratos-service-version" constant AnnotationsKeyMetadata (line 76) | AnnotationsKeyMetadata = "kratos-service-metadata" constant AnnotationsKeyProtocolMap (line 80) | AnnotationsKeyProtocolMap = "kratos-service-protocols" type Registry (line 85) | type Registry struct method Register (line 114) | func (s *Registry) Register(ctx context.Context, service *registry.Ser... method Deregister (line 158) | func (s *Registry) Deregister(ctx context.Context, _ *registry.Service... method GetService (line 165) | func (s *Registry) GetService(_ context.Context, name string) ([]*regi... method sendLatestInstances (line 186) | func (s *Registry) sendLatestInstances(ctx context.Context, name strin... method Watch (line 195) | func (s *Registry) Watch(ctx context.Context, name string) (registry.W... method Start (line 228) | func (s *Registry) Start() { method Close (line 237) | func (s *Registry) Close() { function NewRegistry (line 95) | func NewRegistry(clientSet *kubernetes.Clientset, namespace string) *Reg... constant ServiceAccountNamespacePath (line 248) | ServiceAccountNamespacePath = "/var/run/secrets/kubernetes.io/serviceacc... function LoadNamespace (line 253) | func LoadNamespace() string { function GetNamespace (line 262) | func GetNamespace() string { function GetPodName (line 267) | func GetPodName() string { type protocolMap (line 273) | type protocolMap method GetProtocol (line 275) | func (m protocolMap) GetProtocol(port int32) string { type Iterator (line 284) | type Iterator struct method Next (line 298) | func (iter *Iterator) Next() ([]*registry.ServiceInstance, error) { method Stop (line 308) | func (iter *Iterator) Stop() error { function NewIterator (line 290) | func NewIterator(channel chan []*registry.ServiceInstance, stopCh chan s... function marshal (line 319) | func marshal(in any) (string, error) { function unmarshal (line 323) | func unmarshal(data string, in any) error { function isEmptyObjectString (line 327) | func isEmptyObjectString(s string) bool { function getProtocolMapByEndpoints (line 335) | func getProtocolMapByEndpoints(endpoints []string) (protocolMap, error) { function getProtocolMapFromPod (line 347) | func getProtocolMapFromPod(pod *corev1.Pod) (protocolMap, error) { function getMetadataFromPod (line 358) | func getMetadataFromPod(pod *corev1.Pod) (map[string]string, error) { function getServiceInstanceFromPod (line 369) | func getServiceInstanceFromPod(pod *corev1.Pod) (*registry.ServiceInstan... type ErrorHandleResource (line 415) | type ErrorHandleResource struct method Error (line 422) | func (err *ErrorHandleResource) Error() string { FILE: contrib/registry/kubernetes/registry_test.go constant namespace (line 22) | namespace = "default" constant deployName (line 23) | deployName = "hello-deployment" constant podName (line 24) | podName = "hello" function getClientSet (line 68) | func getClientSet() (*kubernetes.Clientset, error) { function int32Ptr (line 86) | func int32Ptr(i int32) *int32 { return &i } function TestSetEnv (line 88) | func TestSetEnv(t *testing.T) { function TestRegistry (line 95) | func TestRegistry(t *testing.T) { FILE: contrib/registry/nacos/registry.go type options (line 27) | type options struct type Option (line 36) | type Option function WithPrefix (line 39) | func WithPrefix(prefix string) Option { function WithWeight (line 44) | func WithWeight(weight float64) Option { function WithCluster (line 49) | func WithCluster(cluster string) Option { function WithGroup (line 54) | func WithGroup(group string) Option { function WithDefaultKind (line 59) | func WithDefaultKind(kind string) Option { type Registry (line 64) | type Registry struct method Register (line 88) | func (r *Registry) Register(_ context.Context, si *registry.ServiceIns... method Deregister (line 143) | func (r *Registry) Deregister(_ context.Context, service *registry.Ser... method Watch (line 172) | func (r *Registry) Watch(ctx context.Context, serviceName string) (reg... method GetService (line 177) | func (r *Registry) GetService(_ context.Context, serviceName string) (... function New (line 70) | func New(cli naming_client.INamingClient, opts ...Option) (r *Registry) { FILE: contrib/registry/nacos/registry_test.go function TestRegistry_Register (line 20) | func TestRegistry_Register(t *testing.T) { function TestRegistry_Deregister (line 210) | func TestRegistry_Deregister(t *testing.T) { function TestRegistry_GetService (line 329) | func TestRegistry_GetService(t *testing.T) { function TestRegistry_Watch (line 443) | func TestRegistry_Watch(t *testing.T) { FILE: contrib/registry/nacos/watcher.go type watcher (line 17) | type watcher struct method Next (line 59) | func (w *watcher) Next() ([]*registry.ServiceInstance, error) { method Stop (line 90) | func (w *watcher) Stop() error { function newWatcher (line 29) | func newWatcher(ctx context.Context, cli naming_client.INamingClient, se... FILE: contrib/registry/polaris/registry.go constant _instanceIDSeparator (line 26) | _instanceIDSeparator = "-" type options (line 28) | type options struct type Option (line 65) | type Option type Registry (line 68) | type Registry struct method Register (line 161) | func (r *Registry) Register(_ context.Context, serviceInstance *regist... method Deregister (line 260) | func (r *Registry) Deregister(_ context.Context, serviceInstance *regi... method GetService (line 303) | func (r *Registry) GetService(_ context.Context, serviceName string) (... method Watch (line 323) | func (r *Registry) Watch(ctx context.Context, serviceName string) (reg... function WithNamespace (line 75) | func WithNamespace(namespace string) Option { function WithServiceToken (line 80) | func WithServiceToken(serviceToken string) Option { function WithProtocol (line 85) | func WithProtocol(protocol string) Option { function WithWeight (line 90) | func WithWeight(weight int) Option { function WithHealthy (line 95) | func WithHealthy(healthy bool) Option { function WithIsolate (line 100) | func WithIsolate(isolate bool) Option { function WithTTL (line 105) | func WithTTL(TTL int) Option { function WithTimeout (line 110) | func WithTimeout(timeout time.Duration) Option { function WithRetryCount (line 115) | func WithRetryCount(retryCount int) Option { function WithHeartbeat (line 120) | func WithHeartbeat(heartbeat bool) Option { function NewRegistry (line 124) | func NewRegistry(provider api.ProviderAPI, consumer api.ConsumerAPI, opt... function NewRegistryWithConfig (line 148) | func NewRegistryWithConfig(conf config.Configuration, opts ...Option) (r... type Watcher (line 327) | type Watcher struct method Next (line 365) | func (w *Watcher) Next() ([]*registry.ServiceInstance, error) { method Stop (line 414) | func (w *Watcher) Stop() error { function newWatcher (line 337) | func newWatcher(ctx context.Context, namespace string, serviceName strin... function instancesToServiceInstances (line 419) | func instancesToServiceInstances(instances []model.Instance) []*registry... function instanceToServiceInstance (line 429) | func instanceToServiceInstance(instance model.Instance) *registry.Servic... FILE: contrib/registry/servicecomb/registry.go function init (line 18) | func init() { constant appIDKey (line 38) | appIDKey = "appId" constant envKey (line 39) | envKey = "environment" constant envVar (line 40) | envVar = "CAS_ENVIRONMENT_ID" constant appIDVar (line 41) | appIDVar = "CAS_APPLICATION_NAME" constant frameWorkName (line 42) | frameWorkName = "kratos" constant frameWorkVersion (line 43) | frameWorkVersion = "v2" type RegistryClient (line 46) | type RegistryClient interface type Registry (line 57) | type Registry struct method GetService (line 68) | func (r *Registry) GetService(_ context.Context, serviceName string) (... method Watch (line 86) | func (r *Registry) Watch(ctx context.Context, serviceName string) (reg... method Register (line 90) | func (r *Registry) Register(_ context.Context, svcIns *registry.Servic... method Deregister (line 165) | func (r *Registry) Deregister(_ context.Context, svcIns *registry.Serv... function NewRegistry (line 61) | func NewRegistry(client RegistryClient) *Registry { FILE: contrib/registry/servicecomb/registry_test.go function init (line 16) | func init() { type mockClient (line 20) | type mockClient struct method WatchMicroService (line 22) | func (receiver *mockClient) WatchMicroService(_ string, _ func(*sc.Mic... method FindMicroServiceInstances (line 27) | func (receiver *mockClient) FindMicroServiceInstances(_, method RegisterService (line 36) | func (receiver *mockClient) RegisterService(_ *pb.MicroService) (strin... method RegisterMicroServiceInstance (line 40) | func (receiver *mockClient) RegisterMicroServiceInstance(_ *pb.MicroSe... method Heartbeat (line 44) | func (receiver *mockClient) Heartbeat(_, _ string) (bool, error) { method UnregisterMicroServiceInstance (line 48) | func (receiver *mockClient) UnregisterMicroServiceInstance(_, _ string... method GetMicroServiceID (line 52) | func (receiver *mockClient) GetMicroServiceID(_, _, _, _ string, _ ...... function TestRegistry (line 56) | func TestRegistry(t *testing.T) { function TestWatcher (line 94) | func TestWatcher(t *testing.T) { FILE: contrib/registry/servicecomb/watcher.go type Watcher (line 13) | type Watcher struct method Put (line 50) | func (w *Watcher) Put(svcIns *registry.ServiceInstance) { method Next (line 54) | func (w *Watcher) Next() ([]*registry.ServiceInstance, error) { method Stop (line 61) | func (w *Watcher) Stop() error { function newWatcher (line 18) | func newWatcher(_ context.Context, cli RegistryClient, serviceName strin... FILE: contrib/registry/zookeeper/register.go type Option (line 21) | type Option type options (line 23) | type options struct function WithRootPath (line 30) | func WithRootPath(path string) Option { function WithDigestACL (line 35) | func WithDigestACL(user string, password string) Option { type Registry (line 43) | type Registry struct method Register (line 63) | func (r *Registry) Register(_ context.Context, service *registry.Servi... method Deregister (line 87) | func (r *Registry) Deregister(ctx context.Context, service *registry.S... method GetService (line 104) | func (r *Registry) GetService(_ context.Context, serviceName string) (... method Watch (line 132) | func (r *Registry) Watch(ctx context.Context, serviceName string) (reg... method ensureName (line 138) | func (r *Registry) ensureName(path string, data []byte, flags int32) e... method reRegister (line 166) | func (r *Registry) reRegister(path string, data []byte) { function New (line 50) | func New(conn *zk.Conn, opts ...Option) *Registry { FILE: contrib/registry/zookeeper/register_test.go function TestRegistry_GetService (line 14) | func TestRegistry_GetService(t *testing.T) { function TestRegistry_Register (line 119) | func TestRegistry_Register(t *testing.T) { function TestRegistry_Deregister (line 215) | func TestRegistry_Deregister(t *testing.T) { function TestRegistry_Watch (line 286) | func TestRegistry_Watch(t *testing.T) { FILE: contrib/registry/zookeeper/service.go function marshal (line 9) | func marshal(si *registry.ServiceInstance) ([]byte, error) { function unmarshal (line 13) | func unmarshal(data []byte) (si *registry.ServiceInstance, err error) { FILE: contrib/registry/zookeeper/watcher.go type watcher (line 18) | type watcher struct method watch (line 38) | func (w *watcher) watch(ctx context.Context) { method Next (line 62) | func (w *watcher) Next() ([]*registry.ServiceInstance, error) { method Stop (line 81) | func (w *watcher) Stop() error { method getServices (line 86) | func (w *watcher) getServices() ([]*registry.ServiceInstance, error) { function newWatcher (line 31) | func newWatcher(ctx context.Context, prefix, serviceName string, conn *z... FILE: contrib/transport/mcp/server.go type MiddlewareFunc (line 22) | type MiddlewareFunc type ServerOption (line 25) | type ServerOption function Address (line 28) | func Address(addr string) ServerOption { function Endpoint (line 35) | func Endpoint(endpoint *url.URL) ServerOption { function Middleware (line 42) | func Middleware(m MiddlewareFunc) ServerOption { function SrvOptions (line 49) | func SrvOptions(opts ...server.ServerOption) ServerOption { function SSEOptions (line 56) | func SSEOptions(opts ...server.SSEOption) ServerOption { type Server (line 63) | type Server struct method ServeHTTP (line 90) | func (s *Server) ServeHTTP(res http.ResponseWriter, req *http.Request) { method Endpoint (line 97) | func (s *Server) Endpoint() (*url.URL, error) { method Start (line 105) | func (s *Server) Start(_ context.Context) error { method Stop (line 115) | func (s *Server) Stop(ctx context.Context) error { function NewServer (line 75) | func NewServer(name, version string, opts ...ServerOption) *Server { FILE: contrib/transport/mcp/server_test.go function TestServer (line 9) | func TestServer(t *testing.T) { FILE: encoding/encoding.go type Codec (line 10) | type Codec interface function RegisterCodec (line 25) | func RegisterCodec(codec Codec) { function GetCodec (line 40) | func GetCodec(contentSubtype string) Codec { FILE: encoding/encoding_test.go type codec (line 9) | type codec struct method Marshal (line 11) | func (c codec) Marshal(_ any) ([]byte, error) { method Unmarshal (line 15) | func (c codec) Unmarshal(_ []byte, _ any) error { method Name (line 19) | func (c codec) Name() string { type codec2 (line 24) | type codec2 struct method Marshal (line 26) | func (codec2) Marshal(v any) ([]byte, error) { method Unmarshal (line 30) | func (codec2) Unmarshal(data []byte, v any) error { method Name (line 34) | func (codec2) Name() string { function TestRegisterCodec (line 38) | func TestRegisterCodec(t *testing.T) { type PanicTestFunc (line 67) | type PanicTestFunc function didPanic (line 70) | func didPanic(f PanicTestFunc) (bool, any, string) { FILE: encoding/form/form.go constant Name (line 15) | Name = "x-www-form-urlencoded" constant nullStr (line 17) | nullStr = "null" function init (line 29) | func init() { type codec (line 35) | type codec struct method Marshal (line 40) | func (c codec) Marshal(v any) ([]byte, error) { method Unmarshal (line 62) | func (c codec) Unmarshal(data []byte, v any) error { method Name (line 85) | func (codec) Name() string { FILE: encoding/form/form_test.go function init (line 24) | func init() { function TestFormEncoderAndDecoder (line 30) | func TestFormEncoderAndDecoder(t *testing.T) { type LoginRequest (line 82) | type LoginRequest struct function TestFormCodecMarshal (line 87) | func TestFormCodecMarshal(t *testing.T) { function TestFormCodecUnmarshal (line 128) | func TestFormCodecUnmarshal(t *testing.T) { function TestProtoEncodeDecode (line 152) | func TestProtoEncodeDecode(t *testing.T) { function TestDecodeStructPb (line 232) | func TestDecodeStructPb(t *testing.T) { function TestDecodeBytesValuePb (line 252) | func TestDecodeBytesValuePb(t *testing.T) { function TestEncodeFieldMask (line 265) | func TestEncodeFieldMask(t *testing.T) { function TestOptional (line 274) | func TestOptional(t *testing.T) { function TestWithUnsupportedType (line 287) | func TestWithUnsupportedType(t *testing.T) { FILE: encoding/form/proto_decode.go constant fieldSeparator (line 23) | fieldSeparator = "." function DecodeValues (line 28) | func DecodeValues(msg proto.Message, values url.Values) error { function populateFieldValues (line 37) | func populateFieldValues(v protoreflect.Message, fieldPath []string, val... function getFieldDescriptor (line 84) | func getFieldDescriptor(v protoreflect.Message, fieldName string) protor... function getDescriptorByFieldAndName (line 109) | func getDescriptorByFieldAndName(fields protoreflect.FieldDescriptors, f... function populateField (line 117) | func populateField(fd protoreflect.FieldDescriptor, v protoreflect.Messa... function populateRepeatedField (line 129) | func populateRepeatedField(fd protoreflect.FieldDescriptor, list protore... function populateMapField (line 140) | func populateMapField(fd protoreflect.FieldDescriptor, mp protoreflect.M... function parseField (line 157) | func parseField(fd protoreflect.FieldDescriptor, value string) (protoref... function parseMessage (line 236) | func parseMessage(md protoreflect.MessageDescriptor, value string) (prot... function jsonSnakeCase (line 336) | func jsonSnakeCase(s string) string { function isASCIIUpper (line 352) | func isASCIIUpper(c byte) bool { function parseURLQueryMapKey (line 358) | func parseURLQueryMapKey(key string) (string, string, error) { FILE: encoding/form/proto_decode_test.go function TestDecodeValues (line 15) | func TestDecodeValues(t *testing.T) { function TestGetFieldDescriptor (line 51) | func TestGetFieldDescriptor(t *testing.T) { function TestPopulateRepeatedField (line 65) | func TestPopulateRepeatedField(t *testing.T) { function TestPopulateMapField (line 82) | func TestPopulateMapField(t *testing.T) { function TestPopulateMapSepField (line 100) | func TestPopulateMapSepField(t *testing.T) { function TestParseField (line 118) | func TestParseField(t *testing.T) { function TestJsonSnakeCase (line 178) | func TestJsonSnakeCase(t *testing.T) { function TestIsASCIIUpper (line 206) | func TestIsASCIIUpper(t *testing.T) { function TestParseURLQueryMapKey (line 237) | func TestParseURLQueryMapKey(t *testing.T) { function BenchmarkParseURLQueryMapKey (line 306) | func BenchmarkParseURLQueryMapKey(b *testing.B) { FILE: encoding/form/proto_encode.go function EncodeValues (line 17) | func EncodeValues(msg any) (url.Values, error) { function encodeByField (line 29) | func encodeByField(u url.Values, path string, m protoreflect.Message) (f... function encodeRepeatedField (line 92) | func encodeRepeatedField(fieldDescriptor protoreflect.FieldDescriptor, l... function encodeMapField (line 104) | func encodeMapField(fieldDescriptor protoreflect.FieldDescriptor, mp pro... function EncodeField (line 123) | func EncodeField(fieldDescriptor protoreflect.FieldDescriptor, value pro... function encodeMessage (line 145) | func encodeMessage(msgDescriptor protoreflect.MessageDescriptor, value p... function EncodeFieldMask (line 173) | func EncodeFieldMask(m protoreflect.Message) (query string) { function jsonCamelCase (line 197) | func jsonCamelCase(s string) string { function isASCIILower (line 216) | func isASCIILower(c byte) bool { FILE: encoding/form/proto_encode_test.go function TestEncodeValues (line 15) | func TestEncodeValues(t *testing.T) { function TestJsonCamelCase (line 55) | func TestJsonCamelCase(t *testing.T) { function TestIsASCIILower (line 83) | func TestIsASCIILower(t *testing.T) { FILE: encoding/form/well_known_types.go constant timestampMessageFullname (line 15) | timestampMessageFullname protoreflect.FullName = "google.protobuf.... constant maxTimestampSeconds (line 16) | maxTimestampSeconds = 253402300799 constant minTimestampSeconds (line 17) | minTimestampSeconds = -6213559680013 constant timestampSecondsFieldNumber (line 18) | timestampSecondsFieldNumber protoreflect.FieldNumber = 1 constant timestampNanosFieldNumber (line 19) | timestampNanosFieldNumber protoreflect.FieldNumber = 2 constant durationMessageFullname (line 22) | durationMessageFullname protoreflect.FullName = "google.protobuf.D... constant secondsInNanos (line 23) | secondsInNanos = 999999999 constant durationSecondsFieldNumber (line 24) | durationSecondsFieldNumber protoreflect.FieldNumber = 1 constant durationNanosFieldNumber (line 25) | durationNanosFieldNumber protoreflect.FieldNumber = 2 constant bytesMessageFullname (line 28) | bytesMessageFullname protoreflect.FullName = "google.protobuf.BytesV... constant bytesValueFieldNumber (line 29) | bytesValueFieldNumber protoreflect.FieldNumber = 1 constant structMessageFullname (line 32) | structMessageFullname protoreflect.FullName = "google.protobuf.Struct" constant structFieldsFieldNumber (line 33) | structFieldsFieldNumber protoreflect.FieldNumber = 1 constant fieldMaskFullName (line 35) | fieldMaskFullName protoreflect.FullName = "google.protobuf.FieldMask" function marshalTimestamp (line 38) | func marshalTimestamp(m protoreflect.Message) (string, error) { function marshalDuration (line 63) | func marshalDuration(m protoreflect.Message) (string, error) { function marshalBytes (line 88) | func marshalBytes(m protoreflect.Message) (string, error) { FILE: encoding/form/well_known_types_test.go function TestMarshalTimeStamp (line 14) | func TestMarshalTimeStamp(t *testing.T) { function TestMarshalDuration (line 39) | func TestMarshalDuration(t *testing.T) { function TestMarshalBytes (line 72) | func TestMarshalBytes(t *testing.T) { FILE: encoding/json/json.go constant Name (line 14) | Name = "json" function init (line 27) | func init() { type codec (line 32) | type codec struct method Marshal (line 34) | func (codec) Marshal(v any) ([]byte, error) { method Unmarshal (line 45) | func (codec) Unmarshal(data []byte, v any) error { method Name (line 66) | func (codec) Name() string { FILE: encoding/json/json_test.go type testEmbed (line 12) | type testEmbed struct type testMessage (line 18) | type testMessage struct type mock (line 25) | type mock struct method UnmarshalJSON (line 35) | func (a *mock) UnmarshalJSON(b []byte) error { method MarshalJSON (line 52) | func (a *mock) MarshalJSON() ([]byte, error) { constant Unknown (line 30) | Unknown = iota constant Gopher (line 31) | Gopher constant Zebra (line 32) | Zebra function TestJSON_Marshal (line 66) | func TestJSON_Marshal(t *testing.T) { function TestJSON_Unmarshal (line 103) | func TestJSON_Unmarshal(t *testing.T) { FILE: encoding/proto/proto.go constant Name (line 15) | Name = "proto" function init (line 17) | func init() { type codec (line 22) | type codec struct method Marshal (line 24) | func (codec) Marshal(v any) ([]byte, error) { method Unmarshal (line 28) | func (codec) Unmarshal(data []byte, v any) error { method Name (line 36) | func (codec) Name() string { function getProtoMessage (line 40) | func getProtoMessage(v any) (proto.Message, error) { FILE: encoding/proto/proto_test.go function TestName (line 10) | func TestName(t *testing.T) { function TestCodec (line 17) | func TestCodec(t *testing.T) { function TestCodec2 (line 48) | func TestCodec2(t *testing.T) { function Test_getProtoMessage (line 80) | func Test_getProtoMessage(t *testing.T) { FILE: encoding/xml/xml.go constant Name (line 10) | Name = "xml" function init (line 12) | func init() { type codec (line 17) | type codec struct method Marshal (line 19) | func (codec) Marshal(v any) ([]byte, error) { method Unmarshal (line 23) | func (codec) Unmarshal(data []byte, v any) error { method Name (line 27) | func (codec) Name() string { FILE: encoding/xml/xml_test.go type Plain (line 9) | type Plain struct type NestedOrder (line 13) | type NestedOrder struct function TestCodec_Marshal (line 20) | func TestCodec_Marshal(t *testing.T) { function TestCodec_Unmarshal (line 55) | func TestCodec_Unmarshal(t *testing.T) { function TestCodec_NilUnmarshal (line 86) | func TestCodec_NilUnmarshal(t *testing.T) { FILE: encoding/yaml/yaml.go constant Name (line 10) | Name = "yaml" function init (line 12) | func init() { type codec (line 17) | type codec struct method Marshal (line 19) | func (codec) Marshal(v any) ([]byte, error) { method Unmarshal (line 23) | func (codec) Unmarshal(data []byte, v any) error { method Name (line 27) | func (codec) Name() string { FILE: encoding/yaml/yaml_test.go function TestCodec_Unmarshal (line 9) | func TestCodec_Unmarshal(t *testing.T) { function TestCodec_Marshal (line 95) | func TestCodec_Marshal(t *testing.T) { FILE: errors/errors.go constant UnknownCode (line 15) | UnknownCode = 500 constant UnknownReason (line 17) | UnknownReason = "" constant SupportPackageIsVersion1 (line 19) | SupportPackageIsVersion1 = true type Error (line 23) | type Error struct method Error (line 28) | func (e *Error) Error() string { method Unwrap (line 33) | func (e *Error) Unwrap() error { return e.cause } method Is (line 36) | func (e *Error) Is(err error) bool { method WithCause (line 44) | func (e *Error) WithCause(cause error) *Error { method WithMetadata (line 51) | func (e *Error) WithMetadata(md map[string]string) *Error { method GRPCStatus (line 58) | func (e *Error) GRPCStatus() *status.Status { function New (line 68) | func New(code int, reason, message string) *Error { function Newf (line 79) | func Newf(code int, reason, format string, a ...any) *Error { function Errorf (line 84) | func Errorf(code int, reason, format string, a ...any) error { function Code (line 90) | func Code(err error) int { function Reason (line 99) | func Reason(err error) string { function Clone (line 107) | func Clone(err *Error) *Error { function FromError (line 128) | func FromError(err error) *Error { FILE: errors/errors.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type Status (line 24) | type Status struct method Reset (line 35) | func (x *Status) Reset() { method String (line 44) | func (x *Status) String() string { method ProtoMessage (line 48) | func (*Status) ProtoMessage() {} method ProtoReflect (line 50) | func (x *Status) ProtoReflect() protoreflect.Message { method Descriptor (line 63) | func (*Status) Descriptor() ([]byte, []int) { method GetCode (line 67) | func (x *Status) GetCode() int32 { method GetReason (line 74) | func (x *Status) GetReason() string { method GetMessage (line 81) | func (x *Status) GetMessage() string { method GetMetadata (line 88) | func (x *Status) GetMetadata() map[string]string { function file_errors_errors_proto_rawDescGZIP (line 167) | func file_errors_errors_proto_rawDescGZIP() []byte { function init (line 192) | func init() { file_errors_errors_proto_init() } function file_errors_errors_proto_init (line 193) | func file_errors_errors_proto_init() { FILE: errors/errors_test.go type TestError (line 14) | type TestError struct method Error (line 16) | func (e *TestError) Error() string { return e.message } function TestErrors (line 18) | func TestErrors(t *testing.T) { function TestIs (line 73) | func TestIs(t *testing.T) { function TestCause (line 102) | func TestCause(t *testing.T) { function TestOther (line 115) | func TestOther(t *testing.T) { FILE: errors/types.go function BadRequest (line 5) | func BadRequest(reason, message string) *Error { function IsBadRequest (line 11) | func IsBadRequest(err error) bool { function Unauthorized (line 16) | func Unauthorized(reason, message string) *Error { function IsUnauthorized (line 22) | func IsUnauthorized(err error) bool { function Forbidden (line 27) | func Forbidden(reason, message string) *Error { function IsForbidden (line 33) | func IsForbidden(err error) bool { function NotFound (line 38) | func NotFound(reason, message string) *Error { function IsNotFound (line 44) | func IsNotFound(err error) bool { function Conflict (line 49) | func Conflict(reason, message string) *Error { function IsConflict (line 55) | func IsConflict(err error) bool { function TooManyRequests (line 60) | func TooManyRequests(reason, message string) *Error { function IsTooManyRequests (line 66) | func IsTooManyRequests(err error) bool { function ClientClosed (line 71) | func ClientClosed(reason, message string) *Error { function IsClientClosed (line 77) | func IsClientClosed(err error) bool { function InternalServer (line 82) | func InternalServer(reason, message string) *Error { function IsInternalServer (line 88) | func IsInternalServer(err error) bool { function ServiceUnavailable (line 93) | func ServiceUnavailable(reason, message string) *Error { function IsServiceUnavailable (line 99) | func IsServiceUnavailable(err error) bool { function GatewayTimeout (line 104) | func GatewayTimeout(reason, message string) *Error { function IsGatewayTimeout (line 110) | func IsGatewayTimeout(err error) bool { FILE: errors/types_test.go function TestTypes (line 7) | func TestTypes(t *testing.T) { FILE: errors/wrap.go function Is (line 14) | func Is(err, target error) bool { return stderrors.Is(err, target) } function As (line 29) | func As(err error, target any) bool { return stderrors.As(err, target) } function Unwrap (line 34) | func Unwrap(err error) error { FILE: errors/wrap_test.go type mockErr (line 8) | type mockErr struct method Error (line 10) | func (*mockErr) Error() string { function TestWarp (line 14) | func TestWarp(t *testing.T) { FILE: internal/context/context.go type mergeCtx (line 10) | type mergeCtx struct method finish (line 41) | func (mc *mergeCtx) finish(err error) error { method wait (line 50) | func (mc *mergeCtx) wait() { method cancel (line 63) | func (mc *mergeCtx) cancel() { method Done (line 70) | func (mc *mergeCtx) Done() <-chan struct{} { method Err (line 75) | func (mc *mergeCtx) Err() error { method Deadline (line 94) | func (mc *mergeCtx) Deadline() (time.Time, bool) { method Value (line 110) | func (mc *mergeCtx) Value(key any) any { function Merge (line 23) | func Merge(parent1, parent2 context.Context) (context.Context, context.C... FILE: internal/context/context_test.go function TestContext (line 11) | func TestContext(t *testing.T) { function TestMerge (line 42) | func TestMerge(t *testing.T) { function TestErr (line 74) | func TestErr(t *testing.T) { function TestDone (line 86) | func TestDone(t *testing.T) { function TestFinish (line 101) | func TestFinish(t *testing.T) { function TestWait (line 120) | func TestWait(t *testing.T) { function TestCancel (line 160) | func TestCancel(t *testing.T) { function Test_mergeCtx_Deadline (line 173) | func Test_mergeCtx_Deadline(t *testing.T) { function Test_Err2 (line 239) | func Test_Err2(t *testing.T) { FILE: internal/endpoint/endpoint.go function NewEndpoint (line 8) | func NewEndpoint(scheme, host string) *url.URL { function ParseEndpoint (line 13) | func ParseEndpoint(endpoints []string, scheme string) (string, error) { function Scheme (line 29) | func Scheme(scheme string, isSecure bool) string { FILE: internal/endpoint/endpoint_test.go function TestNewEndpoint (line 9) | func TestNewEndpoint(t *testing.T) { function TestParseEndpoint (line 44) | func TestParseEndpoint(t *testing.T) { function TestSchema (line 94) | func TestSchema(t *testing.T) { FILE: internal/group/example_test.go type Counter (line 5) | type Counter struct method Incr (line 9) | func (c *Counter) Incr() { function ExampleGroup_Get (line 13) | func ExampleGroup_Get() { function ExampleGroup_Reset (line 28) | func ExampleGroup_Reset() { FILE: internal/group/group.go type Factory (line 9) | type Factory type Group (line 12) | type Group struct function NewGroup (line 19) | func NewGroup[T any](factory Factory[T]) *Group[T] { method Get (line 30) | func (g *Group[T]) Get(key string) T { method Reset (line 52) | func (g *Group[T]) Reset(factory Factory[T]) { method Clear (line 63) | func (g *Group[T]) Clear() { FILE: internal/group/group_test.go function TestGroupGet (line 8) | func TestGroupGet(t *testing.T) { function TestGroupReset (line 33) | func TestGroupReset(t *testing.T) { function TestGroupClear (line 58) | func TestGroupClear(t *testing.T) { FILE: internal/host/host.go function ExtractHostPort (line 10) | func ExtractHostPort(addr string) (host string, port uint64, err error) { function isValidIP (line 20) | func isValidIP(addr string) bool { function Port (line 26) | func Port(lis net.Listener) (int, bool) { function Extract (line 34) | func Extract(hostPort string, lis net.Listener) (string, error) { FILE: internal/host/host_test.go function TestValidIP (line 9) | func TestValidIP(t *testing.T) { function TestExtract (line 54) | func TestExtract(t *testing.T) { function TestExtract2 (line 95) | func TestExtract2(t *testing.T) { function TestPort (line 110) | func TestPort(t *testing.T) { function TestExtractHostPort (line 121) | func TestExtractHostPort(t *testing.T) { function TestIpIsUp (line 141) | func TestIpIsUp(t *testing.T) { FILE: internal/httputil/http.go constant baseContentType (line 8) | baseContentType = "application" function ContentType (line 12) | func ContentType(subtype string) string { function ContentSubtype (line 21) | func ContentSubtype(contentType string) string { FILE: internal/httputil/http_test.go function TestContentSubtype (line 7) | func TestContentSubtype(t *testing.T) { function TestContentType (line 31) | func TestContentType(t *testing.T) { FILE: internal/matcher/middleware.go type Matcher (line 11) | type Matcher interface function New (line 18) | func New() Matcher { type matcher (line 24) | type matcher struct method Use (line 30) | func (m *matcher) Use(ms ...middleware.Middleware) { method Add (line 34) | func (m *matcher) Add(selector string, ms ...middleware.Middleware) { method Match (line 48) | func (m *matcher) Match(operation string) []middleware.Middleware { FILE: internal/matcher/middleware_test.go function logging (line 10) | func logging(module string) middleware.Middleware { function equal (line 18) | func equal(ms []middleware.Middleware, modules ...string) bool { function TestMatcher (line 31) | func TestMatcher(t *testing.T) { FILE: internal/testdata/binding/test.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type HelloRequest (line 25) | type HelloRequest struct method Reset (line 40) | func (x *HelloRequest) Reset() { method String (line 49) | func (x *HelloRequest) String() string { method ProtoMessage (line 53) | func (*HelloRequest) ProtoMessage() {} method ProtoReflect (line 55) | func (x *HelloRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 68) | func (*HelloRequest) Descriptor() ([]byte, []int) { method GetName (line 72) | func (x *HelloRequest) GetName() string { method GetSub (line 79) | func (x *HelloRequest) GetSub() *Sub { method GetUpdateMask (line 86) | func (x *HelloRequest) GetUpdateMask() *fieldmaskpb.FieldMask { method GetOptInt32 (line 93) | func (x *HelloRequest) GetOptInt32() int32 { method GetOptInt64 (line 100) | func (x *HelloRequest) GetOptInt64() int64 { method GetOptString (line 107) | func (x *HelloRequest) GetOptString() string { method GetSubField (line 114) | func (x *HelloRequest) GetSubField() *Sub { method GetTestRepeated (line 121) | func (x *HelloRequest) GetTestRepeated() []string { type Sub (line 128) | type Sub struct method Reset (line 136) | func (x *Sub) Reset() { method String (line 145) | func (x *Sub) String() string { method ProtoMessage (line 149) | func (*Sub) ProtoMessage() {} method ProtoReflect (line 151) | func (x *Sub) ProtoReflect() protoreflect.Message { method Descriptor (line 164) | func (*Sub) Descriptor() ([]byte, []int) { method GetName (line 168) | func (x *Sub) GetName() string { function file_test_proto_rawDescGZIP (line 217) | func file_test_proto_rawDescGZIP() []byte { function init (line 241) | func init() { file_test_proto_init() } function file_test_proto_init (line 242) | func file_test_proto_init() { FILE: internal/testdata/complex/complex.pb.go constant _ (line 22) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 24) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type Sex (line 27) | type Sex method Enum (line 46) | func (x Sex) Enum() *Sex { method String (line 52) | func (x Sex) String() string { method Descriptor (line 56) | func (Sex) Descriptor() protoreflect.EnumDescriptor { method Type (line 60) | func (Sex) Type() protoreflect.EnumType { method Number (line 64) | func (x Sex) Number() protoreflect.EnumNumber { method EnumDescriptor (line 69) | func (Sex) EnumDescriptor() ([]byte, []int) { constant Sex_man (line 30) | Sex_man Sex = 0 constant Sex_woman (line 31) | Sex_woman Sex = 1 type Complex (line 74) | type Complex struct method Reset (line 109) | func (x *Complex) Reset() { method String (line 118) | func (x *Complex) String() string { method ProtoMessage (line 122) | func (*Complex) ProtoMessage() {} method ProtoReflect (line 124) | func (x *Complex) ProtoReflect() protoreflect.Message { method Descriptor (line 137) | func (*Complex) Descriptor() ([]byte, []int) { method GetId (line 141) | func (x *Complex) GetId() int64 { method GetNoOne (line 148) | func (x *Complex) GetNoOne() string { method GetSimple (line 155) | func (x *Complex) GetSimple() *Simple { method GetStrings (line 162) | func (x *Complex) GetStrings() []string { method GetSimples (line 169) | func (x *Complex) GetSimples() []*Simple { method GetB (line 176) | func (x *Complex) GetB() bool { method GetSex (line 183) | func (x *Complex) GetSex() Sex { method GetAge (line 190) | func (x *Complex) GetAge() int32 { method GetA (line 197) | func (x *Complex) GetA() uint32 { method GetCount (line 204) | func (x *Complex) GetCount() uint64 { method GetPrice (line 211) | func (x *Complex) GetPrice() float32 { method GetD (line 218) | func (x *Complex) GetD() float64 { method GetByte (line 225) | func (x *Complex) GetByte() []byte { method GetTimestamp (line 232) | func (x *Complex) GetTimestamp() *timestamppb.Timestamp { method GetDuration (line 239) | func (x *Complex) GetDuration() *durationpb.Duration { method GetField (line 246) | func (x *Complex) GetField() *fieldmaskpb.FieldMask { method GetDouble (line 253) | func (x *Complex) GetDouble() *wrapperspb.DoubleValue { method GetFloat (line 260) | func (x *Complex) GetFloat() *wrapperspb.FloatValue { method GetInt64 (line 267) | func (x *Complex) GetInt64() *wrapperspb.Int64Value { method GetInt32 (line 274) | func (x *Complex) GetInt32() *wrapperspb.Int32Value { method GetUint64 (line 281) | func (x *Complex) GetUint64() *wrapperspb.UInt64Value { method GetUint32 (line 288) | func (x *Complex) GetUint32() *wrapperspb.UInt32Value { method GetBool (line 295) | func (x *Complex) GetBool() *wrapperspb.BoolValue { method GetString_ (line 302) | func (x *Complex) GetString_() *wrapperspb.StringValue { method GetBytes (line 309) | func (x *Complex) GetBytes() *wrapperspb.BytesValue { method GetMap (line 316) | func (x *Complex) GetMap() map[string]string { method GetMapInt64Key (line 323) | func (x *Complex) GetMapInt64Key() map[int64]string { type Simple (line 330) | type Simple struct method Reset (line 338) | func (x *Simple) Reset() { method String (line 347) | func (x *Simple) String() string { method ProtoMessage (line 351) | func (*Simple) ProtoMessage() {} method ProtoReflect (line 353) | func (x *Simple) ProtoReflect() protoreflect.Message { method Descriptor (line 366) | func (*Simple) Descriptor() ([]byte, []int) { method GetComponent (line 370) | func (x *Simple) GetComponent() string { function file_complex_proto_rawDescGZIP (line 483) | func file_complex_proto_rawDescGZIP() []byte { function init (line 536) | func init() { file_complex_proto_init() } function file_complex_proto_init (line 537) | func file_complex_proto_init() { FILE: internal/testdata/encoding/test.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type TestModel (line 24) | type TestModel struct method Reset (line 35) | func (x *TestModel) Reset() { method String (line 44) | func (x *TestModel) String() string { method ProtoMessage (line 48) | func (*TestModel) ProtoMessage() {} method ProtoReflect (line 50) | func (x *TestModel) ProtoReflect() protoreflect.Message { method Descriptor (line 63) | func (*TestModel) Descriptor() ([]byte, []int) { method GetId (line 67) | func (x *TestModel) GetId() int64 { method GetName (line 74) | func (x *TestModel) GetName() string { method GetHobby (line 81) | func (x *TestModel) GetHobby() []string { method GetAttrs (line 88) | func (x *TestModel) GetAttrs() map[string]string { type StructPb (line 95) | type StructPb struct method Reset (line 104) | func (x *StructPb) Reset() { method String (line 113) | func (x *StructPb) String() string { method ProtoMessage (line 117) | func (*StructPb) ProtoMessage() {} method ProtoReflect (line 119) | func (x *StructPb) ProtoReflect() protoreflect.Message { method Descriptor (line 132) | func (*StructPb) Descriptor() ([]byte, []int) { method GetData (line 136) | func (x *StructPb) GetData() *structpb.Struct { method GetDataList (line 143) | func (x *StructPb) GetDataList() []*structpb.Struct { function file_encoding_test_proto_rawDescGZIP (line 184) | func file_encoding_test_proto_rawDescGZIP() []byte { function init (line 209) | func init() { file_encoding_test_proto_init() } function file_encoding_test_proto_init (line 210) | func file_encoding_test_proto_init() { FILE: internal/testdata/helloworld/helloworld.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type HelloRequest (line 25) | type HelloRequest struct method Reset (line 33) | func (x *HelloRequest) Reset() { method String (line 42) | func (x *HelloRequest) String() string { method ProtoMessage (line 46) | func (*HelloRequest) ProtoMessage() {} method ProtoReflect (line 48) | func (x *HelloRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 61) | func (*HelloRequest) Descriptor() ([]byte, []int) { method GetName (line 65) | func (x *HelloRequest) GetName() string { type HelloReply (line 73) | type HelloReply struct method Reset (line 81) | func (x *HelloReply) Reset() { method String (line 90) | func (x *HelloReply) String() string { method ProtoMessage (line 94) | func (*HelloReply) ProtoMessage() {} method ProtoReflect (line 96) | func (x *HelloReply) ProtoReflect() protoreflect.Message { method Descriptor (line 109) | func (*HelloReply) Descriptor() ([]byte, []int) { method GetMessage (line 113) | func (x *HelloReply) GetMessage() string { function file_helloworld_proto_rawDescGZIP (line 154) | func file_helloworld_proto_rawDescGZIP() []byte { function init (line 178) | func init() { file_helloworld_proto_init() } function file_helloworld_proto_init (line 179) | func file_helloworld_proto_init() { FILE: internal/testdata/helloworld/helloworld_grpc.pb.go constant _ (line 19) | _ = grpc.SupportPackageIsVersion7 type GreeterClient (line 24) | type GreeterClient interface type greeterClient (line 31) | type greeterClient struct method SayHello (line 39) | func (c *greeterClient) SayHello(ctx context.Context, in *HelloRequest... method SayHelloStream (line 48) | func (c *greeterClient) SayHelloStream(ctx context.Context, opts ...gr... function NewGreeterClient (line 35) | func NewGreeterClient(cc grpc.ClientConnInterface) GreeterClient { type Greeter_SayHelloStreamClient (line 57) | type Greeter_SayHelloStreamClient interface type greeterSayHelloStreamClient (line 63) | type greeterSayHelloStreamClient struct method Send (line 67) | func (x *greeterSayHelloStreamClient) Send(m *HelloRequest) error { method Recv (line 71) | func (x *greeterSayHelloStreamClient) Recv() (*HelloReply, error) { type GreeterServer (line 82) | type GreeterServer interface type UnimplementedGreeterServer (line 91) | type UnimplementedGreeterServer struct method SayHello (line 94) | func (UnimplementedGreeterServer) SayHello(context.Context, *HelloRequ... method SayHelloStream (line 97) | func (UnimplementedGreeterServer) SayHelloStream(Greeter_SayHelloStrea... method mustEmbedUnimplementedGreeterServer (line 100) | func (UnimplementedGreeterServer) mustEmbedUnimplementedGreeterServer(... type UnsafeGreeterServer (line 105) | type UnsafeGreeterServer interface function RegisterGreeterServer (line 109) | func RegisterGreeterServer(s grpc.ServiceRegistrar, srv GreeterServer) { function _Greeter_SayHello_Handler (line 113) | func _Greeter_SayHello_Handler(srv interface{}, ctx context.Context, dec... function _Greeter_SayHelloStream_Handler (line 131) | func _Greeter_SayHelloStream_Handler(srv interface{}, stream grpc.Server... type Greeter_SayHelloStreamServer (line 135) | type Greeter_SayHelloStreamServer interface type greeterSayHelloStreamServer (line 141) | type greeterSayHelloStreamServer struct method Send (line 145) | func (x *greeterSayHelloStreamServer) Send(m *HelloReply) error { method Recv (line 149) | func (x *greeterSayHelloStreamServer) Recv() (*HelloRequest, error) { FILE: internal/testdata/helloworld/helloworld_http.pb.go constant _ (line 18) | _ = http.SupportPackageIsVersion1 constant OperationGreeterSayHello (line 20) | OperationGreeterSayHello = "/helloworld.Greeter/SayHello" type GreeterHTTPServer (line 22) | type GreeterHTTPServer interface function RegisterGreeterHTTPServer (line 26) | func RegisterGreeterHTTPServer(s *http.Server, srv GreeterHTTPServer) { function _Greeter_SayHello0_HTTP_Handler (line 31) | func _Greeter_SayHello0_HTTP_Handler(srv GreeterHTTPServer) func(ctx htt... type GreeterHTTPClient (line 53) | type GreeterHTTPClient interface type GreeterHTTPClientImpl (line 57) | type GreeterHTTPClientImpl struct method SayHello (line 65) | func (c *GreeterHTTPClientImpl) SayHello(ctx context.Context, in *Hell... function NewGreeterHTTPClient (line 61) | func NewGreeterHTTPClient(client *http.Client) GreeterHTTPClient { FILE: log/filter.go type FilterOption (line 4) | type FilterOption constant fuzzyStr (line 6) | fuzzyStr = "***" function FilterLevel (line 9) | func FilterLevel(level Level) FilterOption { function FilterKey (line 16) | func FilterKey(key ...string) FilterOption { function FilterValue (line 25) | func FilterValue(value ...string) FilterOption { function FilterFunc (line 34) | func FilterFunc(f func(level Level, keyvals ...any) bool) FilterOption { type Filter (line 41) | type Filter struct method Log (line 63) | func (f *Filter) Log(level Level, keyvals ...any) error { function NewFilter (line 50) | func NewFilter(logger Logger, opts ...FilterOption) *Filter { FILE: log/filter_test.go function TestFilterAll (line 13) | func TestFilterAll(_ *testing.T) { function TestFilterLevel (line 28) | func TestFilterLevel(_ *testing.T) { function TestFilterCaller (line 38) | func TestFilterCaller(_ *testing.T) { function TestFilterKey (line 46) | func TestFilterKey(_ *testing.T) { function TestFilterValue (line 52) | func TestFilterValue(_ *testing.T) { function TestFilterFunc (line 58) | func TestFilterFunc(_ *testing.T) { function BenchmarkFilterKey (line 65) | func BenchmarkFilterKey(b *testing.B) { function BenchmarkFilterValue (line 72) | func BenchmarkFilterValue(b *testing.B) { function BenchmarkFilterFunc (line 79) | func BenchmarkFilterFunc(b *testing.B) { function testFilterFunc (line 86) | func testFilterFunc(level Level, keyvals ...any) bool { function TestFilterFuncWitchLoggerPrefix (line 98) | func TestFilterFuncWitchLoggerPrefix(t *testing.T) { function testFilterFuncWithLoggerPrefix (line 133) | func testFilterFuncWithLoggerPrefix(level Level, keyvals ...any) bool { function TestFilterWithContext (line 148) | func TestFilterWithContext(t *testing.T) { type traceIDKey (line 181) | type traceIDKey struct function setTraceID (line 183) | func setTraceID(ctx context.Context, tid string) context.Context { function traceIDValuer (line 187) | func traceIDValuer() Valuer { function TestFilterWithContextConcurrent (line 199) | func TestFilterWithContextConcurrent(t *testing.T) { FILE: log/global.go type loggerAppliance (line 15) | type loggerAppliance struct method SetLogger (line 24) | func (a *loggerAppliance) SetLogger(in Logger) { function init (line 20) | func init() { function SetLogger (line 32) | func SetLogger(logger Logger) { function GetLogger (line 37) | func GetLogger() Logger { function Log (line 44) | func Log(level Level, keyvals ...any) { function Context (line 49) | func Context(ctx context.Context) *Helper { function Debug (line 54) | func Debug(a ...any) { function Debugf (line 59) | func Debugf(format string, a ...any) { function Debugw (line 64) | func Debugw(keyvals ...any) { function Info (line 69) | func Info(a ...any) { function Infof (line 74) | func Infof(format string, a ...any) { function Infow (line 79) | func Infow(keyvals ...any) { function Warn (line 84) | func Warn(a ...any) { function Warnf (line 89) | func Warnf(format string, a ...any) { function Warnw (line 94) | func Warnw(keyvals ...any) { function Error (line 99) | func Error(a ...any) { function Errorf (line 104) | func Errorf(format string, a ...any) { function Errorw (line 109) | func Errorw(keyvals ...any) { function Fatal (line 114) | func Fatal(a ...any) { function Fatalf (line 120) | func Fatalf(format string, a ...any) { function Fatalw (line 126) | func Fatalw(keyvals ...any) { FILE: log/global_test.go function TestGlobalLog (line 12) | func TestGlobalLog(t *testing.T) { function TestGlobalLogUpdate (line 96) | func TestGlobalLogUpdate(t *testing.T) { function TestGlobalContext (line 112) | func TestGlobalContext(t *testing.T) { function TestContextWithGlobalLog (line 121) | func TestContextWithGlobalLog(t *testing.T) { FILE: log/helper.go type Option (line 13) | type Option type Helper (line 16) | type Helper struct method WithContext (line 60) | func (h *Helper) WithContext(ctx context.Context) *Helper { method Enabled (line 71) | func (h *Helper) Enabled(level Level) bool { method Logger (line 79) | func (h *Helper) Logger() Logger { method Log (line 84) | func (h *Helper) Log(level Level, keyvals ...any) { method Debug (line 89) | func (h *Helper) Debug(a ...any) { method Debugf (line 97) | func (h *Helper) Debugf(format string, a ...any) { method Debugw (line 105) | func (h *Helper) Debugw(keyvals ...any) { method Info (line 110) | func (h *Helper) Info(a ...any) { method Infof (line 118) | func (h *Helper) Infof(format string, a ...any) { method Infow (line 126) | func (h *Helper) Infow(keyvals ...any) { method Warn (line 131) | func (h *Helper) Warn(a ...any) { method Warnf (line 139) | func (h *Helper) Warnf(format string, a ...any) { method Warnw (line 147) | func (h *Helper) Warnw(keyvals ...any) { method Error (line 152) | func (h *Helper) Error(a ...any) { method Errorf (line 160) | func (h *Helper) Errorf(format string, a ...any) { method Errorw (line 168) | func (h *Helper) Errorw(keyvals ...any) { method Fatal (line 173) | func (h *Helper) Fatal(a ...any) { method Fatalf (line 179) | func (h *Helper) Fatalf(format string, a ...any) { method Fatalw (line 185) | func (h *Helper) Fatalw(keyvals ...any) { function WithMessageKey (line 24) | func WithMessageKey(k string) Option { function WithSprint (line 31) | func WithSprint(sprint func(...any) string) Option { function WithSprintf (line 38) | func WithSprintf(sprintf func(format string, a ...any) string) Option { function NewHelper (line 45) | func NewHelper(logger Logger, opts ...Option) *Helper { FILE: log/helper_test.go function TestHelper (line 10) | func TestHelper(_ *testing.T) { function TestHelperWithMsgKey (line 35) | func TestHelperWithMsgKey(_ *testing.T) { function TestHelperLevel (line 42) | func TestHelperLevel(_ *testing.T) { function BenchmarkHelperPrint (line 53) | func BenchmarkHelperPrint(b *testing.B) { function BenchmarkHelperPrintFilterLevel (line 60) | func BenchmarkHelperPrintFilterLevel(b *testing.B) { function BenchmarkHelperPrintf (line 67) | func BenchmarkHelperPrintf(b *testing.B) { function BenchmarkHelperPrintfFilterLevel (line 74) | func BenchmarkHelperPrintfFilterLevel(b *testing.B) { function BenchmarkHelperPrintw (line 81) | func BenchmarkHelperPrintw(b *testing.B) { type traceKey (line 88) | type traceKey struct function TestContext (line 90) | func TestContext(_ *testing.T) { function Trace (line 99) | func Trace() Valuer { FILE: log/helper_writer.go type writerWrapper (line 5) | type writerWrapper struct method Write (line 38) | func (ww *writerWrapper) Write(p []byte) (int, error) { type WriterOptionFn (line 10) | type WriterOptionFn function WithWriterLevel (line 13) | func WithWriterLevel(level Level) WriterOptionFn { function WithWriteMessageKey (line 20) | func WithWriteMessageKey(key string) WriterOptionFn { function NewWriter (line 27) | func NewWriter(logger Logger, opts ...WriterOptionFn) io.Writer { FILE: log/helper_writer_test.go function TestWriterWrapper (line 10) | func TestWriterWrapper(t *testing.T) { FILE: log/level.go type Level (line 6) | type Level method Key (line 24) | func (l Level) Key() string { method String (line 28) | func (l Level) String() string { constant LevelKey (line 9) | LevelKey = "level" constant LevelDebug (line 13) | LevelDebug Level = iota - 1 constant LevelInfo (line 15) | LevelInfo constant LevelWarn (line 17) | LevelWarn constant LevelError (line 19) | LevelError constant LevelFatal (line 21) | LevelFatal function ParseLevel (line 46) | func ParseLevel(s string) Level { FILE: log/level_test.go function TestLevel_Key (line 5) | func TestLevel_Key(t *testing.T) { function TestLevel_String (line 11) | func TestLevel_String(t *testing.T) { function TestParseLevel (line 57) | func TestParseLevel(t *testing.T) { FILE: log/log.go type Logger (line 12) | type Logger interface type logger (line 16) | type logger struct method Log (line 23) | func (c *logger) Log(level Level, keyvals ...any) error { function With (line 34) | func With(l Logger, kv ...any) Logger { function WithContext (line 52) | func WithContext(ctx context.Context, l Logger) Logger { FILE: log/log_test.go function TestInfo (line 7) | func TestInfo(_ *testing.T) { FILE: log/std.go type stdLogger (line 14) | type stdLogger struct method Log (line 35) | func (l *stdLogger) Log(level Level, keyvals ...any) error { method Close (line 59) | func (l *stdLogger) Close() error { function NewStdLogger (line 22) | func NewStdLogger(w io.Writer) Logger { FILE: log/std_test.go function TestStdLogger (line 10) | func TestStdLogger(_ *testing.T) { function TestStdLogger_Log (line 24) | func TestStdLogger_Log(t *testing.T) { FILE: log/value.go type Valuer (line 20) | type Valuer function Value (line 23) | func Value(ctx context.Context, v any) any { function Caller (line 31) | func Caller(depth int) Valuer { function Timestamp (line 44) | func Timestamp(layout string) Valuer { function bindValues (line 50) | func bindValues(ctx context.Context, keyvals []any) { function containsValuer (line 58) | func containsValuer(keyvals []any) bool { FILE: log/value_test.go function TestValue (line 8) | func TestValue(t *testing.T) { FILE: metadata/metadata.go type Metadata (line 13) | type Metadata method Add (line 29) | func (m Metadata) Add(key, value string) { method Get (line 39) | func (m Metadata) Get(key string) string { method Set (line 48) | func (m Metadata) Set(key string, value string) { method Range (line 56) | func (m Metadata) Range(f func(k string, v []string) bool) { method Values (line 65) | func (m Metadata) Values(key string) []string { method Clone (line 70) | func (m Metadata) Clone() Metadata { function New (line 16) | func New(mds ...map[string][]string) Metadata { type serverMetadataKey (line 78) | type serverMetadataKey struct function NewServerContext (line 81) | func NewServerContext(ctx context.Context, md Metadata) context.Context { function FromServerContext (line 86) | func FromServerContext(ctx context.Context) (Metadata, bool) { type clientMetadataKey (line 91) | type clientMetadataKey struct function NewClientContext (line 94) | func NewClientContext(ctx context.Context, md Metadata) context.Context { function FromClientContext (line 99) | func FromClientContext(ctx context.Context) (Metadata, bool) { function AppendToClientContext (line 106) | func AppendToClientContext(ctx context.Context, kv ...string) context.Co... function MergeToClientContext (line 119) | func MergeToClientContext(ctx context.Context, cmd Metadata) context.Con... FILE: metadata/metadata_test.go function TestNew (line 9) | func TestNew(t *testing.T) { function TestMetadata_Get (line 38) | func TestMetadata_Get(t *testing.T) { function TestMetadata_Values (line 70) | func TestMetadata_Values(t *testing.T) { function TestMetadata_Set (line 102) | func TestMetadata_Set(t *testing.T) { function TestMetadata_Add (line 142) | func TestMetadata_Add(t *testing.T) { function TestClientContext (line 182) | func TestClientContext(t *testing.T) { function TestServerContext (line 215) | func TestServerContext(t *testing.T) { function TestAppendToClientContext (line 248) | func TestAppendToClientContext(t *testing.T) { function TestAppendToClientContextThatPanics (line 285) | func TestAppendToClientContextThatPanics(t *testing.T) { function TestMergeToClientContext (line 303) | func TestMergeToClientContext(t *testing.T) { function TestMetadata_Range (line 339) | func TestMetadata_Range(t *testing.T) { function TestMetadata_Clone (line 360) | func TestMetadata_Clone(t *testing.T) { function TestMetadata_CloneDeepCopy (line 398) | func TestMetadata_CloneDeepCopy(t *testing.T) { FILE: middleware/auth/jwt/jwt.go type authKey (line 15) | type authKey struct constant bearerWord (line 20) | bearerWord string = "Bearer" constant bearerFormat (line 23) | bearerFormat string = "Bearer %s" constant authorizationKey (line 26) | authorizationKey string = "Authorization" constant reason (line 29) | reason string = "UNAUTHORIZED" type Option (line 46) | type Option type options (line 49) | type options struct function WithSigningMethod (line 57) | func WithSigningMethod(method jwt.SigningMethod) Option { function WithClaims (line 66) | func WithClaims(f func() jwt.Claims) Option { function WithTokenHeader (line 73) | func WithTokenHeader(header map[string]any) Option { function WithParserOptions (line 82) | func WithParserOptions(opts ...jwt.ParserOption) Option { function Server (line 89) | func Server(keyFunc jwt.Keyfunc, opts ...Option) middleware.Middleware { function Client (line 141) | func Client(keyProvider jwt.Keyfunc, opts ...Option) middleware.Middlewa... function NewContext (line 179) | func NewContext(ctx context.Context, info jwt.Claims) context.Context { function FromContext (line 184) | func FromContext(ctx context.Context) (token jwt.Claims, ok bool) { FILE: middleware/auth/jwt/jwt_test.go type headerCarrier (line 21) | type headerCarrier method Get (line 23) | func (hc headerCarrier) Get(key string) string { return http.Header(hc... method Set (line 25) | func (hc headerCarrier) Set(key string, value string) { http.Header(hc... method Add (line 27) | func (hc headerCarrier) Add(key string, value string) { http.Header(hc... method Keys (line 30) | func (hc headerCarrier) Keys() []string { method Values (line 39) | func (hc headerCarrier) Values(key string) []string { function newTokenHeader (line 43) | func newTokenHeader(headerKey string, token string) *headerCarrier { type Transport (line 49) | type Transport struct method Kind (line 56) | func (tr *Transport) Kind() transport.Kind { method Endpoint (line 60) | func (tr *Transport) Endpoint() string { method Operation (line 64) | func (tr *Transport) Operation() string { method RequestHeader (line 68) | func (tr *Transport) RequestHeader() transport.Header { method ReplyHeader (line 72) | func (tr *Transport) ReplyHeader() transport.Header { type CustomerClaims (line 76) | type CustomerClaims struct function TestJWTServerParse (line 81) | func TestJWTServerParse(t *testing.T) { function TestServer (line 177) | func TestServer(t *testing.T) { function TestClient (line 275) | func TestClient(t *testing.T) { function TestTokenExpire (line 322) | func TestTokenExpire(t *testing.T) { function TestMissingKeyFunc (line 347) | func TestMissingKeyFunc(t *testing.T) { function TestClientWithClaims (line 389) | func TestClientWithClaims(t *testing.T) { function TestClientWithHeader (line 430) | func TestClientWithHeader(t *testing.T) { function TestClientMissKey (line 463) | func TestClientMissKey(t *testing.T) { function TestNewContextAndFromContext (line 504) | func TestNewContextAndFromContext(t *testing.T) { function TestWithParserOptions (line 527) | func TestWithParserOptions(t *testing.T) { function TestWithParserOptionsConcurrent (line 685) | func TestWithParserOptionsConcurrent(t *testing.T) { function TestWithParserOptionsEmpty (line 731) | func TestWithParserOptionsEmpty(t *testing.T) { FILE: middleware/circuitbreaker/circuitbreaker.go type Option (line 19) | type Option function WithGroup (line 23) | func WithGroup(g *group.Group[circuitbreaker.CircuitBreaker]) Option { function WithCircuitBreaker (line 30) | func WithCircuitBreaker(genBreakerFunc func() circuitbreaker.CircuitBrea... type options (line 38) | type options struct function Client (line 44) | func Client(opts ...Option) middleware.Middleware { FILE: middleware/circuitbreaker/circuitbreaker_test.go type transportMock (line 14) | type transportMock struct method Kind (line 24) | func (tr *transportMock) Kind() transport.Kind { method Endpoint (line 28) | func (tr *transportMock) Endpoint() string { method Operation (line 32) | func (tr *transportMock) Operation() string { method RequestHeader (line 36) | func (tr *transportMock) RequestHeader() transport.Header { method ReplyHeader (line 40) | func (tr *transportMock) ReplyHeader() transport.Header { type circuitBreakerMock (line 20) | type circuitBreakerMock struct method Allow (line 44) | func (c *circuitBreakerMock) Allow() error { return c.err } method MarkSuccess (line 45) | func (c *circuitBreakerMock) MarkSuccess() {} method MarkFailed (line 46) | func (c *circuitBreakerMock) MarkFailed() {} function Test_WithGroup (line 48) | func Test_WithGroup(t *testing.T) { function TestServer (line 61) | func TestServer(_ *testing.T) { FILE: middleware/logging/logging.go type Redacter (line 18) | type Redacter interface function Server (line 23) | func Server(logger log.Logger) middleware.Middleware { function Client (line 63) | func Client(logger log.Logger) middleware.Middleware { function extractArgs (line 103) | func extractArgs(req any) string { function extractError (line 114) | func extractError(err error) (log.Level, string) { FILE: middleware/logging/logging_test.go type Transport (line 16) | type Transport struct method Kind (line 22) | func (tr *Transport) Kind() transport.Kind { method Endpoint (line 26) | func (tr *Transport) Endpoint() string { method Operation (line 30) | func (tr *Transport) Operation() string { method RequestHeader (line 34) | func (tr *Transport) RequestHeader() transport.Header { method ReplyHeader (line 38) | func (tr *Transport) ReplyHeader() transport.Header { function TestHTTP (line 42) | func TestHTTP(t *testing.T) { type dummy (line 102) | type dummy struct type dummyStringer (line 105) | type dummyStringer struct method String (line 113) | func (d *dummyStringer) String() string { type dummyStringerRedacter (line 108) | type dummyStringerRedacter struct method String (line 117) | func (d *dummyStringerRedacter) String() string { method Redact (line 121) | func (d *dummyStringerRedacter) Redact() string { function TestExtractArgs (line 125) | func TestExtractArgs(t *testing.T) { function TestExtractError (line 154) | func TestExtractError(t *testing.T) { type extractKeyValues (line 181) | type extractKeyValues method Log (line 183) | func (l *extractKeyValues) Log(_ log.Level, kv ...any) error { *l = ap... function TestServer_CallerPath (line 185) | func TestServer_CallerPath(t *testing.T) { function TestClient_CallerPath (line 211) | func TestClient_CallerPath(t *testing.T) { FILE: middleware/metadata/metadata.go type Option (line 13) | type Option type options (line 15) | type options struct method hasPrefix (line 20) | func (o *options) hasPrefix(key string) bool { function WithConstants (line 31) | func WithConstants(md metadata.Metadata) Option { function WithPropagatedPrefix (line 38) | func WithPropagatedPrefix(prefix ...string) Option { function Server (line 45) | func Server(opts ...Option) middleware.Middleware { function Client (line 75) | func Client(opts ...Option) middleware.Middleware { FILE: middleware/metadata/metadata_test.go type headerCarrier (line 14) | type headerCarrier method Get (line 16) | func (hc headerCarrier) Get(key string) string { return http.Header(hc... method Set (line 18) | func (hc headerCarrier) Set(key string, value string) { http.Header(hc... method Add (line 20) | func (hc headerCarrier) Add(key string, value string) { http.Header(hc... method Keys (line 23) | func (hc headerCarrier) Keys() []string { method Values (line 32) | func (hc headerCarrier) Values(key string) []string { type testTransport (line 36) | type testTransport struct method Kind (line 38) | func (tr *testTransport) Kind() transport.Kind { return tra... method Endpoint (line 39) | func (tr *testTransport) Endpoint() string { return "" } method Operation (line 40) | func (tr *testTransport) Operation() string { return "" } method RequestHeader (line 41) | func (tr *testTransport) RequestHeader() transport.Header { return tr.... method ReplyHeader (line 42) | func (tr *testTransport) ReplyHeader() transport.Header { return tr.... function TestSever (line 55) | func TestSever(t *testing.T) { function TestClient (line 88) | func TestClient(t *testing.T) { function TestWithConstants (line 131) | func TestWithConstants(t *testing.T) { function TestOptions_WithPropagatedPrefix (line 147) | func TestOptions_WithPropagatedPrefix(t *testing.T) { function TestOptions_hasPrefix (line 159) | func TestOptions_hasPrefix(t *testing.T) { FILE: middleware/metrics/metrics.go constant metricLabelKind (line 19) | metricLabelKind = "kind" constant metricLabelOperation (line 20) | metricLabelOperation = "operation" constant metricLabelCode (line 21) | metricLabelCode = "code" constant metricLabelReason (line 22) | metricLabelReason = "reason" constant DefaultServerSecondsHistogramName (line 26) | DefaultServerSecondsHistogramName = "server_requests_seconds" constant DefaultServerRequestsCounterName (line 27) | DefaultServerRequestsCounterName = "server_requests_code_total" constant DefaultClientSecondsHistogramName (line 28) | DefaultClientSecondsHistogramName = "client_requests_seconds" constant DefaultClientRequestsCounterName (line 29) | DefaultClientRequestsCounterName = "client_requests_code_total" type Option (line 33) | type Option function WithRequests (line 36) | func WithRequests(c metric.Int64Counter) Option { function WithSeconds (line 44) | func WithSeconds(histogram metric.Float64Histogram) Option { function DefaultRequestsCounter (line 53) | func DefaultRequestsCounter(meter metric.Meter, histogramName string) (m... function DefaultSecondsHistogram (line 60) | func DefaultSecondsHistogram(meter metric.Meter, histogramName string) (... function DefaultSecondsHistogramView (line 74) | func DefaultSecondsHistogramView(histogramName string) metricsdk.View { type options (line 94) | type options struct function Server (line 102) | func Server(opts ...Option) middleware.Middleware { function Client (line 160) | func Client(opts ...Option) middleware.Middleware { FILE: middleware/metrics/metrics_test.go type dummyExporter (line 25) | type dummyExporter struct method Temporality (line 30) | func (x *dummyExporter) Temporality(kind sdkmetric.InstrumentKind) met... method Aggregation (line 34) | func (x *dummyExporter) Aggregation(kind sdkmetric.InstrumentKind) sdk... method Export (line 38) | func (x *dummyExporter) Export(ctx context.Context, resourceMetrics *m... method ForceFlush (line 51) | func (x *dummyExporter) ForceFlush(ctx context.Context) error { method Shutdown (line 55) | func (x *dummyExporter) Shutdown(ctx context.Context) error { method String (line 59) | func (x *dummyExporter) String() string { function init (line 67) | func init() { function TestWithRequests (line 92) | func TestWithRequests(t *testing.T) { function TestWithSeconds (line 114) | func TestWithSeconds(t *testing.T) { function TestServer (line 136) | func TestServer(t *testing.T) { function TestClient (line 198) | func TestClient(t *testing.T) { FILE: middleware/metrics/otel.go function EnableOTELExemplar (line 5) | func EnableOTELExemplar() error { FILE: middleware/middleware.go type Handler (line 8) | type Handler type Middleware (line 11) | type Middleware function Chain (line 14) | func Chain(m ...Middleware) Middleware { FILE: middleware/middleware_test.go function TestChain (line 12) | func TestChain(t *testing.T) { function test1Middleware (line 33) | func test1Middleware(handler Handler) Handler { function test2Middleware (line 43) | func test2Middleware(handler Handler) Handler { function test3Middleware (line 53) | func test3Middleware(handler Handler) Handler { FILE: middleware/ratelimit/ratelimit.go type Option (line 17) | type Option function WithLimiter (line 21) | func WithLimiter(limiter ratelimit.Limiter) Option { type options (line 27) | type options struct function Server (line 32) | func Server(opts ...Option) middleware.Middleware { FILE: middleware/ratelimit/ratelimit_test.go type ratelimitMock (line 12) | type ratelimitMock struct method Allow (line 20) | func (r *ratelimitMock) Allow() (ratelimit.DoneFunc, error) { type ratelimitReachedMock (line 15) | type ratelimitReachedMock struct method Allow (line 26) | func (r *ratelimitReachedMock) Allow() (ratelimit.DoneFunc, error) { function Test_WithLimiter (line 32) | func Test_WithLimiter(t *testing.T) { function TestServer (line 43) | func TestServer(t *testing.T) { FILE: middleware/recovery/recovery.go type Latency (line 14) | type Latency struct type HandlerFunc (line 20) | type HandlerFunc type Option (line 23) | type Option type options (line 25) | type options struct function WithHandler (line 30) | func WithHandler(h HandlerFunc) Option { function Recovery (line 37) | func Recovery(opts ...Option) middleware.Middleware { FILE: middleware/recovery/recovery_test.go function TestOnce (line 11) | func TestOnce(t *testing.T) { function TestNotPanic (line 31) | func TestNotPanic(t *testing.T) { FILE: middleware/selector/selector.go type transporter (line 13) | type transporter type MatchFunc (line 14) | type MatchFunc type Builder (line 29) | type Builder struct method Prefix (line 52) | func (b *Builder) Prefix(prefix ...string) *Builder { method Regex (line 58) | func (b *Builder) Regex(regex ...string) *Builder { method Path (line 64) | func (b *Builder) Path(path ...string) *Builder { method Match (line 70) | func (b *Builder) Match(fn MatchFunc) *Builder { method Build (line 76) | func (b *Builder) Build() middleware.Middleware { method matches (line 93) | func (b *Builder) matches(ctx context.Context, transporter transporter... function Server (line 42) | func Server(ms ...middleware.Middleware) *Builder { function Client (line 47) | func Client(ms ...middleware.Middleware) *Builder { function selector (line 126) | func selector(transporter transporter, match func(context.Context, trans... function pathMatch (line 137) | func pathMatch(path string, operation string) bool { function prefixMatch (line 141) | func prefixMatch(prefix string, operation string) bool { FILE: middleware/selector/selector_test.go type Transport (line 15) | type Transport struct method Kind (line 22) | func (tr *Transport) Kind() transport.Kind { method Endpoint (line 26) | func (tr *Transport) Endpoint() string { method Operation (line 30) | func (tr *Transport) Operation() string { method RequestHeader (line 34) | func (tr *Transport) RequestHeader() transport.Header { method ReplyHeader (line 38) | func (tr *Transport) ReplyHeader() transport.Header { type mockHeader (line 42) | type mockHeader struct method Get (line 46) | func (m *mockHeader) Get(key string) string { method Set (line 54) | func (m *mockHeader) Set(key, value string) { method Add (line 58) | func (m *mockHeader) Add(key, value string) { method Keys (line 62) | func (m *mockHeader) Keys() []string { method Values (line 70) | func (m *mockHeader) Values(key string) []string { function TestMatch (line 74) | func TestMatch(t *testing.T) { function TestMatchClient (line 110) | func TestMatchClient(t *testing.T) { function TestFunc (line 146) | func TestFunc(t *testing.T) { function TestHeaderFunc (line 191) | func TestHeaderFunc(t *testing.T) { function testMiddleware (line 255) | func testMiddleware(handler middleware.Handler) middleware.Handler { function Test_RegexMatch (line 262) | func Test_RegexMatch(t *testing.T) { function Test_InvalidRegexSkipped (line 340) | func Test_InvalidRegexSkipped(t *testing.T) { function Test_matches (line 351) | func Test_matches(t *testing.T) { FILE: middleware/tracing/metadata.go constant serviceHeader (line 12) | serviceHeader = "x-md-service-name" type Metadata (line 15) | type Metadata struct method Inject (line 20) | func (b Metadata) Inject(ctx context.Context, carrier propagation.Text... method Extract (line 28) | func (b Metadata) Extract(parent context.Context, carrier propagation.... method Fields (line 44) | func (b Metadata) Fields() []string { FILE: middleware/tracing/metadata_test.go function TestMetadata_Inject (line 14) | func TestMetadata_Inject(t *testing.T) { function TestMetadata_Extract (line 48) | func TestMetadata_Extract(t *testing.T) { function TestFields (line 102) | func TestFields(t *testing.T) { FILE: middleware/tracing/span.go function setClientSpan (line 20) | func setClientSpan(ctx context.Context, span trace.Span, m any) { function setServerSpan (line 59) | func setServerSpan(ctx context.Context, span trace.Span, m any) { function parseFullMethod (line 104) | func parseFullMethod(fullMethod string) (string, []attribute.KeyValue) { function peerAttr (line 123) | func peerAttr(addr string) []attribute.KeyValue { function parseTarget (line 139) | func parseTarget(endpoint string) (address string, err error) { FILE: middleware/tracing/span_test.go function Test_parseFullMethod (line 21) | func Test_parseFullMethod(t *testing.T) { function Test_peerAttr (line 67) | func Test_peerAttr(t *testing.T) { function Test_parseTarget (line 112) | func Test_parseTarget(t *testing.T) { function TestSetServerSpan (line 182) | func TestSetServerSpan(_ *testing.T) { function TestSetClientSpan (line 215) | func TestSetClientSpan(_ *testing.T) { FILE: middleware/tracing/statshandler.go type ClientHandler (line 13) | type ClientHandler struct method HandleConn (line 16) | func (c *ClientHandler) HandleConn(_ context.Context, _ stats.ConnStat... method TagConn (line 21) | func (c *ClientHandler) TagConn(ctx context.Context, _ *stats.ConnTagI... method HandleRPC (line 26) | func (c *ClientHandler) HandleRPC(ctx context.Context, rs stats.RPCSta... method TagRPC (line 41) | func (c *ClientHandler) TagRPC(ctx context.Context, _ *stats.RPCTagInf... FILE: middleware/tracing/statshandler_test.go type ctxKey (line 14) | type ctxKey constant testKey (line 16) | testKey ctxKey = "MY_TEST_KEY" function TestClient_HandleConn (line 18) | func TestClient_HandleConn(_ *testing.T) { function TestClient_TagConn (line 22) | func TestClient_TagConn(t *testing.T) { function TestClient_TagRPC (line 31) | func TestClient_TagRPC(t *testing.T) { type mockSpan (line 40) | type mockSpan struct method SpanContext (line 45) | func (m *mockSpan) SpanContext() trace.SpanContext { function TestClient_HandleRPC (line 49) | func TestClient_HandleRPC(_ *testing.T) { FILE: middleware/tracing/tracer.go type Tracer (line 18) | type Tracer struct method Start (line 48) | func (t *Tracer) Start(ctx context.Context, operation string, carrier ... method End (line 63) | func (t *Tracer) End(_ context.Context, span trace.Span, m any, err er... function NewTracer (line 25) | func NewTracer(kind trace.SpanKind, opts ...Option) *Tracer { FILE: middleware/tracing/tracer_test.go function TestNewTracer (line 14) | func TestNewTracer(t *testing.T) { function TestTracer_End (line 33) | func TestTracer_End(_ *testing.T) { FILE: middleware/tracing/tracing.go type Option (line 16) | type Option type options (line 18) | type options struct function WithPropagator (line 25) | func WithPropagator(propagator propagation.TextMapPropagator) Option { function WithTracerProvider (line 33) | func WithTracerProvider(provider trace.TracerProvider) Option { function WithTracerName (line 40) | func WithTracerName(tracerName string) Option { function Server (line 47) | func Server(opts ...Option) middleware.Middleware { function Client (line 63) | func Client(opts ...Option) middleware.Middleware { function TraceID (line 79) | func TraceID() log.Valuer { function SpanID (line 89) | func SpanID() log.Valuer { FILE: middleware/tracing/tracing_test.go type headerCarrier (line 21) | type headerCarrier method Get (line 24) | func (hc headerCarrier) Get(key string) string { method Set (line 29) | func (hc headerCarrier) Set(key string, value string) { method Add (line 34) | func (hc headerCarrier) Add(key string, value string) { method Keys (line 39) | func (hc headerCarrier) Keys() []string { method Values (line 48) | func (hc headerCarrier) Values(key string) []string { type mockTransport (line 52) | type mockTransport struct method Kind (line 60) | func (tr *mockTransport) Kind() transport.Kind { return tr.... method Endpoint (line 61) | func (tr *mockTransport) Endpoint() string { return tr.... method Operation (line 62) | func (tr *mockTransport) Operation() string { return tr.... method RequestHeader (line 63) | func (tr *mockTransport) RequestHeader() transport.Header { return tr.... method ReplyHeader (line 64) | func (tr *mockTransport) ReplyHeader() transport.Header { return tr.... method Request (line 65) | func (tr *mockTransport) Request() *http.Request { method PathTemplate (line 74) | func (tr *mockTransport) PathTemplate() string { return "" } method Response (line 75) | func (tr *mockTransport) Response() http.ResponseWriter { function TestTracer (line 79) | func TestTracer(t *testing.T) { function TestServer (line 113) | func TestServer(t *testing.T) { function TestClient (line 184) | func TestClient(t *testing.T) { FILE: middleware/validate/validate.go type ValidatorFunc (line 11) | type ValidatorFunc type validator (line 14) | type validator interface function Validator (line 44) | func Validator(validators ...ValidatorFunc) middleware.Middleware { FILE: middleware/validate/validate_test.go type protoVali (line 13) | type protoVali struct method Validate (line 19) | func (v protoVali) Validate() error { function TestTable (line 26) | func TestTable(t *testing.T) { FILE: options.go type Option (line 15) | type Option type options (line 18) | type options struct function ID (line 42) | func ID(id string) Option { function Name (line 47) | func Name(name string) Option { function Version (line 52) | func Version(version string) Option { function Metadata (line 57) | func Metadata(md map[string]string) Option { function Endpoint (line 62) | func Endpoint(endpoints ...*url.URL) Option { function Context (line 67) | func Context(ctx context.Context) Option { function Logger (line 72) | func Logger(logger log.Logger) Option { function Server (line 77) | func Server(srv ...transport.Server) Option { function Signal (line 82) | func Signal(sigs ...os.Signal) Option { function Registrar (line 87) | func Registrar(r registry.Registrar) Option { function RegistrarTimeout (line 92) | func RegistrarTimeout(t time.Duration) Option { function StopTimeout (line 97) | func StopTimeout(t time.Duration) Option { function BeforeStart (line 104) | func BeforeStart(fn func(context.Context) error) Option { function BeforeStop (line 111) | func BeforeStop(fn func(context.Context) error) Option { function AfterStart (line 118) | func AfterStart(fn func(context.Context) error) Option { function AfterStop (line 125) | func AfterStop(fn func(context.Context) error) Option { FILE: options_test.go function TestID (line 17) | func TestID(t *testing.T) { function TestName (line 26) | func TestName(t *testing.T) { function TestVersion (line 35) | func TestVersion(t *testing.T) { function TestMetadata (line 44) | func TestMetadata(t *testing.T) { function TestEndpoint (line 56) | func TestEndpoint(t *testing.T) { function TestContext (line 68) | func TestContext(t *testing.T) { function TestLogger (line 80) | func TestLogger(t *testing.T) { type mockServer (line 89) | type mockServer struct method Start (line 93) | func (m *mockServer) Start(_ context.Context) error { return nil } method Stop (line 94) | func (m *mockServer) Stop(ctx context.Context) error { function TestServer (line 101) | func TestServer(t *testing.T) { type mockSignal (line 112) | type mockSignal struct method String (line 114) | func (m *mockSignal) String() string { return "sig" } method Signal (line 115) | func (m *mockSignal) Signal() {} function TestSignal (line 117) | func TestSignal(t *testing.T) { type mockRegistrar (line 128) | type mockRegistrar struct method Register (line 130) | func (m *mockRegistrar) Register(_ context.Context, _ *registry.Servic... method Deregister (line 134) | func (m *mockRegistrar) Deregister(_ context.Context, _ *registry.Serv... function TestRegistrar (line 138) | func TestRegistrar(t *testing.T) { function TestRegistrarTimeout (line 147) | func TestRegistrarTimeout(t *testing.T) { function TestStopTimeout (line 156) | func TestStopTimeout(t *testing.T) { function TestBeforeStart (line 165) | func TestBeforeStart(t *testing.T) { function TestBeforeStop (line 174) | func TestBeforeStop(t *testing.T) { function TestAfterStart (line 183) | func TestAfterStart(t *testing.T) { function TestAfterStop (line 192) | func TestAfterStop(t *testing.T) { FILE: registry/registry.go type Registrar (line 10) | type Registrar interface type Discovery (line 18) | type Discovery interface type Watcher (line 26) | type Watcher interface type ServiceInstance (line 37) | type ServiceInstance struct method String (line 53) | func (i *ServiceInstance) String() string { method Equal (line 58) | func (i *ServiceInstance) Equal(o any) bool { FILE: selector/balancer.go type Balancer (line 9) | type Balancer interface type BalancerBuilder (line 14) | type BalancerBuilder interface type WeightedNode (line 19) | type WeightedNode interface type WeightedNodeBuilder (line 36) | type WeightedNodeBuilder interface FILE: selector/default_node.go type DefaultNode (line 12) | type DefaultNode struct method Scheme (line 22) | func (n *DefaultNode) Scheme() string { method Address (line 27) | func (n *DefaultNode) Address() string { method ServiceName (line 32) | func (n *DefaultNode) ServiceName() string { method InitialWeight (line 37) | func (n *DefaultNode) InitialWeight() *int64 { method Version (line 42) | func (n *DefaultNode) Version() string { method Metadata (line 47) | func (n *DefaultNode) Metadata() map[string]string { function NewNode (line 52) | func NewNode(scheme, addr string, ins *registry.ServiceInstance) Node { FILE: selector/default_selector.go type Default (line 14) | type Default struct method Select (line 22) | func (d *Default) Select(ctx context.Context, opts ...SelectOption) (s... method Apply (line 65) | func (d *Default) Apply(nodes []Node) { type DefaultBuilder (line 75) | type DefaultBuilder struct method Build (line 81) | func (db *DefaultBuilder) Build() Selector { FILE: selector/filter.go type NodeFilter (line 6) | type NodeFilter FILE: selector/filter/version.go function Version (line 10) | func Version(version string) selector.NodeFilter { FILE: selector/filter/version_test.go function TestVersion (line 12) | func TestVersion(t *testing.T) { FILE: selector/global.go type wrapSelector (line 8) | type wrapSelector struct function GlobalSelector (line 11) | func GlobalSelector() Builder { function SetGlobalSelector (line 19) | func SetGlobalSelector(builder Builder) { FILE: selector/node/direct/direct.go constant defaultWeight (line 12) | defaultWeight = 100 type Node (line 21) | type Node struct method Pick (line 36) | func (n *Node) Pick() selector.DoneFunc { method Weight (line 43) | func (n *Node) Weight() float64 { method PickElapsed (line 50) | func (n *Node) PickElapsed() time.Duration { method Raw (line 54) | func (n *Node) Raw() selector.Node { type Builder (line 29) | type Builder struct method Build (line 32) | func (*Builder) Build(n selector.Node) selector.WeightedNode { FILE: selector/node/direct/direct_test.go function TestDirect (line 13) | func TestDirect(t *testing.T) { function TestDirectDefaultWeight (line 43) | func TestDirectDefaultWeight(t *testing.T) { FILE: selector/node/ewma/node.go constant tau (line 16) | tau = int64(time.Millisecond * 600) constant penalty (line 18) | penalty = uint64(time.Microsecond * 100) type Node (line 27) | type Node struct method health (line 69) | func (n *Node) health() uint64 { method load (line 73) | func (n *Node) load() (load uint64) { method predict (line 93) | func (n *Node) predict(avgLag int64, now int64) (predict int64) { method Pick (line 117) | func (n *Node) Pick() selector.DoneFunc { method Weight (line 168) | func (n *Node) Weight() (weight float64) { method PickElapsed (line 185) | func (n *Node) PickElapsed() time.Duration { method Raw (line 189) | func (n *Node) Raw() selector.Node { type nodeWeight (line 46) | type nodeWeight struct type Builder (line 52) | type Builder struct method Build (line 57) | func (b *Builder) Build(n selector.Node) selector.WeightedNode { FILE: selector/node/ewma/node_test.go function TestDirect (line 14) | func TestDirect(t *testing.T) { function TestDirectError (line 55) | func TestDirectError(t *testing.T) { function TestDirectErrorHandler (line 88) | func TestDirectErrorHandler(t *testing.T) { function BenchmarkPickAndWeight (line 129) | func BenchmarkPickAndWeight(b *testing.B) { FILE: selector/options.go type SelectOptions (line 4) | type SelectOptions struct type SelectOption (line 9) | type SelectOption function WithNodeFilter (line 12) | func WithNodeFilter(fn ...NodeFilter) SelectOption { FILE: selector/p2c/p2c.go constant forcePick (line 15) | forcePick = time.Second * 3 constant Name (line 17) | Name = "p2c" type Option (line 23) | type Option type options (line 26) | type options struct function New (line 29) | func New(opts ...Option) selector.Selector { type Balancer (line 34) | type Balancer struct method prePick (line 41) | func (s *Balancer) prePick(nodes []selector.WeightedNode) (nodeA selec... method Pick (line 54) | func (s *Balancer) Pick(_ context.Context, nodes []selector.WeightedNo... function NewBuilder (line 83) | func NewBuilder(opts ...Option) selector.Builder { type Builder (line 95) | type Builder struct method Build (line 98) | func (b *Builder) Build() selector.Balancer { FILE: selector/p2c/p2c_test.go function TestWrr3 (line 18) | func TestWrr3(t *testing.T) { function TestEmpty (line 86) | func TestEmpty(t *testing.T) { function TestOne (line 94) | func TestOne(t *testing.T) { FILE: selector/peer.go type peerKey (line 7) | type peerKey struct type Peer (line 11) | type Peer struct function NewPeerContext (line 17) | func NewPeerContext(ctx context.Context, p *Peer) context.Context { function FromPeerContext (line 22) | func FromPeerContext(ctx context.Context) (p *Peer, ok bool) { FILE: selector/peer_test.go function TestPeer (line 8) | func TestPeer(t *testing.T) { function TestNotPeer (line 19) | func TestNotPeer(t *testing.T) { FILE: selector/random/random.go constant Name (line 13) | Name = "random" type Option (line 19) | type Option type options (line 22) | type options struct type Balancer (line 25) | type Balancer struct method Pick (line 33) | func (p *Balancer) Pick(_ context.Context, nodes []selector.WeightedNo... function New (line 28) | func New(opts ...Option) selector.Selector { function NewBuilder (line 44) | func NewBuilder(opts ...Option) selector.Builder { type Builder (line 56) | type Builder struct method Build (line 59) | func (b *Builder) Build() selector.Balancer { FILE: selector/random/random_test.go function TestWrr (line 12) | func TestWrr(t *testing.T) { function TestEmpty (line 65) | func TestEmpty(t *testing.T) { FILE: selector/selector.go type Selector (line 13) | type Selector interface type Rebalancer (line 22) | type Rebalancer interface type Builder (line 28) | type Builder interface type Node (line 33) | type Node interface type DoneInfo (line 56) | type DoneInfo struct type ReplyMD (line 69) | type ReplyMD interface type DoneFunc (line 74) | type DoneFunc FILE: selector/selector_test.go type mockWeightedNode (line 17) | type mockWeightedNode struct method Raw (line 24) | func (n *mockWeightedNode) Raw() Node { method Weight (line 29) | func (n *mockWeightedNode) Weight() float64 { method Pick (line 37) | func (n *mockWeightedNode) Pick() DoneFunc { method PickElapsed (line 44) | func (n *mockWeightedNode) PickElapsed() time.Duration { type mockWeightedNodeBuilder (line 48) | type mockWeightedNodeBuilder struct method Build (line 50) | func (b *mockWeightedNodeBuilder) Build(n Node) WeightedNode { function mockFilter (line 54) | func mockFilter(version string) NodeFilter { type mockBalancerBuilder (line 66) | type mockBalancerBuilder struct method Build (line 68) | func (b *mockBalancerBuilder) Build() Balancer { type mockBalancer (line 72) | type mockBalancer struct method Pick (line 74) | func (b *mockBalancer) Pick(_ context.Context, nodes []WeightedNode) (... type mockMustErrorBalancerBuilder (line 85) | type mockMustErrorBalancerBuilder struct method Build (line 87) | func (b *mockMustErrorBalancerBuilder) Build() Balancer { type mockMustErrorBalancer (line 91) | type mockMustErrorBalancer struct method Pick (line 93) | func (b *mockMustErrorBalancer) Pick(_ context.Context, _ []WeightedNo... function TestDefault (line 97) | func TestDefault(t *testing.T) { function TestWithoutApply (line 222) | func TestWithoutApply(t *testing.T) { function TestNoPick (line 240) | func TestNoPick(t *testing.T) { function TestGlobalSelector (line 280) | func TestGlobalSelector(t *testing.T) { FILE: selector/wrr/wrr.go constant Name (line 13) | Name = "wrr" type Option (line 19) | type Option type options (line 22) | type options struct type Balancer (line 25) | type Balancer struct method Pick (line 59) | func (p *Balancer) Pick(_ context.Context, nodes []selector.WeightedNo... function equalNodes (line 32) | func equalNodes(a, b []selector.WeightedNode) bool { function New (line 54) | func New(opts ...Option) selector.Selector { function NewBuilder (line 110) | func NewBuilder(opts ...Option) selector.Builder { type Builder (line 122) | type Builder struct method Build (line 125) | func (b *Builder) Build() selector.Balancer { FILE: selector/wrr/wrr_test.go function TestWrr (line 14) | func TestWrr(t *testing.T) { function TestCurrentWeightCleanup (line 62) | func TestCurrentWeightCleanup(t *testing.T) { function TestCleanupOnlyWhenNodesChange (line 118) | func TestCleanupOnlyWhenNodesChange(t *testing.T) { type mockWeightedNode (line 240) | type mockWeightedNode struct method Raw (line 245) | func (m *mockWeightedNode) Raw() selector.Node { return nil } method Weight (line 246) | func (m *mockWeightedNode) Weight() float64 { return m.weight } method Address (line 247) | func (m *mockWeightedNode) Address() string { return m.address } method Pick (line 248) | func (m *mockWeightedNode) Pick() selector.DoneFunc { method PickElapsed (line 251) | func (m *mockWeightedNode) PickElapsed() time.Duration { return 0 } method Scheme (line 252) | func (m *mockWeightedNode) Scheme() string { return "http" } method ServiceName (line 253) | func (m *mockWeightedNode) ServiceName() string { return "test" } method InitialWeight (line 254) | func (m *mockWeightedNode) InitialWeight() *int64 { return nil } method Version (line 255) | func (m *mockWeightedNode) Version() string { return "v1.0... method Metadata (line 256) | func (m *mockWeightedNode) Metadata() map[string]string { return nil } function TestEmpty (line 258) | func TestEmpty(t *testing.T) { function BenchmarkPickWithSameNodes (line 268) | func BenchmarkPickWithSameNodes(b *testing.B) { function BenchmarkPickWithChangingNodes (line 297) | func BenchmarkPickWithChangingNodes(b *testing.B) { FILE: transport/grpc/balancer.go constant balancerName (line 14) | balancerName = "selector" function init (line 22) | func init() { type balancerBuilder (line 33) | type balancerBuilder struct method Build (line 38) | func (b *balancerBuilder) Build(info base.PickerBuildInfo) balancer.Pi... type balancerPicker (line 59) | type balancerPicker struct method Pick (line 64) | func (p *balancerPicker) Pick(info balancer.PickInfo) (balancer.PickRe... type Trailer (line 91) | type Trailer method Get (line 94) | func (t Trailer) Get(k string) string { type grpcNode (line 102) | type grpcNode struct FILE: transport/grpc/balancer_test.go function TestTrailer (line 13) | func TestTrailer(t *testing.T) { function TestFilters (line 23) | func TestFilters(t *testing.T) { FILE: transport/grpc/client.go function init (line 27) | func init() { type ClientOption (line 34) | type ClientOption function WithEndpoint (line 37) | func WithEndpoint(endpoint string) ClientOption { function WithSubset (line 45) | func WithSubset(size int) ClientOption { function WithTimeout (line 52) | func WithTimeout(timeout time.Duration) ClientOption { function WithMiddleware (line 59) | func WithMiddleware(m ...middleware.Middleware) ClientOption { function WithStreamMiddleware (line 66) | func WithStreamMiddleware(m ...middleware.Middleware) ClientOption { function WithDiscovery (line 73) | func WithDiscovery(d registry.Discovery) ClientOption { function WithTLSConfig (line 80) | func WithTLSConfig(c *tls.Config) ClientOption { function WithUnaryInterceptor (line 87) | func WithUnaryInterceptor(in ...grpc.UnaryClientInterceptor) ClientOption { function WithStreamInterceptor (line 94) | func WithStreamInterceptor(in ...grpc.StreamClientInterceptor) ClientOpt... function WithOptions (line 101) | func WithOptions(opts ...grpc.DialOption) ClientOption { function WithNodeFilter (line 108) | func WithNodeFilter(filters ...selector.NodeFilter) ClientOption { function WithHealthCheck (line 115) | func WithHealthCheck(healthCheck bool) ClientOption { function WithLogger (line 125) | func WithLogger(log.Logger) ClientOption { function WithPrintDiscoveryDebugLog (line 129) | func WithPrintDiscoveryDebugLog(p bool) ClientOption { type clientOptions (line 136) | type clientOptions struct function Dial (line 154) | func Dial(ctx context.Context, opts ...ClientOption) (*grpc.ClientConn, ... function DialInsecure (line 159) | func DialInsecure(ctx context.Context, opts ...ClientOption) (*grpc.Clie... function dial (line 163) | func dial(ctx context.Context, insecure bool, opts ...ClientOption) (*gr... function unaryClientInterceptor (line 217) | func unaryClientInterceptor(ms []middleware.Middleware, timeout time.Dur... type wrappedClientStream (line 253) | type wrappedClientStream struct method Context (line 259) | func (w *wrappedClientStream) Context() context.Context { method SendMsg (line 263) | func (w *wrappedClientStream) SendMsg(m any) error { method RecvMsg (line 281) | func (w *wrappedClientStream) RecvMsg(m any) error { function streamClientInterceptor (line 299) | func streamClientInterceptor(ms []middleware.Middleware, filters []selec... FILE: transport/grpc/client_test.go function TestWithEndpoint (line 16) | func TestWithEndpoint(t *testing.T) { function TestWithTimeout (line 25) | func TestWithTimeout(t *testing.T) { function TestWithMiddleware (line 34) | func TestWithMiddleware(t *testing.T) { function TestWithStreamMiddleware (line 45) | func TestWithStreamMiddleware(t *testing.T) { type mockRegistry (line 56) | type mockRegistry struct method GetService (line 58) | func (m *mockRegistry) GetService(_ context.Context, _ string) ([]*reg... method Watch (line 62) | func (m *mockRegistry) Watch(_ context.Context, _ string) (registry.Wa... function TestWithDiscovery (line 66) | func TestWithDiscovery(t *testing.T) { function TestWithTLSConfig (line 75) | func TestWithTLSConfig(t *testing.T) { function EmptyMiddleware (line 84) | func EmptyMiddleware() middleware.Middleware { function TestUnaryClientInterceptor (line 92) | func TestUnaryClientInterceptor(t *testing.T) { function TestWithUnaryInterceptor (line 106) | func TestWithUnaryInterceptor(t *testing.T) { function TestWithOptions (line 122) | func TestWithOptions(t *testing.T) { function TestWithHealthCheck (line 133) | func TestWithHealthCheck(t *testing.T) { function TestDial (line 143) | func TestDial(t *testing.T) { function TestDialConn (line 154) | func TestDialConn(t *testing.T) { FILE: transport/grpc/codec.go function init (line 13) | func init() { type codec (line 18) | type codec struct method Marshal (line 20) | func (codec) Marshal(v any) ([]byte, error) { method Unmarshal (line 28) | func (codec) Unmarshal(data []byte, v any) error { method Name (line 36) | func (codec) Name() string { FILE: transport/grpc/codec_test.go function TestCodec (line 10) | func TestCodec(t *testing.T) { FILE: transport/grpc/interceptor.go method unaryServerInterceptor (line 17) | func (s *Server) unaryServerInterceptor() grpc.UnaryServerInterceptor { type wrappedStream (line 51) | type wrappedStream struct method Context (line 65) | func (w *wrappedStream) Context() context.Context { method SendMsg (line 114) | func (w *wrappedStream) SendMsg(m any) error { method RecvMsg (line 132) | func (w *wrappedStream) RecvMsg(m any) error { function NewWrappedStream (line 57) | func NewWrappedStream(ctx context.Context, stream grpc.ServerStream, m m... method streamServerInterceptor (line 70) | func (s *Server) streamServerInterceptor() grpc.StreamServerInterceptor { type stream (line 105) | type stream struct function GetStream (line 110) | func GetStream(ctx context.Context) grpc.ServerStream { FILE: transport/grpc/resolver/direct/builder.go constant name (line 9) | name = "direct" function init (line 11) | func init() { type directBuilder (line 15) | type directBuilder struct method Build (line 25) | func (d *directBuilder) Build(target resolver.Target, cc resolver.Clie... method Scheme (line 39) | func (d *directBuilder) Scheme() string { function NewBuilder (line 21) | func NewBuilder() resolver.Builder { FILE: transport/grpc/resolver/direct/builder_test.go function TestDirectBuilder_Scheme (line 12) | func TestDirectBuilder_Scheme(t *testing.T) { type mockConn (line 19) | type mockConn struct method UpdateState (line 23) | func (m *mockConn) UpdateState(resolver.State) error { method ReportError (line 30) | func (m *mockConn) ReportError(error) {} method NewAddress (line 32) | func (m *mockConn) NewAddress(_ []resolver.Address) {} method NewServiceConfig (line 34) | func (m *mockConn) NewServiceConfig(_ string) {} method ParseServiceConfig (line 36) | func (m *mockConn) ParseServiceConfig(_ string) *serviceconfig.ParseRe... function TestDirectBuilder_Build (line 40) | func TestDirectBuilder_Build(t *testing.T) { FILE: transport/grpc/resolver/direct/resolver.go type directResolver (line 5) | type directResolver struct method Close (line 11) | func (r *directResolver) Close() { method ResolveNow (line 14) | func (r *directResolver) ResolveNow(_ resolver.ResolveNowOptions) { function newDirectResolver (line 7) | func newDirectResolver() resolver.Resolver { FILE: transport/grpc/resolver/discovery/builder.go constant name (line 15) | name = "discovery" type Option (line 20) | type Option function WithTimeout (line 23) | func WithTimeout(timeout time.Duration) Option { function WithInsecure (line 30) | func WithInsecure(insecure bool) Option { function WithSubset (line 37) | func WithSubset(size int) Option { function DisableDebugLog (line 45) | func DisableDebugLog() Option { function PrintDebugLog (line 52) | func PrintDebugLog(p bool) Option { type builder (line 58) | type builder struct method Build (line 81) | func (b *builder) Build(target resolver.Target, cc resolver.ClientConn... method Scheme (line 128) | func (*builder) Scheme() string { function NewBuilder (line 67) | func NewBuilder(d registry.Discovery, opts ...Option) resolver.Builder { FILE: transport/grpc/resolver/discovery/builder_test.go function TestWithInsecure (line 16) | func TestWithInsecure(t *testing.T) { function TestWithTimeout (line 24) | func TestWithTimeout(t *testing.T) { function TestDisableDebugLog (line 33) | func TestDisableDebugLog(t *testing.T) { function TestPrintDebugLog (line 41) | func TestPrintDebugLog(t *testing.T) { type mockDiscovery (line 49) | type mockDiscovery struct method GetService (line 51) | func (m *mockDiscovery) GetService(_ context.Context, _ string) ([]*re... method Watch (line 55) | func (m *mockDiscovery) Watch(_ context.Context, _ string) (registry.W... function TestBuilder_Scheme (line 60) | func TestBuilder_Scheme(t *testing.T) { type mockConn (line 67) | type mockConn struct method UpdateState (line 69) | func (m *mockConn) UpdateState(resolver.State) error { method ReportError (line 73) | func (m *mockConn) ReportError(error) {} method NewAddress (line 75) | func (m *mockConn) NewAddress(_ []resolver.Address) {} method NewServiceConfig (line 77) | func (m *mockConn) NewServiceConfig(_ string) {} method ParseServiceConfig (line 79) | func (m *mockConn) ParseServiceConfig(_ string) *serviceconfig.ParseRe... function TestBuilder_Build (line 83) | func TestBuilder_Build(t *testing.T) { FILE: transport/grpc/resolver/discovery/resolver.go type discoveryResolver (line 18) | type discoveryResolver struct method watch (line 31) | func (r *discoveryResolver) watch() { method update (line 51) | func (r *discoveryResolver) update(ins []*registry.ServiceInstance) { method Close (line 100) | func (r *discoveryResolver) Close() { method ResolveNow (line 108) | func (r *discoveryResolver) ResolveNow(_ resolver.ResolveNowOptions) {} function parseAttributes (line 110) | func parseAttributes(md map[string]string) (a *attributes.Attributes) { FILE: transport/grpc/resolver/discovery/resolver_test.go type testClientConn (line 15) | type testClientConn struct method UpdateState (line 20) | func (t *testClientConn) UpdateState(s resolver.State) error { type testWatch (line 25) | type testWatch struct method Next (line 31) | func (m *testWatch) Next() ([]*registry.ServiceInstance, error) { method Stop (line 55) | func (m *testWatch) Stop() error { function TestWatch (line 59) | func TestWatch(t *testing.T) { function TestWatchError (line 78) | func TestWatchError(t *testing.T) { function TestWatchContextCancel (line 95) | func TestWatchContextCancel(t *testing.T) { function TestParseAttributes (line 112) | func TestParseAttributes(t *testing.T) { FILE: transport/grpc/server.go type ServerOption (line 32) | type ServerOption function Network (line 35) | func Network(network string) ServerOption { function Address (line 42) | func Address(addr string) ServerOption { function Endpoint (line 49) | func Endpoint(endpoint *url.URL) ServerOption { function Timeout (line 56) | func Timeout(timeout time.Duration) ServerOption { function Logger (line 64) | func Logger(log.Logger) ServerOption { function Middleware (line 69) | func Middleware(m ...middleware.Middleware) ServerOption { function StreamMiddleware (line 75) | func StreamMiddleware(m ...middleware.Middleware) ServerOption { function CustomHealth (line 82) | func CustomHealth() ServerOption { function TLSConfig (line 89) | func TLSConfig(c *tls.Config) ServerOption { function Listener (line 96) | func Listener(lis net.Listener) ServerOption { function UnaryInterceptor (line 103) | func UnaryInterceptor(in ...grpc.UnaryServerInterceptor) ServerOption { function StreamInterceptor (line 110) | func StreamInterceptor(in ...grpc.StreamServerInterceptor) ServerOption { function DisableReflection (line 117) | func DisableReflection() ServerOption { function Options (line 124) | func Options(opts ...grpc.ServerOption) ServerOption { type Server (line 131) | type Server struct method Use (line 210) | func (s *Server) Use(selector string, m ...middleware.Middleware) { method Endpoint (line 218) | func (s *Server) Endpoint() (*url.URL, error) { method Start (line 226) | func (s *Server) Start(ctx context.Context) error { method Stop (line 237) | func (s *Server) Stop(ctx context.Context) error { method listenAndEndpoint (line 259) | func (s *Server) listenAndEndpoint() error { function NewServer (line 154) | func NewServer(opts ...ServerOption) *Server { FILE: transport/grpc/server_test.go type server (line 28) | type server struct method SayHelloStream (line 32) | func (s *server) SayHelloStream(streamServer pb.Greeter_SayHelloStream... method SayHello (line 63) | func (s *server) SayHello(_ context.Context, in *pb.HelloRequest) (*pb... type testKey (line 73) | type testKey struct function TestServer (line 75) | func TestServer(t *testing.T) { function testClient (line 112) | func testClient(t *testing.T, srv *Server) { function TestNetwork (line 174) | func TestNetwork(t *testing.T) { function TestAddress (line 183) | func TestAddress(t *testing.T) { function TestTimeout (line 198) | func TestTimeout(t *testing.T) { function TestTLSConfig (line 207) | func TestTLSConfig(t *testing.T) { function TestUnaryInterceptor (line 216) | func TestUnaryInterceptor(t *testing.T) { function TestStreamInterceptor (line 232) | func TestStreamInterceptor(t *testing.T) { function TestOptions (line 248) | func TestOptions(t *testing.T) { type testResp (line 259) | type testResp struct function TestServer_unaryServerInterceptor (line 263) | func TestServer_unaryServerInterceptor(t *testing.T) { type mockServerStream (line 287) | type mockServerStream struct method SetHeader (line 295) | func (m *mockServerStream) SetHeader(md metadata.MD) error { method SendHeader (line 300) | func (m *mockServerStream) SendHeader(md metadata.MD) error { method SetTrailer (line 305) | func (m *mockServerStream) SetTrailer(md metadata.MD) { method Context (line 309) | func (m *mockServerStream) Context() context.Context { method SendMsg (line 313) | func (m *mockServerStream) SendMsg(msg any) error { method RecvMsg (line 318) | func (m *mockServerStream) RecvMsg(msg any) error { function TestServer_streamServerInterceptor (line 323) | func TestServer_streamServerInterceptor(t *testing.T) { function TestListener (line 363) | func TestListener(t *testing.T) { function TestStop (line 378) | func TestStop(t *testing.T) { type safeBytesBuffer (line 485) | type safeBytesBuffer struct method Write (line 490) | func (b *safeBytesBuffer) Write(p []byte) (n int, err error) { method String (line 496) | func (b *safeBytesBuffer) String() string { FILE: transport/grpc/transport.go type Transport (line 13) | type Transport struct method Kind (line 22) | func (tr *Transport) Kind() transport.Kind { method Endpoint (line 27) | func (tr *Transport) Endpoint() string { method Operation (line 32) | func (tr *Transport) Operation() string { method RequestHeader (line 37) | func (tr *Transport) RequestHeader() transport.Header { method ReplyHeader (line 42) | func (tr *Transport) ReplyHeader() transport.Header { method NodeFilters (line 47) | func (tr *Transport) NodeFilters() []selector.NodeFilter { type headerCarrier (line 51) | type headerCarrier method Get (line 54) | func (mc headerCarrier) Get(key string) string { method Set (line 63) | func (mc headerCarrier) Set(key string, value string) { method Add (line 68) | func (mc headerCarrier) Add(key string, value string) { method Keys (line 73) | func (mc headerCarrier) Keys() []string { method Values (line 82) | func (mc headerCarrier) Values(key string) []string { FILE: transport/grpc/transport_test.go function TestTransport_Kind (line 11) | func TestTransport_Kind(t *testing.T) { function TestTransport_Endpoint (line 18) | func TestTransport_Endpoint(t *testing.T) { function TestTransport_Operation (line 26) | func TestTransport_Operation(t *testing.T) { function TestTransport_RequestHeader (line 34) | func TestTransport_RequestHeader(t *testing.T) { function TestTransport_ReplyHeader (line 46) | func TestTransport_ReplyHeader(t *testing.T) { function TestHeaderCarrier_Keys (line 55) | func TestHeaderCarrier_Keys(t *testing.T) { FILE: transport/http/binding/bind.go function BindQuery (line 13) | func BindQuery(vars url.Values, target any) error { function BindForm (line 21) | func BindForm(req *http.Request, target any) error { FILE: transport/http/binding/bind_test.go type TestBind (line 16) | type TestBind struct type TestBind2 (line 20) | type TestBind2 struct function TestBindQuery (line 25) | func TestBindQuery(t *testing.T) { function TestBindForm (line 77) | func TestBindForm(t *testing.T) { FILE: transport/http/binding/encode.go function EncodeURL (line 16) | func EncodeURL(pathTemplate string, msg any, needQuery bool) string { FILE: transport/http/binding/encode_test.go function TestEncodeURL (line 11) | func TestEncodeURL(t *testing.T) { function BenchmarkEncodeURL (line 129) | func BenchmarkEncodeURL(b *testing.B) { FILE: transport/http/calloption.go type CallOption (line 9) | type CallOption interface type callInfo (line 19) | type callInfo struct type EmptyCallOption (line 29) | type EmptyCallOption struct method before (line 31) | func (EmptyCallOption) before(*callInfo) error { return nil } method after (line 32) | func (EmptyCallOption) after(*callInfo, *csAttempt) {} type csAttempt (line 34) | type csAttempt struct function ContentType (line 39) | func ContentType(contentType string) CallOption { type ContentTypeCallOption (line 44) | type ContentTypeCallOption struct method before (line 49) | func (o ContentTypeCallOption) before(c *callInfo) error { function defaultCallInfo (line 54) | func defaultCallInfo(path string) callInfo { function Operation (line 63) | func Operation(operation string) CallOption { type OperationCallOption (line 68) | type OperationCallOption struct method before (line 73) | func (o OperationCallOption) before(c *callInfo) error { function PathTemplate (line 79) | func PathTemplate(pattern string) CallOption { type PathTemplateCallOption (line 84) | type PathTemplateCallOption struct method before (line 89) | func (o PathTemplateCallOption) before(c *callInfo) error { function Header (line 96) | func Header(header *http.Header) CallOption { type HeaderCallOption (line 101) | type HeaderCallOption struct method before (line 106) | func (o HeaderCallOption) before(c *callInfo) error { method after (line 111) | func (o HeaderCallOption) after(_ *callInfo, cs *csAttempt) { FILE: transport/http/calloption_test.go function TestEmptyCallOptions (line 9) | func TestEmptyCallOptions(t *testing.T) { function TestContentType (line 17) | func TestContentType(t *testing.T) { function TestContentTypeCallOption_before (line 23) | func TestContentTypeCallOption_before(t *testing.T) { function TestDefaultCallInfo (line 34) | func TestDefaultCallInfo(t *testing.T) { function TestOperation (line 48) | func TestOperation(t *testing.T) { function TestOperationCallOption_before (line 54) | func TestOperationCallOption_before(t *testing.T) { function TestPathTemplate (line 65) | func TestPathTemplate(t *testing.T) { function TestPathTemplateCallOption_before (line 71) | func TestPathTemplateCallOption_before(t *testing.T) { function TestHeader (line 82) | func TestHeader(t *testing.T) { function TestHeaderCallOption_before (line 89) | func TestHeaderCallOption_before(t *testing.T) { function TestHeaderCallOption_after (line 102) | func TestHeaderCallOption_after(t *testing.T) { FILE: transport/http/client.go function init (line 23) | func init() { type DecodeErrorFunc (line 30) | type DecodeErrorFunc type EncodeRequestFunc (line 33) | type EncodeRequestFunc type DecodeResponseFunc (line 36) | type DecodeResponseFunc type ClientOption (line 39) | type ClientOption type clientOptions (line 42) | type clientOptions struct function WithSubset (line 61) | func WithSubset(size int) ClientOption { function WithTransport (line 68) | func WithTransport(trans http.RoundTripper) ClientOption { function WithTimeout (line 75) | func WithTimeout(d time.Duration) ClientOption { function WithUserAgent (line 82) | func WithUserAgent(ua string) ClientOption { function WithMiddleware (line 89) | func WithMiddleware(m ...middleware.Middleware) ClientOption { function WithEndpoint (line 96) | func WithEndpoint(endpoint string) ClientOption { function WithRequestEncoder (line 103) | func WithRequestEncoder(encoder EncodeRequestFunc) ClientOption { function WithResponseDecoder (line 110) | func WithResponseDecoder(decoder DecodeResponseFunc) ClientOption { function WithErrorDecoder (line 117) | func WithErrorDecoder(errorDecoder DecodeErrorFunc) ClientOption { function WithDiscovery (line 124) | func WithDiscovery(d registry.Discovery) ClientOption { function WithNodeFilter (line 131) | func WithNodeFilter(filters ...selector.NodeFilter) ClientOption { function WithBlock (line 138) | func WithBlock() ClientOption { function WithTLSConfig (line 145) | func WithTLSConfig(c *tls.Config) ClientOption { type Client (line 152) | type Client struct method Invoke (line 210) | func (client *Client) Invoke(ctx context.Context, method, path string,... method invoke (line 254) | func (client *Client) invoke(ctx context.Context, req *http.Request, a... method Do (line 283) | func (client *Client) Do(req *http.Request, opts ...CallOption) (*http... method do (line 294) | func (client *Client) do(req *http.Request) (*http.Response, error) { method Close (line 333) | func (client *Client) Close() error { function NewClient (line 162) | func NewClient(ctx context.Context, opts ...ClientOption) (*Client, erro... function DefaultRequestEncoder (line 341) | func DefaultRequestEncoder(_ context.Context, contentType string, in any... function DefaultResponseDecoder (line 351) | func DefaultResponseDecoder(_ context.Context, res *http.Response, v any... function DefaultErrorDecoder (line 361) | func DefaultErrorDecoder(_ context.Context, res *http.Response) error { function CodecForResponse (line 378) | func CodecForResponse(r *http.Response) encoding.Codec { FILE: transport/http/client_test.go type mockRoundTripper (line 24) | type mockRoundTripper struct method RoundTrip (line 26) | func (rt *mockRoundTripper) RoundTrip(_ *http.Request) (resp *http.Res... type mockCallOption (line 30) | type mockCallOption struct method before (line 34) | func (x *mockCallOption) before(_ *callInfo) error { method after (line 41) | func (x *mockCallOption) after(_ *callInfo, _ *csAttempt) { function TestWithSubset (line 45) | func TestWithSubset(t *testing.T) { function TestWithTransport (line 54) | func TestWithTransport(t *testing.T) { function TestWithTimeout (line 64) | func TestWithTimeout(t *testing.T) { function TestWithBlock (line 74) | func TestWithBlock(t *testing.T) { function TestWithTLSConfig (line 83) | func TestWithTLSConfig(t *testing.T) { function TestWithUserAgent (line 93) | func TestWithUserAgent(t *testing.T) { function TestWithMiddleware (line 103) | func TestWithMiddleware(t *testing.T) { function TestWithEndpoint (line 114) | func TestWithEndpoint(t *testing.T) { function TestWithRequestEncoder (line 124) | func TestWithRequestEncoder(t *testing.T) { function TestWithResponseDecoder (line 135) | func TestWithResponseDecoder(t *testing.T) { function TestWithErrorDecoder (line 144) | func TestWithErrorDecoder(t *testing.T) { type mockDiscovery (line 153) | type mockDiscovery struct method GetService (line 155) | func (*mockDiscovery) GetService(_ context.Context, _ string) ([]*regi... method Watch (line 159) | func (*mockDiscovery) Watch(_ context.Context, _ string) (registry.Wat... type mockWatcher (line 163) | type mockWatcher struct method Next (line 165) | func (m *mockWatcher) Next() ([]*registry.ServiceInstance, error) { method Stop (line 177) | func (*mockWatcher) Stop() error { function TestWithDiscovery (line 181) | func TestWithDiscovery(t *testing.T) { function TestWithNodeFilter (line 191) | func TestWithNodeFilter(t *testing.T) { function TestDefaultRequestEncoder (line 206) | func TestDefaultRequestEncoder(t *testing.T) { function TestDefaultResponseDecoder (line 231) | func TestDefaultResponseDecoder(t *testing.T) { function TestDefaultErrorDecoder (line 268) | func TestDefaultErrorDecoder(t *testing.T) { function TestCodecForResponse (line 304) | func TestCodecForResponse(t *testing.T) { function TestNewClient (line 313) | func TestNewClient(t *testing.T) { FILE: transport/http/codec.go constant SupportPackageIsVersion1 (line 19) | SupportPackageIsVersion1 = true type Redirector (line 23) | type Redirector interface type DecodeRequestFunc (line 38) | type DecodeRequestFunc type EncodeResponseFunc (line 41) | type EncodeResponseFunc type EncodeErrorFunc (line 44) | type EncodeErrorFunc function DefaultRequestVars (line 47) | func DefaultRequestVars(r *http.Request, v any) error { function DefaultRequestQuery (line 57) | func DefaultRequestQuery(r *http.Request, v any) error { function DefaultRequestDecoder (line 62) | func DefaultRequestDecoder(r *http.Request, v any) error { function DefaultResponseEncoder (line 85) | func DefaultResponseEncoder(w http.ResponseWriter, r *http.Request, v an... function DefaultErrorEncoder (line 108) | func DefaultErrorEncoder(w http.ResponseWriter, r *http.Request, err err... function CodecForRequest (line 128) | func CodecForRequest(r *http.Request, name string) (encoding.Codec, bool) { FILE: transport/http/codec_test.go function TestDefaultRequestDecoder (line 13) | func TestDefaultRequestDecoder(t *testing.T) { type mockResponseWriter (line 44) | type mockResponseWriter struct method Header (line 50) | func (w *mockResponseWriter) Header() http.Header { method Write (line 54) | func (w *mockResponseWriter) Write(b []byte) (int, error) { method WriteHeader (line 59) | func (w *mockResponseWriter) WriteHeader(statusCode int) { type errorCodec (line 63) | type errorCodec struct method Marshal (line 65) | func (errorCodec) Marshal(any) ([]byte, error) { method Unmarshal (line 69) | func (errorCodec) Unmarshal([]byte, any) error { method Name (line 73) | func (errorCodec) Name() string { function TestDefaultResponseEncoder (line 77) | func TestDefaultResponseEncoder(t *testing.T) { function TestDefaultErrorEncoder (line 106) | func TestDefaultErrorEncoder(t *testing.T) { function TestDefaultErrorEncoderRedirect (line 126) | func TestDefaultErrorEncoderRedirect(t *testing.T) { function TestDefaultErrorEncoderMarshalError (line 140) | func TestDefaultErrorEncoderMarshalError(t *testing.T) { function TestDefaultResponseEncoderEncodeNil (line 159) | func TestDefaultResponseEncoderEncodeNil(t *testing.T) { function TestCodecForRequest (line 181) | func TestCodecForRequest(t *testing.T) { FILE: transport/http/context.go type Context (line 22) | type Context interface type responseWriter (line 45) | type responseWriter struct method reset (line 50) | func (w *responseWriter) reset(res http.ResponseWriter) { method Header (line 54) | func (w *responseWriter) Header() http.Header { return w.w.Head... method WriteHeader (line 55) | func (w *responseWriter) WriteHeader(statusCode int) { w.code = status... method Write (line 56) | func (w *responseWriter) Write(data []byte) (int, error) { method Unwrap (line 60) | func (w *responseWriter) Unwrap() http.ResponseWriter { return w.w } type wrapper (line 62) | type wrapper struct method Header (line 69) | func (c *wrapper) Header() http.Header { method Vars (line 73) | func (c *wrapper) Vars() url.Values { method Form (line 82) | func (c *wrapper) Form() url.Values { method Query (line 89) | func (c *wrapper) Query() url.Values { method Request (line 92) | func (c *wrapper) Request() *http.Request { return c.req } method Response (line 93) | func (c *wrapper) Response() http.ResponseWriter { return c.res } method Middleware (line 94) | func (c *wrapper) Middleware(h middleware.Handler) middleware.Handler { method Bind (line 100) | func (c *wrapper) Bind(v any) error { return c.router.srv.decBody... method BindVars (line 101) | func (c *wrapper) BindVars(v any) error { return c.router.srv.decVars... method BindQuery (line 102) | func (c *wrapper) BindQuery(v any) error { return c.router.srv.decQuer... method BindForm (line 103) | func (c *wrapper) BindForm(v any) error { return binding.BindForm(c.r... method Returns (line 104) | func (c *wrapper) Returns(v any, err error) error { method Result (line 111) | func (c *wrapper) Result(code int, v any) error { method JSON (line 116) | func (c *wrapper) JSON(code int, v any) error { method XML (line 122) | func (c *wrapper) XML(code int, v any) error { method String (line 128) | func (c *wrapper) String(code int, text string) error { method Blob (line 138) | func (c *wrapper) Blob(code int, contentType string, data []byte) error { method Stream (line 148) | func (c *wrapper) Stream(code int, contentType string, rd io.Reader) e... method Reset (line 155) | func (c *wrapper) Reset(res http.ResponseWriter, req *http.Request) { method Deadline (line 161) | func (c *wrapper) Deadline() (time.Time, bool) { method Done (line 168) | func (c *wrapper) Done() <-chan struct{} { method Err (line 175) | func (c *wrapper) Err() error { method Value (line 182) | func (c *wrapper) Value(key any) any { FILE: transport/http/context_test.go function TestContextHeader (line 17) | func TestContextHeader(t *testing.T) { function TestContextForm (line 30) | func TestContextForm(t *testing.T) { function TestContextQuery (line 54) | func TestContextQuery(t *testing.T) { function TestContextRequest (line 67) | func TestContextRequest(t *testing.T) { function TestContextResponse (line 81) | func TestContextResponse(t *testing.T) { function TestResponseUnwrap (line 103) | func TestResponseUnwrap(t *testing.T) { function TestContextBindQuery (line 131) | func TestContextBindQuery(t *testing.T) { function TestContextBindForm (line 151) | func TestContextBindForm(t *testing.T) { function TestContextResponseReturn (line 171) | func TestContextResponseReturn(t *testing.T) { function TestContextCtx (line 201) | func TestContextCtx(t *testing.T) { FILE: transport/http/filter.go type FilterFunc (line 6) | type FilterFunc function FilterChain (line 9) | func FilterChain(filters ...FilterFunc) FilterFunc { FILE: transport/http/pprof/pprof.go function NewHandler (line 9) | func NewHandler() http.Handler { FILE: transport/http/redirect.go type redirect (line 3) | type redirect struct method Redirect (line 8) | func (r *redirect) Redirect() (string, int) { method Error (line 12) | func (r *redirect) Error() string { function NewRedirect (line 20) | func NewRedirect(url string, code int) Redirector { FILE: transport/http/redirect_test.go function TestRedirect (line 9) | func TestRedirect(t *testing.T) { FILE: transport/http/resolver.go type Target (line 20) | type Target struct function parseTarget (line 26) | func parseTarget(endpoint string, insecure bool) (*Target, error) { type resolver (line 45) | type resolver struct method update (line 122) | func (r *resolver) update(services []*registry.ServiceInstance) bool { method Close (line 152) | func (r *resolver) Close() error { function newResolver (line 56) | func newResolver(ctx context.Context, discovery registry.Discovery, targ... FILE: transport/http/resolver_test.go function TestParseTarget (line 17) | func TestParseTarget(t *testing.T) { type mockRebalancer (line 59) | type mockRebalancer struct method Apply (line 61) | func (m *mockRebalancer) Apply(_ []selector.Node) {} type mockDiscoveries (line 63) | type mockDiscoveries struct method GetService (line 69) | func (d *mockDiscoveries) GetService(_ context.Context, _ string) ([]*... method Watch (line 75) | func (d *mockDiscoveries) Watch(ctx context.Context, serviceName strin... constant errServiceName (line 73) | errServiceName = "needErr" type mockWatch (line 82) | type mockWatch struct method Next (line 94) | func (m *mockWatch) Next() ([]*registry.ServiceInstance, error) { method Stop (line 122) | func (m *mockWatch) Stop() error { function TestResolver (line 133) | func TestResolver(t *testing.T) { FILE: transport/http/router.go type WalkRouteFunc (line 9) | type WalkRouteFunc type RouteInfo (line 12) | type RouteInfo struct type HandlerFunc (line 18) | type HandlerFunc type Router (line 21) | type Router struct method Group (line 37) | func (r *Router) Group(prefix string, filters ...FilterFunc) *Router { method Handle (line 45) | func (r *Router) Handle(method, relativePath string, h HandlerFunc, fi... method GET (line 59) | func (r *Router) GET(path string, h HandlerFunc, m ...FilterFunc) { method HEAD (line 64) | func (r *Router) HEAD(path string, h HandlerFunc, m ...FilterFunc) { method POST (line 69) | func (r *Router) POST(path string, h HandlerFunc, m ...FilterFunc) { method PUT (line 74) | func (r *Router) PUT(path string, h HandlerFunc, m ...FilterFunc) { method PATCH (line 79) | func (r *Router) PATCH(path string, h HandlerFunc, m ...FilterFunc) { method DELETE (line 84) | func (r *Router) DELETE(path string, h HandlerFunc, m ...FilterFunc) { method CONNECT (line 89) | func (r *Router) CONNECT(path string, h HandlerFunc, m ...FilterFunc) { method OPTIONS (line 94) | func (r *Router) OPTIONS(path string, h HandlerFunc, m ...FilterFunc) { method TRACE (line 99) | func (r *Router) TRACE(path string, h HandlerFunc, m ...FilterFunc) { function newRouter (line 27) | func newRouter(prefix string, srv *Server, filters ...FilterFunc) *Router { FILE: transport/http/router_test.go constant appJSONStr (line 20) | appJSONStr = "application/json" type User (line 22) | type User struct function corsFilter (line 26) | func corsFilter(next http.Handler) http.Handler { function authFilter (line 37) | func authFilter(next http.Handler) http.Handler { function loggingFilter (line 46) | func loggingFilter(next http.Handler) http.Handler { function TestRoute (line 55) | func TestRoute(t *testing.T) { function testRoute (line 97) | func testRoute(t *testing.T, srv *Server) { function TestRouter_Group (line 177) | func TestRouter_Group(t *testing.T) { function TestHandle (line 185) | func TestHandle(_ *testing.T) { function TestRouter_ContextDataRace (line 199) | func TestRouter_ContextDataRace(t *testing.T) { FILE: transport/http/server.go type ServerOption (line 29) | type ServerOption function Network (line 32) | func Network(network string) ServerOption { function Address (line 39) | func Address(addr string) ServerOption { function Endpoint (line 46) | func Endpoint(endpoint *url.URL) ServerOption { function Timeout (line 53) | func Timeout(timeout time.Duration) ServerOption { function Logger (line 61) | func Logger(log.Logger) ServerOption { function Middleware (line 66) | func Middleware(m ...middleware.Middleware) ServerOption { function Filter (line 73) | func Filter(filters ...FilterFunc) ServerOption { function RequestVarsDecoder (line 80) | func RequestVarsDecoder(dec DecodeRequestFunc) ServerOption { function RequestQueryDecoder (line 87) | func RequestQueryDecoder(dec DecodeRequestFunc) ServerOption { function RequestDecoder (line 94) | func RequestDecoder(dec DecodeRequestFunc) ServerOption { function ResponseEncoder (line 101) | func ResponseEncoder(en EncodeResponseFunc) ServerOption { function ErrorEncoder (line 108) | func ErrorEncoder(en EncodeErrorFunc) ServerOption { function TLSConfig (line 115) | func TLSConfig(c *tls.Config) ServerOption { function StrictSlash (line 124) | func StrictSlash(strictSlash bool) ServerOption { function Listener (line 131) | func Listener(lis net.Listener) ServerOption { function PathPrefix (line 138) | func PathPrefix(prefix string) ServerOption { function NotFoundHandler (line 144) | func NotFoundHandler(handler http.Handler) ServerOption { function MethodNotAllowedHandler (line 150) | func MethodNotAllowedHandler(handler http.Handler) ServerOption { type Server (line 157) | type Server struct method Use (line 211) | func (s *Server) Use(selector string, m ...middleware.Middleware) { method WalkRoute (line 216) | func (s *Server) WalkRoute(fn WalkRouteFunc) error { method WalkHandle (line 236) | func (s *Server) WalkHandle(handle func(method, path string, handler h... method Route (line 244) | func (s *Server) Route(prefix string, filters ...FilterFunc) *Router { method Handle (line 249) | func (s *Server) Handle(path string, h http.Handler) { method HandlePrefix (line 254) | func (s *Server) HandlePrefix(prefix string, h http.Handler) { method HandleFunc (line 259) | func (s *Server) HandleFunc(path string, h http.HandlerFunc) { method HandleHeader (line 264) | func (s *Server) HandleHeader(key, val string, h http.HandlerFunc) { method ServeHTTP (line 269) | func (s *Server) ServeHTTP(res http.ResponseWriter, req *http.Request) { method filter (line 273) | func (s *Server) filter() mux.MiddlewareFunc { method Endpoint (line 315) | func (s *Server) Endpoint() (*url.URL, error) { method Start (line 323) | func (s *Server) Start(ctx context.Context) error { method Stop (line 344) | func (s *Server) Stop(ctx context.Context) error { method listenAndEndpoint (line 356) | func (s *Server) listenAndEndpoint() error { function NewServer (line 178) | func NewServer(opts ...ServerOption) *Server { FILE: transport/http/server_test.go type testKey (line 29) | type testKey struct type testData (line 31) | type testData struct type handleFuncWrapper (line 36) | type handleFuncWrapper struct method ServeHTTP (line 40) | func (x *handleFuncWrapper) ServeHTTP(writer http.ResponseWriter, requ... function newHandleFuncWrapper (line 44) | func newHandleFuncWrapper(fn http.HandlerFunc) http.Handler { function TestServeHTTP (line 48) | func TestServeHTTP(t *testing.T) { function TestServer (line 84) | func TestServer(t *testing.T) { function testAccept (line 118) | func testAccept(t *testing.T, srv *Server) { function testHeader (line 151) | func testHeader(t *testing.T, srv *Server) { function testClient (line 172) | func testClient(t *testing.T, srv *Server) { function BenchmarkServer (line 249) | func BenchmarkServer(b *testing.B) { function TestNetwork (line 287) | func TestNetwork(t *testing.T) { function TestAddress (line 296) | func TestAddress(t *testing.T) { function TestTimeout (line 305) | func TestTimeout(t *testing.T) { function TestRequestDecoder (line 314) | func TestRequestDecoder(t *testing.T) { function TestResponseEncoder (line 323) | func TestResponseEncoder(t *testing.T) { function TestErrorEncoder (line 332) | func TestErrorEncoder(t *testing.T) { function TestTLSConfig (line 341) | func TestTLSConfig(t *testing.T) { function TestStrictSlash (line 350) | func TestStrictSlash(t *testing.T) { function TestListener (line 359) | func TestListener(t *testing.T) { function TestNotFoundHandler (line 374) | func TestNotFoundHandler(t *testing.T) { function TestMethodNotAllowedHandler (line 382) | func TestMethodNotAllowedHandler(t *testing.T) { function TestStop (line 390) | func TestStop(t *testing.T) { type safeBytesBuffer (line 472) | type safeBytesBuffer struct method Write (line 477) | func (b *safeBytesBuffer) Write(p []byte) (n int, err error) { method String (line 483) | func (b *safeBytesBuffer) String() string { FILE: transport/http/status/status.go constant ClientClosed (line 13) | ClientClosed = 499 type Converter (line 17) | type Converter interface type statusConverter (line 25) | type statusConverter struct method ToGRPCCode (line 32) | func (c statusConverter) ToGRPCCode(code int) codes.Code { method FromGRPCCode (line 66) | func (c statusConverter) FromGRPCCode(code codes.Code) int { function ToGRPCCode (line 107) | func ToGRPCCode(code int) codes.Code { function FromGRPCCode (line 112) | func FromGRPCCode(code codes.Code) int { FILE: transport/http/status/status_test.go function TestToGRPCCode (line 10) | func TestToGRPCCode(t *testing.T) { function TestFromGRPCCode (line 40) | func TestFromGRPCCode(t *testing.T) { FILE: transport/http/transport.go type Transporter (line 15) | type Transporter interface type ResponseTransporter (line 24) | type ResponseTransporter interface type Transport (line 30) | type Transport struct method Kind (line 41) | func (tr *Transport) Kind() transport.Kind { method Endpoint (line 46) | func (tr *Transport) Endpoint() string { method Operation (line 51) | func (tr *Transport) Operation() string { method Request (line 56) | func (tr *Transport) Request() *http.Request { method RequestHeader (line 61) | func (tr *Transport) RequestHeader() transport.Header { method Response (line 66) | func (tr *Transport) Response() http.ResponseWriter { method ReplyHeader (line 71) | func (tr *Transport) ReplyHeader() transport.Header { method PathTemplate (line 76) | func (tr *Transport) PathTemplate() string { function SetOperation (line 81) | func SetOperation(ctx context.Context, op string) { function SetCookie (line 92) | func SetCookie(ctx context.Context, cookie *http.Cookie) { function RequestFromServerContext (line 101) | func RequestFromServerContext(ctx context.Context) (*http.Request, bool) { type headerCarrier (line 110) | type headerCarrier method Get (line 113) | func (hc headerCarrier) Get(key string) string { method Set (line 118) | func (hc headerCarrier) Set(key string, value string) { method Add (line 123) | func (hc headerCarrier) Add(key string, value string) { method Keys (line 128) | func (hc headerCarrier) Keys() []string { method Values (line 137) | func (hc headerCarrier) Values(key string) []string { function ResponseWriterFromServerContext (line 144) | func ResponseWriterFromServerContext(ctx context.Context) (http.Response... FILE: transport/http/transport_test.go function TestTransport_Kind (line 13) | func TestTransport_Kind(t *testing.T) { function TestTransport_Endpoint (line 20) | func TestTransport_Endpoint(t *testing.T) { function TestTransport_Operation (line 28) | func TestTransport_Operation(t *testing.T) { function TestTransport_Request (line 36) | func TestTransport_Request(t *testing.T) { function TestTransport_RequestHeader (line 44) | func TestTransport_RequestHeader(t *testing.T) { function TestTransport_Response (line 53) | func TestTransport_Response(t *testing.T) { function TestTransport_ReplyHeader (line 61) | func TestTransport_ReplyHeader(t *testing.T) { function TestTransport_PathTemplate (line 70) | func TestTransport_PathTemplate(t *testing.T) { function TestHeaderCarrier_Keys (line 78) | func TestHeaderCarrier_Keys(t *testing.T) { function TestSetOperation (line 95) | func TestSetOperation(t *testing.T) { function TestResponseTransporter_Interface (line 105) | func TestResponseTransporter_Interface(t *testing.T) { function TestResponseWriterFromServerContext (line 113) | func TestResponseWriterFromServerContext(t *testing.T) { function TestTransport_InterfaceCompatibility (line 179) | func TestTransport_InterfaceCompatibility(t *testing.T) { function TestTransport_TypeAssertion (line 210) | func TestTransport_TypeAssertion(t *testing.T) { type mockNonHTTPTransport (line 234) | type mockNonHTTPTransport struct method Kind (line 236) | func (m *mockNonHTTPTransport) Kind() transport.Kind { retu... method Endpoint (line 237) | func (m *mockNonHTTPTransport) Endpoint() string { retu... method Operation (line 238) | func (m *mockNonHTTPTransport) Operation() string { retu... method RequestHeader (line 239) | func (m *mockNonHTTPTransport) RequestHeader() transport.Header { retu... method ReplyHeader (line 240) | func (m *mockNonHTTPTransport) ReplyHeader() transport.Header { retu... type mockBasicHTTPTransport (line 243) | type mockBasicHTTPTransport struct method Kind (line 245) | func (m *mockBasicHTTPTransport) Kind() transport.Kind { re... method Endpoint (line 246) | func (m *mockBasicHTTPTransport) Endpoint() string { re... method Operation (line 247) | func (m *mockBasicHTTPTransport) Operation() string { re... method RequestHeader (line 248) | func (m *mockBasicHTTPTransport) RequestHeader() transport.Header { re... method ReplyHeader (line 249) | func (m *mockBasicHTTPTransport) ReplyHeader() transport.Header { re... method Request (line 250) | func (m *mockBasicHTTPTransport) Request() *http.Request { re... method PathTemplate (line 251) | func (m *mockBasicHTTPTransport) PathTemplate() string { re... FILE: transport/transport.go type Server (line 16) | type Server interface type Endpointer (line 22) | type Endpointer interface type Header (line 27) | type Header interface type Transporter (line 36) | type Transporter interface type Kind (line 60) | type Kind method String (line 62) | func (k Kind) String() string { return string(k) } constant KindGRPC (line 66) | KindGRPC Kind = "grpc" constant KindHTTP (line 67) | KindHTTP Kind = "http" type serverTransportKey (line 71) | type serverTransportKey struct type clientTransportKey (line 72) | type clientTransportKey struct function NewServerContext (line 76) | func NewServerContext(ctx context.Context, tr Transporter) context.Conte... function FromServerContext (line 81) | func FromServerContext(ctx context.Context) (tr Transporter, ok bool) { function NewClientContext (line 87) | func NewClientContext(ctx context.Context, tr Transporter) context.Conte... function FromClientContext (line 92) | func FromClientContext(ctx context.Context) (tr Transporter, ok bool) { FILE: transport/transport_test.go type mockTransport (line 10) | type mockTransport struct method Kind (line 16) | func (tr *mockTransport) Kind() Kind { method Endpoint (line 21) | func (tr *mockTransport) Endpoint() string { method Operation (line 26) | func (tr *mockTransport) Operation() string { method RequestHeader (line 31) | func (tr *mockTransport) RequestHeader() Header { method ReplyHeader (line 36) | func (tr *mockTransport) ReplyHeader() Header { function TestServerTransport (line 40) | func TestServerTransport(t *testing.T) { function TestClientTransport (line 66) | func TestClientTransport(t *testing.T) { FILE: version.go constant Release (line 4) | Release = "v2.9.2"