SYMBOL INDEX (4401 symbols across 463 files) FILE: ai/anthropic/anthropic.go function init (line 16) | func init() { type Provider (line 23) | type Provider struct method Init (line 45) | func (p *Provider) Init(opts ...ai.Option) error { method Options (line 53) | func (p *Provider) Options() ai.Options { method String (line 58) | func (p *Provider) String() string { method Generate (line 63) | func (p *Provider) Generate(ctx context.Context, req *ai.Request, opts... method Stream (line 145) | func (p *Provider) Stream(ctx context.Context, req *ai.Request, opts .... method callAPI (line 150) | func (p *Provider) callAPI(ctx context.Context, req map[string]any) (*... function NewProvider (line 28) | func NewProvider(opts ...ai.Option) *Provider { FILE: ai/anthropic/anthropic_test.go function TestProvider_String (line 10) | func TestProvider_String(t *testing.T) { function TestProvider_Init (line 17) | func TestProvider_Init(t *testing.T) { function TestProvider_Options (line 42) | func TestProvider_Options(t *testing.T) { function TestProvider_Defaults (line 57) | func TestProvider_Defaults(t *testing.T) { function TestProvider_Generate_NoAPIKey (line 69) | func TestProvider_Generate_NoAPIKey(t *testing.T) { function TestProvider_Stream_NotImplemented (line 83) | func TestProvider_Stream_NotImplemented(t *testing.T) { FILE: ai/model.go type Model (line 10) | type Model interface type Tool (line 24) | type Tool struct type Request (line 32) | type Request struct type Message (line 44) | type Message struct type Response (line 50) | type Response struct type ToolCall (line 60) | type ToolCall struct type ToolResult (line 67) | type ToolResult struct type Stream (line 73) | type Stream interface type ToolHandler (line 81) | type ToolHandler type NewFunc (line 84) | type NewFunc function Register (line 89) | func Register(name string, fn NewFunc) { function New (line 94) | func New(provider string, opts ...Option) Model { function AutoDetectProvider (line 110) | func AutoDetectProvider(baseURL string) string { function Generate (line 125) | func Generate(ctx context.Context, req *Request, opts ...GenerateOption)... FILE: ai/openai/openai.go function init (line 16) | func init() { type Provider (line 23) | type Provider struct method Init (line 45) | func (p *Provider) Init(opts ...ai.Option) error { method Options (line 53) | func (p *Provider) Options() ai.Options { method String (line 58) | func (p *Provider) String() string { method Generate (line 63) | func (p *Provider) Generate(ctx context.Context, req *ai.Request, opts... method Stream (line 141) | func (p *Provider) Stream(ctx context.Context, req *ai.Request, opts .... method callAPI (line 146) | func (p *Provider) callAPI(ctx context.Context, req map[string]any) (*... function NewProvider (line 28) | func NewProvider(opts ...ai.Option) *Provider { FILE: ai/openai/openai_test.go function TestProvider_String (line 10) | func TestProvider_String(t *testing.T) { function TestProvider_Init (line 17) | func TestProvider_Init(t *testing.T) { function TestProvider_Options (line 42) | func TestProvider_Options(t *testing.T) { function TestProvider_Defaults (line 57) | func TestProvider_Defaults(t *testing.T) { function TestProvider_Generate_NoAPIKey (line 69) | func TestProvider_Generate_NoAPIKey(t *testing.T) { function TestProvider_Stream_NotImplemented (line 83) | func TestProvider_Stream_NotImplemented(t *testing.T) { FILE: ai/options.go type Options (line 8) | type Options struct type GenerateOptions (line 22) | type GenerateOptions struct type Option (line 28) | type Option type GenerateOption (line 31) | type GenerateOption function NewOptions (line 34) | func NewOptions(opts ...Option) Options { function WithModel (line 45) | func WithModel(m string) Option { function WithAPIKey (line 52) | func WithAPIKey(key string) Option { function WithBaseURL (line 59) | func WithBaseURL(url string) Option { function WithContext (line 66) | func WithContext(ctx context.Context) Option { function WithToolHandler (line 73) | func WithToolHandler(handler ToolHandler) Option { FILE: auth/auth.go constant BearerScheme (line 12) | BearerScheme = "Bearer " constant ScopePublic (line 14) | ScopePublic = "" constant ScopeAccount (line 16) | ScopeAccount = "*" type Auth (line 27) | type Auth interface type Rules (line 43) | type Rules interface type Account (line 55) | type Account struct type Token (line 71) | type Token struct method Expired (line 83) | func (t *Token) Expired() bool { type Resource (line 88) | type Resource struct type Access (line 98) | type Access constant AccessGranted (line 102) | AccessGranted Access = iota constant AccessDenied (line 104) | AccessDenied type Rule (line 108) | type Rule struct type accountKey (line 123) | type accountKey struct function AccountFromContext (line 129) | func AccountFromContext(ctx context.Context) (*Account, bool) { function ContextWithAccount (line 135) | func ContextWithAccount(ctx context.Context, account *Account) context.C... FILE: auth/jwt/jwt.go function init (line 12) | func init() { function NewAuth (line 17) | func NewAuth(opts ...auth.Option) auth.Auth { function NewRules (line 23) | func NewRules() auth.Rules { type jwt (line 27) | type jwt struct method String (line 38) | func (j *jwt) String() string { method Init (line 42) | func (j *jwt) Init(opts ...auth.Option) { method Options (line 56) | func (j *jwt) Options() auth.Options { method Generate (line 62) | func (j *jwt) Generate(id string, opts ...auth.GenerateOption) (*auth.... method Inspect (line 124) | func (j *jwt) Inspect(token string) (*auth.Account, error) { method Token (line 128) | func (j *jwt) Token(opts ...auth.TokenOption) (*auth.Token, error) { type jwtRules (line 33) | type jwtRules struct method Grant (line 84) | func (j *jwtRules) Grant(rule *auth.Rule) error { method Revoke (line 91) | func (j *jwtRules) Revoke(rule *auth.Rule) error { method Verify (line 106) | func (j *jwtRules) Verify(acc *auth.Account, res *auth.Resource, opts ... method List (line 118) | func (j *jwtRules) List(opts ...auth.ListOption) ([]*auth.Rule, error) { FILE: auth/jwt/token/jwt.go type authClaims (line 12) | type authClaims struct type JWT (line 21) | type JWT struct method Generate (line 33) | func (j *JWT) Generate(acc *auth.Account, opts ...GenerateOption) (*To... method Inspect (line 72) | func (j *JWT) Inspect(t string) (*auth.Account, error) { method String (line 107) | func (j *JWT) String() string { function New (line 26) | func New(opts ...Option) Provider { FILE: auth/jwt/token/jwt_test.go function TestGenerate (line 11) | func TestGenerate(t *testing.T) { function TestInspect (line 27) | func TestInspect(t *testing.T) { FILE: auth/jwt/token/options.go type Options (line 9) | type Options struct type Option (line 18) | type Option function WithStore (line 21) | func WithStore(s store.Store) Option { function WithPublicKey (line 28) | func WithPublicKey(key string) Option { function WithPrivateKey (line 35) | func WithPrivateKey(key string) Option { function NewOptions (line 41) | func NewOptions(opts ...Option) Options { type GenerateOptions (line 53) | type GenerateOptions struct type GenerateOption (line 58) | type GenerateOption function WithExpiry (line 61) | func WithExpiry(d time.Duration) GenerateOption { function NewGenerateOptions (line 68) | func NewGenerateOptions(opts ...GenerateOption) GenerateOptions { FILE: auth/jwt/token/token.go type Provider (line 20) | type Provider interface type Token (line 26) | type Token struct FILE: auth/noop.go function NewAuth (line 11) | func NewAuth(opts ...Option) Auth { function NewRules (line 23) | func NewRules() Rules { type noop (line 27) | type noop struct method String (line 34) | func (n *noop) String() string { method Init (line 39) | func (n *noop) Init(opts ...Option) { method Options (line 46) | func (n *noop) Options() Options { method Generate (line 51) | func (n *noop) Generate(id string, opts ...GenerateOption) (*Account, ... method Inspect (line 84) | func (n *noop) Inspect(token string) (*Account, error) { method Token (line 89) | func (n *noop) Token(opts ...TokenOption) (*Token, error) { type noopRules (line 31) | type noopRules struct method Grant (line 64) | func (n *noopRules) Grant(rule *Rule) error { method Revoke (line 69) | func (n *noopRules) Revoke(rule *Rule) error { method Verify (line 75) | func (n *noopRules) Verify(acc *Account, res *Resource, opts ...Verify... method List (line 79) | func (n *noopRules) List(opts ...ListOption) ([]*Rule, error) { FILE: auth/noop/noop.go function NewAuth (line 30) | func NewAuth(opts ...auth.Option) auth.Auth { function NewRules (line 43) | func NewRules() auth.Rules { FILE: auth/options.go function NewOptions (line 10) | func NewOptions(opts ...Option) Options { type Options (line 22) | type Options struct type Option (line 41) | type Option function Addrs (line 44) | func Addrs(addrs ...string) Option { function Namespace (line 51) | func Namespace(n string) Option { function PublicKey (line 58) | func PublicKey(key string) Option { function PrivateKey (line 65) | func PrivateKey(key string) Option { function WithLogger (line 72) | func WithLogger(l logger.Logger) Option { function Credentials (line 79) | func Credentials(id, secret string) Option { function ClientToken (line 87) | func ClientToken(token *Token) Option { type GenerateOptions (line 93) | type GenerateOptions struct type GenerateOption (line 106) | type GenerateOption function WithSecret (line 109) | func WithSecret(s string) GenerateOption { function WithType (line 116) | func WithType(t string) GenerateOption { function WithMetadata (line 123) | func WithMetadata(md map[string]string) GenerateOption { function WithProvider (line 130) | func WithProvider(p string) GenerateOption { function WithScopes (line 137) | func WithScopes(s ...string) GenerateOption { function NewGenerateOptions (line 144) | func NewGenerateOptions(opts ...GenerateOption) GenerateOptions { type TokenOptions (line 152) | type TokenOptions struct type TokenOption (line 163) | type TokenOption function WithExpiry (line 166) | func WithExpiry(ex time.Duration) TokenOption { function WithCredentials (line 172) | func WithCredentials(id, secret string) TokenOption { function WithToken (line 179) | func WithToken(rt string) TokenOption { function NewTokenOptions (line 186) | func NewTokenOptions(opts ...TokenOption) TokenOptions { type VerifyOptions (line 200) | type VerifyOptions struct type VerifyOption (line 204) | type VerifyOption function VerifyContext (line 206) | func VerifyContext(ctx context.Context) VerifyOption { type ListOptions (line 212) | type ListOptions struct type ListOption (line 216) | type ListOption function RulesContext (line 218) | func RulesContext(ctx context.Context) ListOption { FILE: auth/rules.go function Verify (line 12) | func Verify(rules []*Rule, acc *Account, res *Resource) error { function include (line 84) | func include(slice []string, val string) bool { FILE: auth/rules_test.go function TestVerify (line 7) | func TestVerify(t *testing.T) { FILE: broker/broker.go type Broker (line 5) | type Broker interface type Handler (line 19) | type Handler type Message (line 22) | type Message struct type Event (line 28) | type Event interface type Subscriber (line 36) | type Subscriber interface function Init (line 47) | func Init(opts ...Option) error { function Connect (line 51) | func Connect() error { function Disconnect (line 55) | func Disconnect() error { function Publish (line 59) | func Publish(topic string, msg *Message, opts ...PublishOption) error { function Subscribe (line 63) | func Subscribe(topic string, handler Handler, opts ...SubscribeOption) (... function String (line 68) | func String() string { FILE: broker/http.go type httpBroker (line 30) | type httpBroker struct method saveMessage (line 181) | func (h *httpBroker) saveMessage(topic string, msg []byte) { method getMessage (line 200) | func (h *httpBroker) getMessage(topic string, num int) [][]byte { method subscribe (line 224) | func (h *httpBroker) subscribe(s *httpSubscriber) error { method unsubscribe (line 236) | func (h *httpBroker) unsubscribe(s *httpSubscriber) error { method run (line 260) | func (h *httpBroker) run(l net.Listener) { method ServeHTTP (line 290) | func (h *httpBroker) ServeHTTP(w http.ResponseWriter, req *http.Reques... method Address (line 347) | func (h *httpBroker) Address() string { method Connect (line 353) | func (h *httpBroker) Connect() error { method Disconnect (line 431) | func (h *httpBroker) Disconnect() error { method Init (line 458) | func (h *httpBroker) Init(opts ...Option) error { method Options (line 505) | func (h *httpBroker) Options() Options { method Publish (line 509) | func (h *httpBroker) Publish(topic string, msg *Message, opts ...Publi... method Subscribe (line 637) | func (h *httpBroker) Subscribe(topic string, handler Handler, opts ...... method String (line 701) | func (h *httpBroker) String() string { type httpSubscriber (line 52) | type httpSubscriber struct method Options (line 169) | func (h *httpSubscriber) Options() SubscribeOptions { method Topic (line 173) | func (h *httpSubscriber) Topic() string { method Unsubscribe (line 177) | func (h *httpSubscriber) Unsubscribe() error { type httpEvent (line 61) | type httpEvent struct method Ack (line 153) | func (h *httpEvent) Ack() error { method Error (line 157) | func (h *httpEvent) Error() error { method Message (line 161) | func (h *httpEvent) Message() *Message { method Topic (line 165) | func (h *httpEvent) Topic() string { function init (line 76) | func init() { function newTransport (line 79) | func newTransport(config *tls.Config) *http.Transport { function newHttpBroker (line 108) | func newHttpBroker(opts ...Option) Broker { function NewHttpBroker (line 706) | func NewHttpBroker(opts ...Option) Broker { FILE: broker/http_test.go function newTestRegistry (line 55) | func newTestRegistry() registry.Registry { function sub (line 59) | func sub(b *testing.B, c int) { function pub (line 121) | func pub(b *testing.B, c int) { function TestBroker (line 191) | func TestBroker(t *testing.T) { function TestConcurrentSubBroker (line 240) | func TestConcurrentSubBroker(t *testing.T) { function TestConcurrentPubBroker (line 299) | func TestConcurrentPubBroker(t *testing.T) { function BenchmarkSub1 (line 354) | func BenchmarkSub1(b *testing.B) { function BenchmarkSub8 (line 357) | func BenchmarkSub8(b *testing.B) { function BenchmarkSub32 (line 361) | func BenchmarkSub32(b *testing.B) { function BenchmarkPub1 (line 365) | func BenchmarkPub1(b *testing.B) { function BenchmarkPub8 (line 369) | func BenchmarkPub8(b *testing.B) { function BenchmarkPub32 (line 373) | func BenchmarkPub32(b *testing.B) { FILE: broker/memory.go type memoryBroker (line 15) | type memoryBroker struct method Options (line 40) | func (m *memoryBroker) Options() Options { method Address (line 44) | func (m *memoryBroker) Address() string { method Connect (line 48) | func (m *memoryBroker) Connect() error { method Disconnect (line 71) | func (m *memoryBroker) Disconnect() error { method Init (line 84) | func (m *memoryBroker) Init(opts ...Option) error { method Publish (line 91) | func (m *memoryBroker) Publish(topic string, msg *Message, opts ...Pub... method Subscribe (line 135) | func (m *memoryBroker) Subscribe(topic string, handler Handler, opts .... method String (line 177) | func (m *memoryBroker) String() string { type memoryEvent (line 25) | type memoryEvent struct method Topic (line 181) | func (m *memoryEvent) Topic() string { method Message (line 185) | func (m *memoryEvent) Message() *Message { method Ack (line 201) | func (m *memoryEvent) Ack() error { method Error (line 205) | func (m *memoryEvent) Error() error { type memorySubscriber (line 32) | type memorySubscriber struct method Options (line 209) | func (m *memorySubscriber) Options() SubscribeOptions { method Topic (line 213) | func (m *memorySubscriber) Topic() string { method Unsubscribe (line 217) | func (m *memorySubscriber) Unsubscribe() error { function NewMemoryBroker (line 222) | func NewMemoryBroker(opts ...Option) Broker { FILE: broker/memory_test.go function TestMemoryBroker (line 10) | func TestMemoryBroker(t *testing.T) { FILE: broker/nats/context.go function setBrokerOption (line 10) | func setBrokerOption(k, v interface{}) broker.Option { FILE: broker/nats/nats.go type natsBroker (line 18) | type natsBroker struct method Address (line 80) | func (n *natsBroker) Address() string { method setAddrs (line 92) | func (n *natsBroker) setAddrs(addrs []string) []string { method Connect (line 110) | func (n *natsBroker) Connect() error { method Disconnect (line 181) | func (n *natsBroker) Disconnect() error { method Init (line 212) | func (n *natsBroker) Init(opts ...broker.Option) error { method Options (line 217) | func (n *natsBroker) Options() broker.Options { method Publish (line 221) | func (n *natsBroker) Publish(topic string, msg *broker.Message, opts .... method Subscribe (line 253) | func (n *natsBroker) Subscribe(topic string, handler broker.Handler, o... method String (line 343) | func (n *natsBroker) String() string { method setOption (line 347) | func (n *natsBroker) setOption(opts ...broker.Option) { method onClose (line 397) | func (n *natsBroker) onClose(conn *natsp.Conn) { method onAsyncError (line 401) | func (n *natsBroker) onAsyncError(conn *natsp.Conn, sub *natsp.Subscri... method onDisconnectedError (line 409) | func (n *natsBroker) onDisconnectedError(conn *natsp.Conn, err error) { type subscriber (line 40) | type subscriber struct method Options (line 68) | func (s *subscriber) Options() broker.SubscribeOptions { method Topic (line 72) | func (s *subscriber) Topic() string { method Unsubscribe (line 76) | func (s *subscriber) Unsubscribe() error { type publication (line 45) | type publication struct method Topic (line 51) | func (p *publication) Topic() string { method Message (line 55) | func (p *publication) Message() *broker.Message { method Ack (line 59) | func (p *publication) Ack() error { method Error (line 64) | func (p *publication) Error() error { function NewNatsBroker (line 413) | func NewNatsBroker(opts ...broker.Option) broker.Broker { FILE: broker/nats/nats_test.go function TestInitAddrs (line 47) | func TestInitAddrs(t *testing.T) { FILE: broker/nats/options.go type optionsKey (line 10) | type optionsKey struct type drainConnectionKey (line 11) | type drainConnectionKey struct type poolSizeKey (line 12) | type poolSizeKey struct type poolIdleTimeoutKey (line 13) | type poolIdleTimeoutKey struct function Options (line 16) | func Options(opts natsp.Options) broker.Option { function DrainConnection (line 21) | func DrainConnection() broker.Option { function PoolSize (line 28) | func PoolSize(size int) broker.Option { function PoolIdleTimeout (line 35) | func PoolIdleTimeout(timeout time.Duration) broker.Option { FILE: broker/nats/pool.go type connectionPool (line 19) | type connectionPool struct method Get (line 54) | func (p *connectionPool) Get() (*pooledConnection, error) { method Put (line 80) | func (p *connectionPool) Put(conn *pooledConnection) error { method Close (line 106) | func (p *connectionPool) Close() error { method createConnection (line 126) | func (p *connectionPool) createConnection() (*pooledConnection, error) { type pooledConnection (line 29) | type pooledConnection struct method isValid (line 140) | func (pc *pooledConnection) isValid() bool { method isExpired (line 153) | func (pc *pooledConnection) isExpired(timeout time.Duration) bool { method close (line 165) | func (pc *pooledConnection) close() error { method Conn (line 177) | func (pc *pooledConnection) Conn() *natsp.Conn { method updateLastUsed (line 184) | func (pc *pooledConnection) updateLastUsed() { function newConnectionPool (line 37) | func newConnectionPool(size int, factory func() (*natsp.Conn, error)) (*... FILE: broker/nats/pool_test.go function TestConnectionPool_GetPut (line 11) | func TestConnectionPool_GetPut(t *testing.T) { function TestConnectionPool_Concurrent (line 53) | func TestConnectionPool_Concurrent(t *testing.T) { function TestConnectionPool_Close (line 98) | func TestConnectionPool_Close(t *testing.T) { function TestPooledConnection_IsValid (line 130) | func TestPooledConnection_IsValid(t *testing.T) { function TestPooledConnection_IsExpired (line 142) | func TestPooledConnection_IsExpired(t *testing.T) { function TestNatsBroker_PoolConfiguration (line 165) | func TestNatsBroker_PoolConfiguration(t *testing.T) { function TestNatsBroker_DefaultSingleConnection (line 193) | func TestNatsBroker_DefaultSingleConnection(t *testing.T) { FILE: broker/options.go type Options (line 12) | type Options struct type PublishOptions (line 33) | type PublishOptions struct type SubscribeOptions (line 39) | type SubscribeOptions struct type Option (line 54) | type Option type PublishOption (line 56) | type PublishOption function PublishContext (line 59) | func PublishContext(ctx context.Context) PublishOption { type SubscribeOption (line 65) | type SubscribeOption function NewOptions (line 67) | func NewOptions(opts ...Option) *Options { function NewSubscribeOptions (line 80) | func NewSubscribeOptions(opts ...SubscribeOption) SubscribeOptions { function Addrs (line 93) | func Addrs(addrs ...string) Option { function Codec (line 101) | func Codec(c codec.Marshaler) Option { function DisableAutoAck (line 109) | func DisableAutoAck() SubscribeOption { function ErrorHandler (line 117) | func ErrorHandler(h Handler) Option { function Queue (line 124) | func Queue(name string) SubscribeOption { function Registry (line 130) | func Registry(r registry.Registry) Option { function Secure (line 137) | func Secure(b bool) Option { function TLSConfig (line 144) | func TLSConfig(t *tls.Config) Option { function Logger (line 151) | func Logger(l logger.Logger) Option { function SubscribeContext (line 158) | func SubscribeContext(ctx context.Context) SubscribeOption { FILE: broker/rabbitmq/auth.go type ExternalAuthentication (line 3) | type ExternalAuthentication struct method Mechanism (line 6) | func (auth *ExternalAuthentication) Mechanism() string { method Response (line 10) | func (auth *ExternalAuthentication) Response() string { FILE: broker/rabbitmq/channel.go type rabbitMQChannel (line 15) | type rabbitMQChannel struct method Connect (line 38) | func (r *rabbitMQChannel) Connect(prefetchCount int, prefetchGlobal bo... method Close (line 62) | func (r *rabbitMQChannel) Close() error { method Publish (line 69) | func (r *rabbitMQChannel) Publish(exchange, key string, message amqp.P... method DeclareExchange (line 98) | func (r *rabbitMQChannel) DeclareExchange(ex Exchange) error { method DeclareDurableExchange (line 110) | func (r *rabbitMQChannel) DeclareDurableExchange(ex Exchange) error { method DeclareQueue (line 122) | func (r *rabbitMQChannel) DeclareQueue(queue string, args amqp.Table) ... method DeclareDurableQueue (line 134) | func (r *rabbitMQChannel) DeclareDurableQueue(queue string, args amqp.... method DeclareReplyQueue (line 146) | func (r *rabbitMQChannel) DeclareReplyQueue(queue string) error { method ConsumeQueue (line 158) | func (r *rabbitMQChannel) ConsumeQueue(queue string, autoAck bool) (<-... method BindQueue (line 170) | func (r *rabbitMQChannel) BindQueue(queue, key, exchange string, args ... function newRabbitChannel (line 23) | func newRabbitChannel(conn *amqp.Connection, prefetchCount int, prefetch... FILE: broker/rabbitmq/connection.go type MQExchangeType (line 18) | type MQExchangeType constant ExchangeTypeFanout (line 21) | ExchangeTypeFanout MQExchangeType = "fanout" constant ExchangeTypeTopic (line 22) | ExchangeTypeTopic = "topic" constant ExchangeTypeDirect (line 23) | ExchangeTypeDirect = "direct" type rabbitMQConn (line 54) | type rabbitMQConn struct method connect (line 109) | func (r *rabbitMQConn) connect(secure bool, config *amqp.Config) error { method reconnect (line 125) | func (r *rabbitMQConn) reconnect(secure bool, config *amqp.Config) { method Connect (line 186) | func (r *rabbitMQConn) Connect(secure bool, config *amqp.Config) error { method Close (line 209) | func (r *rabbitMQConn) Close() error { method tryConnect (line 224) | func (r *rabbitMQConn) tryConnect(secure bool, config *amqp.Config) er... method Consume (line 263) | func (r *rabbitMQConn) Consume(queue, key string, headers amqp.Table, ... method Publish (line 294) | func (r *rabbitMQConn) Publish(exchange, key string, msg amqp.Publishi... type Exchange (line 75) | type Exchange struct function newRabbitMQConn (line 84) | func newRabbitMQConn(ex Exchange, urls []string, prefetchCount int, pref... FILE: broker/rabbitmq/connection_test.go function TestNewRabbitMQConnURL (line 12) | func TestNewRabbitMQConnURL(t *testing.T) { function TestTryToConnectTLS (line 34) | func TestTryToConnectTLS(t *testing.T) { function TestNewRabbitMQPrefetchConfirmPublish (line 81) | func TestNewRabbitMQPrefetchConfirmPublish(t *testing.T) { FILE: broker/rabbitmq/context.go function setSubscribeOption (line 11) | func setSubscribeOption(k, v interface{}) broker.SubscribeOption { function setBrokerOption (line 21) | func setBrokerOption(k, v interface{}) broker.Option { function setServerSubscriberOption (line 31) | func setServerSubscriberOption(k, v interface{}) server.SubscriberOption { function setPublishOption (line 41) | func setPublishOption(k, v interface{}) broker.PublishOption { FILE: broker/rabbitmq/options.go type durableQueueKey (line 12) | type durableQueueKey struct type headersKey (line 13) | type headersKey struct type queueArgumentsKey (line 14) | type queueArgumentsKey struct type prefetchCountKey (line 15) | type prefetchCountKey struct type prefetchGlobalKey (line 16) | type prefetchGlobalKey struct type confirmPublishKey (line 17) | type confirmPublishKey struct type exchangeKey (line 18) | type exchangeKey struct type exchangeTypeKey (line 19) | type exchangeTypeKey struct type withoutExchangeKey (line 20) | type withoutExchangeKey struct type requeueOnErrorKey (line 21) | type requeueOnErrorKey struct type deliveryMode (line 22) | type deliveryMode struct type priorityKey (line 23) | type priorityKey struct type contentType (line 24) | type contentType struct type contentEncoding (line 25) | type contentEncoding struct type correlationID (line 26) | type correlationID struct type replyTo (line 27) | type replyTo struct type expiration (line 28) | type expiration struct type messageID (line 29) | type messageID struct type timestamp (line 30) | type timestamp struct type typeMsg (line 31) | type typeMsg struct type userID (line 32) | type userID struct type appID (line 33) | type appID struct type externalAuth (line 34) | type externalAuth struct type durableExchange (line 35) | type durableExchange struct function ServerDurableQueue (line 38) | func ServerDurableQueue() server.SubscriberOption { function ServerAckOnSuccess (line 43) | func ServerAckOnSuccess() server.SubscriberOption { function DurableQueue (line 48) | func DurableQueue() broker.SubscribeOption { function DurableExchange (line 53) | func DurableExchange() broker.Option { function Headers (line 58) | func Headers(h map[string]interface{}) broker.SubscribeOption { function QueueArguments (line 63) | func QueueArguments(h map[string]interface{}) broker.SubscribeOption { function RequeueOnError (line 67) | func RequeueOnError() broker.SubscribeOption { function ExchangeName (line 72) | func ExchangeName(e string) broker.Option { function WithoutExchange (line 78) | func WithoutExchange() broker.Option { function ExchangeType (line 83) | func ExchangeType(t MQExchangeType) broker.Option { function PrefetchCount (line 88) | func PrefetchCount(c int) broker.Option { function PrefetchGlobal (line 93) | func PrefetchGlobal() broker.Option { function ConfirmPublish (line 98) | func ConfirmPublish() broker.Option { function DeliveryMode (line 103) | func DeliveryMode(value uint8) broker.PublishOption { function Priority (line 108) | func Priority(value uint8) broker.PublishOption { function ContentType (line 113) | func ContentType(value string) broker.PublishOption { function ContentEncoding (line 118) | func ContentEncoding(value string) broker.PublishOption { function CorrelationID (line 123) | func CorrelationID(value string) broker.PublishOption { function ReplyTo (line 128) | func ReplyTo(value string) broker.PublishOption { function Expiration (line 133) | func Expiration(value string) broker.PublishOption { function MessageId (line 138) | func MessageId(value string) broker.PublishOption { function Timestamp (line 143) | func Timestamp(value time.Time) broker.PublishOption { function TypeMsg (line 148) | func TypeMsg(value string) broker.PublishOption { function UserID (line 153) | func UserID(value string) broker.PublishOption { function AppID (line 158) | func AppID(value string) broker.PublishOption { function ExternalAuth (line 162) | func ExternalAuth() broker.Option { type subscribeContextKey (line 166) | type subscribeContextKey struct function SubscribeContext (line 169) | func SubscribeContext(ctx context.Context) broker.SubscribeOption { type ackSuccessKey (line 173) | type ackSuccessKey struct function AckOnSuccess (line 176) | func AckOnSuccess() broker.SubscribeOption { function PublishDeliveryMode (line 182) | func PublishDeliveryMode(mode uint8) client.PublishOption { FILE: broker/rabbitmq/rabbitmq.go type rbroker (line 17) | type rbroker struct method Publish (line 165) | func (r *rbroker) Publish(topic string, msg *broker.Message, opts ...b... method Subscribe (line 242) | func (r *rbroker) Subscribe(topic string, handler broker.Handler, opts... method Options (line 322) | func (r *rbroker) Options() broker.Options { method String (line 326) | func (r *rbroker) String() string { method Address (line 330) | func (r *rbroker) Address() string { method Init (line 342) | func (r *rbroker) Init(opts ...broker.Option) error { method Connect (line 350) | func (r *rbroker) Connect() error { method Disconnect (line 374) | func (r *rbroker) Disconnect() error { method getExchange (line 399) | func (r *rbroker) getExchange() Exchange { method getPrefetchCount (line 417) | func (r *rbroker) getPrefetchCount() int { method getPrefetchGlobal (line 424) | func (r *rbroker) getPrefetchGlobal() bool { method getConfirmPublish (line 431) | func (r *rbroker) getConfirmPublish() bool { method getWithoutExchange (line 438) | func (r *rbroker) getWithoutExchange() bool { type subscriber (line 27) | type subscriber struct method Options (line 64) | func (s *subscriber) Options() broker.SubscribeOptions { method Topic (line 68) | func (s *subscriber) Topic() string { method Unsubscribe (line 72) | func (s *subscriber) Unsubscribe() error { method resubscribe (line 90) | func (s *subscriber) resubscribe() { type publication (line 41) | type publication struct method Ack (line 48) | func (p *publication) Ack() error { method Error (line 52) | func (p *publication) Error() error { method Topic (line 56) | func (p *publication) Topic() string { method Message (line 60) | func (p *publication) Message() *broker.Message { function NewBroker (line 383) | func NewBroker(opts ...broker.Option) broker.Broker { FILE: broker/rabbitmq/rabbitmq_test.go type Example (line 18) | type Example struct method Handler (line 30) | func (e *Example) Handler(ctx context.Context, r interface{}) error { function init (line 20) | func init() { type TestEvent (line 24) | type TestEvent struct function TestDurable (line 34) | func TestDurable(t *testing.T) { function TestWithoutExchange (line 74) | func TestWithoutExchange(t *testing.T) { function TestFanoutExchange (line 133) | func TestFanoutExchange(t *testing.T) { function TestDirectExchange (line 191) | func TestDirectExchange(t *testing.T) { function TestTopicExchange (line 249) | func TestTopicExchange(t *testing.T) { FILE: cache/cache.go type Cache (line 25) | type Cache interface type Item (line 37) | type Item struct method Expired (line 43) | func (i *Item) Expired() bool { function NewCache (line 52) | func NewCache(opts ...Option) Cache { FILE: cache/memory.go type memCache (line 9) | type memCache struct method Get (line 16) | func (c *memCache) Get(ctx context.Context, key string) (interface{}, ... method Put (line 31) | func (c *memCache) Put(ctx context.Context, key string, val interface{... method Delete (line 51) | func (c *memCache) Delete(ctx context.Context, key string) error { method String (line 64) | func (m *memCache) String() string { FILE: cache/memory_test.go function TestCache (line 16) | func TestCache(t *testing.T) { function TestCacheWithOptions (line 88) | func TestCacheWithOptions(t *testing.T) { FILE: cache/options.go type Options (line 11) | type Options struct type Option (line 23) | type Option function Expiration (line 26) | func Expiration(d time.Duration) Option { function Items (line 33) | func Items(i map[string]Item) Option { function WithAddress (line 40) | func WithAddress(addr string) Option { function WithContext (line 47) | func WithContext(c context.Context) Option { function WithLogger (line 54) | func WithLogger(l logger.Logger) Option { function NewOptions (line 61) | func NewOptions(opts ...Option) Options { FILE: cache/options_test.go function TestOptions (line 8) | func TestOptions(t *testing.T) { FILE: cache/redis/options.go type redisOptionsContextKey (line 10) | type redisOptionsContextKey struct function WithRedisOptions (line 13) | func WithRedisOptions(options rclient.UniversalOptions) cache.Option { function newUniversalClient (line 23) | func newUniversalClient(options cache.Options) rclient.UniversalClient { FILE: cache/redis/options_test.go function Test_newUniversalClient (line 12) | func Test_newUniversalClient(t *testing.T) { function Test_newUniversalClientCluster (line 92) | func Test_newUniversalClientCluster(t *testing.T) { FILE: cache/redis/redis.go function NewRedisCache (line 12) | func NewRedisCache(opts ...cache.Option) cache.Cache { type redisCache (line 20) | type redisCache struct method Get (line 25) | func (c *redisCache) Get(ctx context.Context, key string) (interface{}... method Put (line 47) | func (c *redisCache) Put(ctx context.Context, key string, val interfac... method Delete (line 51) | func (c *redisCache) Delete(ctx context.Context, key string) error { method String (line 55) | func (m *redisCache) String() string { FILE: cache/redis/redis_test.go function TestCache (line 20) | func TestCache(t *testing.T) { FILE: client/backoff.go type BackoffFunc (line 10) | type BackoffFunc function exponentialBackoff (line 12) | func exponentialBackoff(ctx context.Context, req Request, attempts int) ... FILE: client/backoff_test.go function TestBackoff (line 9) | func TestBackoff(t *testing.T) { FILE: client/cache.go function NewCache (line 17) | func NewCache() *Cache { type Cache (line 24) | type Cache struct method Get (line 29) | func (c *Cache) Get(ctx context.Context, req *Request) (interface{}, b... method Set (line 34) | func (c *Cache) Set(ctx context.Context, req *Request, rsp interface{}... method List (line 39) | func (c *Cache) List() map[string]string { function key (line 53) | func key(ctx context.Context, req *Request) string { FILE: client/cache_test.go function TestCache (line 12) | func TestCache(t *testing.T) { function TestCacheKey (line 36) | func TestCacheKey(t *testing.T) { FILE: client/client.go type Client (line 20) | type Client interface type Router (line 32) | type Router interface type Message (line 37) | type Message interface type Request (line 44) | type Request interface type Response (line 62) | type Response interface type Stream (line 72) | type Stream interface type Closer (line 91) | type Closer interface type Option (line 97) | type Option type CallOption (line 100) | type CallOption type PublishOption (line 103) | type PublishOption type MessageOption (line 106) | type MessageOption type RequestOption (line 109) | type RequestOption function Call (line 112) | func Call(ctx context.Context, request Request, response interface{}, op... function Publish (line 118) | func Publish(ctx context.Context, msg Message, opts ...PublishOption) er... function NewMessage (line 123) | func NewMessage(topic string, payload interface{}, opts ...MessageOption... function NewRequest (line 129) | func NewRequest(service, endpoint string, request interface{}, reqOpts .... function NewStream (line 135) | func NewStream(ctx context.Context, request Request, opts ...CallOption)... function String (line 139) | func String() string { FILE: client/context.go type clientKey (line 7) | type clientKey struct function FromContext (line 9) | func FromContext(ctx context.Context) (Client, bool) { function NewContext (line 14) | func NewContext(ctx context.Context, c Client) context.Context { FILE: client/grpc/codec.go type jsonCodec (line 19) | type jsonCodec struct method Marshal (line 116) | func (jsonCodec) Marshal(v interface{}) ([]byte, error) { method Unmarshal (line 132) | func (jsonCodec) Unmarshal(data []byte, v interface{}) error { method Name (line 151) | func (jsonCodec) Name() string { type protoCodec (line 20) | type protoCodec struct method Marshal (line 65) | func (protoCodec) Marshal(v interface{}) ([]byte, error) { method Unmarshal (line 79) | func (protoCodec) Unmarshal(data []byte, v interface{}) error { method Name (line 91) | func (protoCodec) Name() string { type bytesCodec (line 21) | type bytesCodec struct method Marshal (line 95) | func (bytesCodec) Marshal(v interface{}) ([]byte, error) { method Unmarshal (line 103) | func (bytesCodec) Unmarshal(data []byte, v interface{}) error { method Name (line 112) | func (bytesCodec) Name() string { type wrapCodec (line 22) | type wrapCodec struct method String (line 44) | func (w wrapCodec) String() string { method Marshal (line 48) | func (w wrapCodec) Marshal(v interface{}) ([]byte, error) { method Unmarshal (line 56) | func (w wrapCodec) Unmarshal(data []byte, v interface{}) error { function UseNumber (line 40) | func UseNumber() { type grpcCodec (line 155) | type grpcCodec struct method ReadHeader (line 166) | func (g *grpcCodec) ReadHeader(m *codec.Message, mt codec.MessageType)... method ReadBody (line 187) | func (g *grpcCodec) ReadBody(v interface{}) error { method Write (line 194) | func (g *grpcCodec) Write(m *codec.Message, v interface{}) error { method Close (line 203) | func (g *grpcCodec) Close() error { method String (line 207) | func (g *grpcCodec) String() string { FILE: client/grpc/error.go function microError (line 11) | func microError(err error) error { function microStatusFromGrpcCode (line 42) | func microStatusFromGrpcCode(code codes.Code) int32 { FILE: client/grpc/grpc.go type grpcClient (line 29) | type grpcClient struct method secure (line 44) | func (g *grpcClient) secure(addr string) grpc.DialOption { method next (line 77) | func (g *grpcClient) next(request client.Request, opts client.CallOpti... method call (line 101) | func (g *grpcClient) call(ctx context.Context, node *registry.Node, re... method stream (line 186) | func (g *grpcClient) stream(ctx context.Context, node *registry.Node, ... method poolMaxStreams (line 305) | func (g *grpcClient) poolMaxStreams() int { method poolMaxIdle (line 316) | func (g *grpcClient) poolMaxIdle() int { method maxRecvMsgSizeValue (line 327) | func (g *grpcClient) maxRecvMsgSizeValue() int { method maxSendMsgSizeValue (line 338) | func (g *grpcClient) maxSendMsgSizeValue() int { method newGRPCCodec (line 349) | func (g *grpcClient) newGRPCCodec(contentType string) (encoding.Codec,... method Init (line 365) | func (g *grpcClient) Init(opts ...client.Option) error { method Options (line 384) | func (g *grpcClient) Options() client.Options { method NewMessage (line 388) | func (g *grpcClient) NewMessage(topic string, msg interface{}, opts ..... method NewRequest (line 392) | func (g *grpcClient) NewRequest(service, method string, req interface{... method Call (line 396) | func (g *grpcClient) Call(ctx context.Context, req client.Request, rsp... method Stream (line 508) | func (g *grpcClient) Stream(ctx context.Context, req client.Request, o... method Publish (line 605) | func (g *grpcClient) Publish(ctx context.Context, p client.Message, op... method String (line 657) | func (g *grpcClient) String() string { method getGrpcDialOptions (line 661) | func (g *grpcClient) getGrpcDialOptions() []grpc.DialOption { function init (line 35) | func init() { function newClient (line 681) | func newClient(opts ...client.Option) client.Client { function NewClient (line 707) | func NewClient(opts ...client.Option) client.Client { FILE: client/grpc/grpc_pool.go type pool (line 12) | type pool struct method getConn (line 70) | func (p *pool) getConn(dialCtx context.Context, addr string, opts ...g... method release (line 155) | func (p *pool) release(addr string, conn *poolConn, err error) { type streamsPool (line 25) | type streamsPool struct type poolConn (line 36) | type poolConn struct method Close (line 190) | func (conn *poolConn) Close() { function newPool (line 54) | func newPool(size int, ttl time.Duration, idle int, ms int) *pool { function removeConn (line 194) | func removeConn(conn *poolConn) { function addConnAfter (line 208) | func addConnAfter(conn *poolConn, after *poolConn) { FILE: client/grpc/grpc_pool_test.go function testPool (line 13) | func testPool(t *testing.T, size int, ttl time.Duration, idle int, ms in... function TestGRPCPool (line 60) | func TestGRPCPool(t *testing.T) { FILE: client/grpc/grpc_test.go type greeterServer (line 17) | type greeterServer struct method SayHello (line 22) | func (g *greeterServer) SayHello(ctx context.Context, in *pb.HelloRequ... function TestGRPCClient (line 29) | func TestGRPCClient(t *testing.T) { FILE: client/grpc/message.go type grpcEvent (line 7) | type grpcEvent struct method ContentType (line 30) | func (g *grpcEvent) ContentType() string { method Topic (line 34) | func (g *grpcEvent) Topic() string { method Payload (line 38) | func (g *grpcEvent) Payload() interface{} { function newGRPCEvent (line 13) | func newGRPCEvent(topic string, payload interface{}, contentType string,... FILE: client/grpc/options.go type poolMaxStreams (line 31) | type poolMaxStreams struct type poolMaxIdle (line 32) | type poolMaxIdle struct type codecsKey (line 33) | type codecsKey struct type tlsAuth (line 34) | type tlsAuth struct type maxRecvMsgSizeKey (line 35) | type maxRecvMsgSizeKey struct type maxSendMsgSizeKey (line 36) | type maxSendMsgSizeKey struct type grpcDialOptions (line 37) | type grpcDialOptions struct type grpcCallOptions (line 38) | type grpcCallOptions struct function PoolMaxStreams (line 41) | func PoolMaxStreams(n int) client.Option { function PoolMaxIdle (line 51) | func PoolMaxIdle(d int) client.Option { function Codec (line 61) | func Codec(contentType string, c encoding.Codec) client.Option { function AuthTLS (line 76) | func AuthTLS(t *tls.Config) client.Option { function MaxRecvMsgSize (line 86) | func MaxRecvMsgSize(s int) client.Option { function MaxSendMsgSize (line 96) | func MaxSendMsgSize(s int) client.Option { function DialOptions (line 106) | func DialOptions(opts ...grpc.DialOption) client.CallOption { function CallOptions (line 116) | func CallOptions(opts ...grpc.CallOption) client.CallOption { function callOpts (line 125) | func callOpts(opts client.CallOptions) []grpc.CallOption { FILE: client/grpc/request.go type grpcRequest (line 11) | type grpcRequest struct method ContentType (line 61) | func (g *grpcRequest) ContentType() string { method Service (line 65) | func (g *grpcRequest) Service() string { method Method (line 69) | func (g *grpcRequest) Method() string { method Endpoint (line 73) | func (g *grpcRequest) Endpoint() string { method Codec (line 77) | func (g *grpcRequest) Codec() codec.Writer { method Body (line 81) | func (g *grpcRequest) Body() interface{} { method Stream (line 85) | func (g *grpcRequest) Stream() bool { function methodToGRPC (line 21) | func methodToGRPC(service, method string) string { function newGRPCRequest (line 41) | func newGRPCRequest(service, method string, request interface{}, content... FILE: client/grpc/request_test.go function TestMethodToGRPC (line 7) | func TestMethodToGRPC(t *testing.T) { FILE: client/grpc/response.go type response (line 12) | type response struct method Codec (line 20) | func (r *response) Codec() codec.Reader { method Header (line 25) | func (r *response) Header() map[string]string { method Read (line 38) | func (r *response) Read() ([]byte, error) { FILE: client/grpc/stream.go type grpcStream (line 13) | type grpcStream struct method Context (line 25) | func (g *grpcStream) Context() context.Context { method Request (line 29) | func (g *grpcStream) Request() client.Request { method Response (line 33) | func (g *grpcStream) Response() client.Response { method Send (line 37) | func (g *grpcStream) Send(msg interface{}) error { method Recv (line 45) | func (g *grpcStream) Recv(msg interface{}) (err error) { method Error (line 55) | func (g *grpcStream) Error() error { method setError (line 61) | func (g *grpcStream) setError(e error) { method CloseSend (line 67) | func (g *grpcStream) CloseSend() error { method Close (line 71) | func (g *grpcStream) Close() error { FILE: client/options.go type Options (line 35) | type Options struct type CallOptions (line 74) | type CallOptions struct type PublishOptions (line 110) | type PublishOptions struct type MessageOptions (line 118) | type MessageOptions struct type RequestOptions (line 122) | type RequestOptions struct function NewOptions (line 132) | func NewOptions(options ...Option) Options { function Broker (line 164) | func Broker(b broker.Broker) Option { function Codec (line 171) | func Codec(contentType string, c codec.NewCodec) Option { function ContentType (line 178) | func ContentType(ct string) Option { function PoolSize (line 185) | func PoolSize(d int) Option { function PoolTTL (line 192) | func PoolTTL(d time.Duration) Option { function PoolCloseTimeout (line 199) | func PoolCloseTimeout(d time.Duration) Option { function Registry (line 206) | func Registry(r registry.Registry) Option { function Transport (line 215) | func Transport(t transport.Transport) Option { function Selector (line 222) | func Selector(s selector.Selector) Option { function Wrap (line 229) | func Wrap(w Wrapper) Option { function WrapCall (line 236) | func WrapCall(cw ...CallWrapper) Option { function Backoff (line 244) | func Backoff(fn BackoffFunc) Option { function Retries (line 251) | func Retries(i int) Option { function Retry (line 258) | func Retry(fn RetryFunc) Option { function ConnectionTimeout (line 265) | func ConnectionTimeout(t time.Duration) Option { function RequestTimeout (line 272) | func RequestTimeout(d time.Duration) Option { function StreamTimeout (line 279) | func StreamTimeout(d time.Duration) Option { function DialTimeout (line 286) | func DialTimeout(d time.Duration) Option { function WithExchange (line 295) | func WithExchange(e string) PublishOption { function PublishContext (line 302) | func PublishContext(ctx context.Context) PublishOption { function WithAddress (line 309) | func WithAddress(a ...string) CallOption { function WithSelectOption (line 315) | func WithSelectOption(so ...selector.SelectOption) CallOption { function WithCallWrapper (line 322) | func WithCallWrapper(cw ...CallWrapper) CallOption { function WithBackoff (line 330) | func WithBackoff(fn BackoffFunc) CallOption { function WithRetry (line 338) | func WithRetry(fn RetryFunc) CallOption { function WithRetries (line 346) | func WithRetries(i int) CallOption { function WithRequestTimeout (line 354) | func WithRequestTimeout(d time.Duration) CallOption { function WithConnClose (line 361) | func WithConnClose() CallOption { function WithStreamTimeout (line 368) | func WithStreamTimeout(d time.Duration) CallOption { function WithDialTimeout (line 376) | func WithDialTimeout(d time.Duration) CallOption { function WithServiceToken (line 384) | func WithServiceToken() CallOption { function WithCache (line 392) | func WithCache(c time.Duration) CallOption { function WithMessageContentType (line 398) | func WithMessageContentType(ct string) MessageOption { function WithConnectionTimeout (line 404) | func WithConnectionTimeout(d time.Duration) CallOption { function WithContentType (line 412) | func WithContentType(ct string) RequestOption { function StreamingRequest (line 418) | func StreamingRequest() RequestOption { function WithRouter (line 425) | func WithRouter(r Router) Option { function WithLogger (line 432) | func WithLogger(l logger.Logger) Option { FILE: client/options_test.go function TestCallOptions (line 10) | func TestCallOptions(t *testing.T) { FILE: client/retry.go type RetryFunc (line 10) | type RetryFunc function RetryAlways (line 13) | func RetryAlways(ctx context.Context, req Request, retryCount int, err e... function RetryOnError (line 18) | func RetryOnError(ctx context.Context, req Request, retryCount int, err ... FILE: client/rpc_client.go constant packageID (line 29) | packageID = "go.micro.client" type rpcClient (line 32) | type rpcClient struct method newCodec (line 67) | func (r *rpcClient) newCodec(contentType string) (codec.NewCodec, erro... method call (line 79) | func (r *rpcClient) call( method stream (line 236) | func (r *rpcClient) stream(ctx context.Context, node *registry.Node, r... method Init (line 350) | func (r *rpcClient) Init(opts ...Option) error { method Options (line 382) | func (r *rpcClient) Options() Options { method next (line 390) | func (r *rpcClient) next(request Request, opts CallOptions) (selector.... method Call (line 427) | func (r *rpcClient) Call(ctx context.Context, request Request, respons... method Stream (line 554) | func (r *rpcClient) Stream(ctx context.Context, request Request, opts ... method Publish (line 655) | func (r *rpcClient) Publish(ctx context.Context, msg Message, opts ...... method NewMessage (line 729) | func (r *rpcClient) NewMessage(topic string, message interface{}, opts... method NewRequest (line 733) | func (r *rpcClient) NewRequest(service, method string, request interfa... method String (line 737) | func (r *rpcClient) String() string { function newRPCClient (line 40) | func newRPCClient(opt ...Option) Client { FILE: client/rpc_client_test.go constant serviceName (line 14) | serviceName = "test.service" constant serviceEndpoint (line 15) | serviceEndpoint = "Test.Endpoint" function newTestRegistry (line 18) | func newTestRegistry() registry.Registry { function TestCallAddress (line 22) | func TestCallAddress(t *testing.T) { function TestCallRetry (line 71) | func TestCallRetry(t *testing.T) { function TestCallWrapper (line 114) | func TestCallWrapper(t *testing.T) { FILE: client/rpc_codec.go constant lastStreamResponseError (line 21) | lastStreamResponseError = "EOS" type serverError (line 26) | type serverError method Error (line 28) | func (e serverError) Error() string { type rpcCodec (line 37) | type rpcCodec struct method Write (line 176) | func (c *rpcCodec) Write(message *codec.Message, body interface{}) err... method ReadHeader (line 221) | func (c *rpcCodec) ReadHeader(msg *codec.Message, r codec.MessageType)... method ReadBody (line 249) | func (c *rpcCodec) ReadBody(b interface{}) error { method Close (line 264) | func (c *rpcCodec) Close() error { method String (line 280) | func (c *rpcCodec) String() string { type readWriteCloser (line 48) | type readWriteCloser struct method Read (line 79) | func (rwc *readWriteCloser) Read(p []byte) (n int, err error) { method Write (line 83) | func (rwc *readWriteCloser) Write(p []byte) (n int, err error) { method Close (line 87) | func (rwc *readWriteCloser) Close() error { function getHeaders (line 94) | func getHeaders(m *codec.Message) { function setHeaders (line 116) | func setHeaders(m *codec.Message, stream string) { function setupProtocol (line 137) | func setupProtocol(msg *transport.Message, node *registry.Node) codec.Ne... function newRPCCodec (line 161) | func newRPCCodec(req *transport.Message, client transport.Client, c code... FILE: client/rpc_message.go type message (line 3) | type message struct method ContentType (line 26) | func (m *message) ContentType() string { method Topic (line 30) | func (m *message) Topic() string { method Payload (line 34) | func (m *message) Payload() interface{} { function newMessage (line 9) | func newMessage(topic string, payload interface{}, contentType string, o... FILE: client/rpc_request.go type rpcRequest (line 7) | type rpcRequest struct method ContentType (line 39) | func (r *rpcRequest) ContentType() string { method Service (line 43) | func (r *rpcRequest) Service() string { method Method (line 47) | func (r *rpcRequest) Method() string { method Endpoint (line 51) | func (r *rpcRequest) Endpoint() string { method Body (line 55) | func (r *rpcRequest) Body() interface{} { method Codec (line 59) | func (r *rpcRequest) Codec() codec.Writer { method Stream (line 63) | func (r *rpcRequest) Stream() bool { function newRequest (line 17) | func newRequest(service, endpoint string, request interface{}, contentTy... FILE: client/rpc_request_test.go function TestRequestOptions (line 7) | func TestRequestOptions(t *testing.T) { FILE: client/rpc_response.go type rpcResponse (line 8) | type rpcResponse struct method Codec (line 15) | func (r *rpcResponse) Codec() codec.Reader { method Header (line 19) | func (r *rpcResponse) Header() map[string]string { method Read (line 23) | func (r *rpcResponse) Read() ([]byte, error) { FILE: client/rpc_stream.go type rpcStream (line 13) | type rpcStream struct method isClosed (line 33) | func (r *rpcStream) isClosed() bool { method Context (line 42) | func (r *rpcStream) Context() context.Context { method Request (line 46) | func (r *rpcStream) Request() Request { method Response (line 50) | func (r *rpcStream) Response() Response { method Send (line 54) | func (r *rpcStream) Send(msg interface{}) error { method Recv (line 79) | func (r *rpcStream) Recv(msg interface{}) error { method Error (line 140) | func (r *rpcStream) Error() error { method CloseSend (line 147) | func (r *rpcStream) CloseSend() error { method Close (line 151) | func (r *rpcStream) Close() error { FILE: client/wrapper.go type CallFunc (line 10) | type CallFunc type CallWrapper (line 13) | type CallWrapper type Wrapper (line 16) | type Wrapper type StreamWrapper (line 19) | type StreamWrapper FILE: cmd/cmd.go type Cmd (line 41) | type Cmd interface type cmd (line 51) | type cmd struct method App (line 375) | func (c *cmd) App() *cli.App { method Options (line 379) | func (c *cmd) Options() Options { method Before (line 383) | func (c *cmd) Before(ctx *cli.Context) error { method setRegistry (line 701) | func (c *cmd) setRegistry(r registry.Registry) ([]server.Option, []cli... method setStream (line 719) | func (c *cmd) setStream(s events.Stream) ([]server.Option, []client.Op... method setBroker (line 730) | func (c *cmd) setBroker(b broker.Broker) ([]server.Option, []client.Op... method setStore (line 739) | func (c *cmd) setStore(s store.Store) ([]server.Option, []client.Optio... method setTransport (line 746) | func (c *cmd) setTransport(t transport.Transport) ([]server.Option, []... method Init (line 755) | func (c *cmd) Init(opts ...Option) error { type Option (line 56) | type Option function init (line 298) | func init() { function newCmd (line 301) | func newCmd(opts ...Option) Cmd { function DefaultOptions (line 771) | func DefaultOptions() Options { function App (line 775) | func App() *cli.App { function Init (line 779) | func Init(opts ...Option) error { function NewCmd (line 783) | func NewCmd(opts ...Option) Cmd { function Register (line 788) | func Register(cmds ...*cli.Command) { FILE: cmd/micro-mcp-gateway/main.go function main (line 46) | func main() { function run (line 114) | func run(c *cli.Context) error { function newRegistry (line 206) | func newRegistry(name, address string) (registry.Registry, error) { function parseScopes (line 224) | func parseScopes(raw []string) map[string][]string { FILE: cmd/micro/cli/build/build.go function Build (line 18) | func Build(c *cli.Context) error { function buildService (line 79) | func buildService(name, dir, outDir, targetOS, targetArch string) error { function Docker (line 108) | func Docker(c *cli.Context) error { constant dockerfileTemplate (line 148) | dockerfileTemplate = `FROM golang:1.22-alpine AS builder function buildDockerImage (line 162) | func buildDockerImage(name, dir string, port int, tag, registry string, ... function Compose (line 208) | func Compose(c *cli.Context) error { function init (line 275) | func init() { FILE: cmd/micro/cli/cli.go function genProtoHandler (line 32) | func genProtoHandler(c *cli.Context) error { function init (line 39) | func init() { FILE: cmd/micro/cli/deploy/deploy.go constant defaultRemotePath (line 19) | defaultRemotePath = "/opt/micro" function Deploy (line 23) | func Deploy(c *cli.Context) error { function showDeployHelp (line 55) | func showDeployHelp() error { function showDeployTargets (line 75) | func showDeployTargets(cfg *config.Config) error { function deploySSH (line 85) | func deploySSH(c *cli.Context, target string, cfg *config.Config) error { function prefixServices (line 218) | func prefixServices(services []string) []string { function checkSSH (line 226) | func checkSSH(host string) error { function checkServerInit (line 248) | func checkServerInit(host, remotePath string) error { function buildBinaries (line 268) | func buildBinaries(absDir string, cfg *config.Config, forceBuild bool, s... function copyBinaries (line 341) | func copyBinaries(target, binDir, remotePath string) error { function setupSystemdServices (line 386) | func setupSystemdServices(target, remotePath string, services []string) ... function restartServices (line 403) | func restartServices(target string, services []string) error { function checkServicesHealth (line 414) | func checkServicesHealth(target string, services []string) (healthy, unh... function checkPlatform (line 428) | func checkPlatform() error { function init (line 435) | func init() { FILE: cmd/micro/cli/gen/generate.go type handlerData (line 107) | type handlerData struct type methodData (line 112) | type methodData struct type endpointData (line 118) | type endpointData struct type modelData (line 124) | type modelData struct function generateHandler (line 128) | func generateHandler(c *cli.Context) error { function generateEndpoint (line 160) | func generateEndpoint(c *cli.Context) error { function generateModel (line 179) | func generateModel(c *cli.Context) error { function generateFile (line 192) | func generateFile(dir, filename, tmplStr string, data interface{}) error { function init (line 229) | func init() { FILE: cmd/micro/cli/init/init.go constant systemdTemplate (line 17) | systemdTemplate = `[Unit] function Init (line 47) | func Init(c *cli.Context) error { function createMicroUser (line 152) | func createMicroUser() error { function initRemote (line 171) | func initRemote(c *cli.Context, host string) error { function checkSSH (line 196) | func checkSSH(host string) error { function getHostname (line 219) | func getHostname() string { function init (line 227) | func init() { FILE: cmd/micro/cli/new/new.go function protoComments (line 21) | func protoComments(goDir, alias string) []string { type config (line 32) | type config struct type file (line 49) | type file struct function write (line 54) | func write(c config, file, tmpl string) error { function create (line 81) | func create(c config) error { function addFileToTree (line 121) | func addFileToTree(root treeprint.Tree, file string) { function Run (line 137) | func Run(ctx *cli.Context) error { function runInDir (line 240) | func runInDir(dir, cmd string) error { function printTree (line 249) | func printTree(dir string) { FILE: cmd/micro/cli/remote/remote.go constant defaultRemotePath (line 17) | defaultRemotePath = "/opt/micro" function Status (line 20) | func Status(c *cli.Context) error { function localStatus (line 28) | func localStatus(c *cli.Context) error { function remoteStatus (line 87) | func remoteStatus(host string) error { function Logs (line 143) | func Logs(c *cli.Context) error { function localLogs (line 155) | func localLogs(c *cli.Context, service string, follow bool, lines int) e... function remoteLogs (line 202) | func remoteLogs(host, service string, follow bool, lines int) error { function Stop (line 230) | func Stop(c *cli.Context) error { function localStop (line 244) | func localStop(service string) error { function remoteStop (line 286) | func remoteStop(host, service string) error { function init (line 296) | func init() { FILE: cmd/micro/cli/util/dynamic.go function AddMetadataToContext (line 23) | func AddMetadataToContext(ctx context.Context, metadataStrings []string)... function LookupService (line 46) | func LookupService(name string) (*registry.Service, error) { function FormatServiceUsage (line 52) | func FormatServiceUsage(srv *registry.Service, c *cli.Context) string { function lowercaseInitial (line 102) | func lowercaseInitial(str string) string { function renderFlags (line 109) | func renderFlags(endpoint *registry.Endpoint) string { function renderValue (line 117) | func renderValue(path []string, value *registry.Value) string { function CallService (line 131) | func CallService(srv *registry.Service, args []string) error { function splitCmdArgs (line 200) | func splitCmdArgs(arguments []string) ([]string, map[string][]string, er... function constructEndpoint (line 243) | func constructEndpoint(args []string) (string, error) { function ShouldRenderHelp (line 262) | func ShouldRenderHelp(args []string) bool { function FlagsToRequest (line 285) | func FlagsToRequest(flags map[string][]string, req *registry.Value) (map... function serviceWithName (line 436) | func serviceWithName(name string) (*registry.Service, error) { FILE: cmd/micro/cli/util/dynamic_test.go type parseCase (line 14) | type parseCase struct function TestDynamicFlagParsing (line 20) | func TestDynamicFlagParsing(t *testing.T) { function TestAddMetadataToContext (line 383) | func TestAddMetadataToContext(t *testing.T) { FILE: cmd/micro/cli/util/util.go type Exec (line 14) | type Exec function Print (line 16) | func Print(e Exec) func(*cli.Context) error { function CliError (line 30) | func CliError(err error) cli.ExitCoder { FILE: cmd/micro/main.go function init (line 20) | func init() { function main (line 24) | func main() { FILE: cmd/micro/mcp/mcp.go function init (line 23) | func init() { function serveAction (line 218) | func serveAction(ctx *cli.Context) error { function listAction (line 253) | func listAction(ctx *cli.Context) error { function testAction (line 320) | func testAction(ctx *cli.Context) error { function parseTool (line 435) | func parseTool(toolName string) []string { function docsAction (line 440) | func docsAction(ctx *cli.Context) error { function exportAction (line 564) | func exportAction(ctx *cli.Context) error { function exportLangChain (line 613) | func exportLangChain(writer *os.File, services []*registry.Service, opts... function exportOpenAPI (line 675) | func exportOpenAPI(writer *os.File, services []*registry.Service, opts m... function exportJSON (line 768) | func exportJSON(writer *os.File, services []*registry.Service, opts mcp.... FILE: cmd/micro/mcp/mcp_test.go function TestParseTool (line 8) | func TestParseTool(t *testing.T) { function TestExportFormats (line 51) | func TestExportFormats(t *testing.T) { function TestDocsFormats (line 66) | func TestDocsFormats(t *testing.T) { FILE: cmd/micro/run/config/config.go type Config (line 15) | type Config struct method TopologicalSort (line 224) | func (c *Config) TopologicalSort() ([]*Service, error) { method GetEnv (line 279) | func (c *Config) GetEnv(name string) map[string]string { type DeployTarget (line 22) | type DeployTarget struct type Service (line 29) | type Service struct function Load (line 37) | func Load(dir string) (*Config, error) { function ParseJSON (line 54) | func ParseJSON(path string) (*Config, error) { function ParseMu (line 88) | func ParseMu(path string) (*Config, error) { FILE: cmd/micro/run/config/config_test.go function TestParseMu (line 9) | func TestParseMu(t *testing.T) { function TestParseJSON (line 93) | func TestParseJSON(t *testing.T) { function TestTopologicalSort (line 137) | func TestTopologicalSort(t *testing.T) { function TestCircularDependency (line 173) | func TestCircularDependency(t *testing.T) { function TestLoad (line 187) | func TestLoad(t *testing.T) { FILE: cmd/micro/run/run.go constant colorReset (line 37) | colorReset = "\033[0m" function colorFor (line 39) | func colorFor(idx int) string { type serviceProcess (line 44) | type serviceProcess struct method start (line 60) | func (s *serviceProcess) start(logDir string) error { method stop (line 118) | func (s *serviceProcess) stop() { method restart (line 152) | func (s *serviceProcess) restart(logDir string) error { function waitForHealth (line 158) | func waitForHealth(port int, timeout time.Duration) bool { function Run (line 177) | func Run(c *cli.Context) error { function parsePid (line 413) | func parsePid(pidStr string) int { function processRunning (line 418) | func processRunning(pidStr string) bool { function printBanner (line 430) | func printBanner(services []*serviceProcess, gw *server.Gateway, watchin... function init (line 472) | func init() { FILE: cmd/micro/run/watcher/watcher.go type Event (line 13) | type Event struct type Watcher (line 19) | type Watcher struct method Events (line 66) | func (w *Watcher) Events() <-chan Event { method Start (line 71) | func (w *Watcher) Start() { method Stop (line 79) | func (w *Watcher) Stop() { method watch (line 83) | func (w *Watcher) watch() { method scan (line 120) | func (w *Watcher) scan(notify bool) []string { type Option (line 31) | type Option function WithInterval (line 34) | func WithInterval(d time.Duration) Option { function WithDebounce (line 41) | func WithDebounce(d time.Duration) Option { function New (line 48) | func New(dirs []string, opts ...Option) *Watcher { FILE: cmd/micro/server/gateway.go function StartGateway (line 26) | func StartGateway(opts GatewayOptions) (*Gateway, error) { function RunGateway (line 66) | func RunGateway(opts GatewayOptions) error { FILE: cmd/micro/server/server.go constant agentSystemPrompt (line 42) | agentSystemPrompt = "You are an agent that helps users interact with mic... type templates (line 52) | type templates struct type TemplateUser (line 66) | type TemplateUser struct function parseTemplates (line 75) | func parseTemplates() *templates { function getUser (line 93) | func getUser(r *http.Request) string { function decodeSegment (line 121) | func decodeSegment(seg string) ([]byte, error) { function decodeBase64Url (line 130) | func decodeBase64Url(s string) ([]byte, error) { function storeJWTToken (line 135) | func storeJWTToken(storeInst store.Store, token, userID string) { function isTokenRevoked (line 140) | func isTokenRevoked(storeInst store.Store, token string) bool { function deleteUserTokens (line 146) | func deleteUserTokens(storeInst store.Store, userID string) { function authRequired (line 156) | func authRequired(storeInst store.Store) func(http.HandlerFunc) http.Han... function wrapAuth (line 243) | func wrapAuth(authRequired func(http.HandlerFunc) http.HandlerFunc) func... function getDashboardData (line 257) | func getDashboardData() (serviceCount, runningCount, stoppedCount int, s... function getSidebarEndpoints (line 306) | func getSidebarEndpoints() ([]map[string]string, error) { function registerHandlers (line 331) | func registerHandlers(mux *http.ServeMux, tmpls *templates, storeInst st... function Run (line 1507) | func Run(c *cli.Context) error { function mapGoTypeToJSON (line 1528) | func mapGoTypeToJSON(goType string) string { function parsePid (line 1544) | func parsePid(pidStr string) int { function processRunning (line 1548) | func processRunning(pid string) bool { function generateKeyPair (line 1557) | func generateKeyPair(bits int) (*rsa.PrivateKey, error) { function exportPrivateKeyAsPEM (line 1564) | func exportPrivateKeyAsPEM(priv *rsa.PrivateKey) ([]byte, error) { function exportPublicKeyAsPEM (line 1577) | func exportPublicKeyAsPEM(pub *rsa.PublicKey) ([]byte, error) { function importPrivateKeyFromPEM (line 1590) | func importPrivateKeyFromPEM(privKeyPEM []byte) (*rsa.PrivateKey, error) { function importPublicKeyFromPEM (line 1597) | func importPublicKeyFromPEM(pubKeyPEM []byte) (*rsa.PublicKey, error) { function initAuth (line 1604) | func initAuth() error { function parseStartTime (line 1648) | func parseStartTime(s string) (time.Time, error) { function init (line 1651) | func init() { FILE: cmd/micro/server/util_jwt.go function InitJWTKeys (line 21) | func InitJWTKeys(privPath, pubPath string) error { function GenerateJWT (line 65) | func GenerateJWT(userID, userType string, scopes []string, expiry time.D... function ParseJWT (line 77) | func ParseJWT(tokenStr string) (jwt.MapClaims, error) { FILE: cmd/options.go type Options (line 21) | type Options struct function Name (line 64) | func Name(n string) Option { function Description (line 71) | func Description(d string) Option { function Version (line 78) | func Version(v string) Option { function Broker (line 84) | func Broker(b *broker.Broker) Option { function Cache (line 90) | func Cache(c *cache.Cache) Option { function Config (line 96) | func Config(c *config.Config) Option { function Selector (line 102) | func Selector(s *selector.Selector) Option { function Registry (line 108) | func Registry(r *registry.Registry) Option { function Transport (line 114) | func Transport(t *transport.Transport) Option { function Client (line 120) | func Client(c *client.Client) Option { function Server (line 126) | func Server(s *server.Server) Option { function Store (line 132) | func Store(s *store.Store) Option { function Stream (line 138) | func Stream(s *events.Stream) Option { function Tracer (line 144) | func Tracer(t *trace.Tracer) Option { function Auth (line 150) | func Auth(a *auth.Auth) Option { function Profile (line 156) | func Profile(p *profile.Profile) Option { function NewBroker (line 163) | func NewBroker(name string, b func(...broker.Option) broker.Broker) Opti... function NewStream (line 170) | func NewStream(name string, b func(...events.Option) events.Stream) Opti... function NewCache (line 177) | func NewCache(name string, c func(...cache.Option) cache.Cache) Option { function NewClient (line 184) | func NewClient(name string, b func(...client.Option) client.Client) Opti... function NewRegistry (line 191) | func NewRegistry(name string, r func(...registry.Option) registry.Regist... function NewSelector (line 198) | func NewSelector(name string, s func(...selector.Option) selector.Select... function NewServer (line 205) | func NewServer(name string, s func(...server.Option) server.Server) Opti... function NewTransport (line 212) | func NewTransport(name string, t func(...transport.Option) transport.Tra... function NewTracer (line 219) | func NewTracer(name string, t func(...trace.Option) trace.Tracer) Option { function NewAuth (line 226) | func NewAuth(name string, t func(...auth.Option) auth.Auth) Option { function NewConfig (line 233) | func NewConfig(name string, t func(...config.Option) (config.Config, err... function NewProfile (line 240) | func NewProfile(name string, t func(...profile.Option) profile.Profile) ... FILE: cmd/protoc-gen-micro/examples/greeter/greeter.pb.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type Request (line 23) | type Request struct method Reset (line 32) | func (x *Request) Reset() { method String (line 41) | func (x *Request) String() string { method ProtoMessage (line 45) | func (*Request) ProtoMessage() {} method ProtoReflect (line 47) | func (x *Request) ProtoReflect() protoreflect.Message { method Descriptor (line 60) | func (*Request) Descriptor() ([]byte, []int) { method GetName (line 64) | func (x *Request) GetName() string { method GetMsg (line 71) | func (x *Request) GetMsg() string { type Response (line 78) | type Response struct method Reset (line 86) | func (x *Response) Reset() { method String (line 95) | func (x *Response) String() string { method ProtoMessage (line 99) | func (*Response) ProtoMessage() {} method ProtoReflect (line 101) | func (x *Response) ProtoReflect() protoreflect.Message { method Descriptor (line 114) | func (*Response) Descriptor() ([]byte, []int) { method GetMsg (line 118) | func (x *Response) GetMsg() string { function file_greeter_proto_rawDescGZIP (line 149) | func file_greeter_proto_rawDescGZIP() []byte { function init (line 173) | func init() { file_greeter_proto_init() } function file_greeter_proto_init (line 174) | func file_greeter_proto_init() { FILE: cmd/protoc-gen-micro/examples/greeter/greeter.pb.micro.go type GreeterService (line 30) | type GreeterService interface type greeterService (line 35) | type greeterService struct method Hello (line 47) | func (c *greeterService) Hello(ctx context.Context, in *Request, opts ... method Stream (line 57) | func (c *greeterService) Stream(ctx context.Context, opts ...client.Ca... function NewGreeterService (line 40) | func NewGreeterService(name string, c client.Client) GreeterService { type Greeter_StreamService (line 66) | type Greeter_StreamService interface type greeterServiceStream (line 76) | type greeterServiceStream struct method CloseSend (line 80) | func (x *greeterServiceStream) CloseSend() error { method Close (line 84) | func (x *greeterServiceStream) Close() error { method Context (line 88) | func (x *greeterServiceStream) Context() context.Context { method SendMsg (line 92) | func (x *greeterServiceStream) SendMsg(m interface{}) error { method RecvMsg (line 96) | func (x *greeterServiceStream) RecvMsg(m interface{}) error { method Send (line 100) | func (x *greeterServiceStream) Send(m *Request) error { method Recv (line 104) | func (x *greeterServiceStream) Recv() (*Response, error) { type GreeterHandler (line 115) | type GreeterHandler interface function RegisterGreeterHandler (line 120) | func RegisterGreeterHandler(s server.Server, hdlr GreeterHandler, opts .... type greeterHandler (line 132) | type greeterHandler struct method Hello (line 136) | func (h *greeterHandler) Hello(ctx context.Context, in *Request, out *... method Stream (line 140) | func (h *greeterHandler) Stream(ctx context.Context, stream server.Str... type Greeter_StreamStream (line 144) | type Greeter_StreamStream interface type greeterStreamStream (line 153) | type greeterStreamStream struct method Close (line 157) | func (x *greeterStreamStream) Close() error { method Context (line 161) | func (x *greeterStreamStream) Context() context.Context { method SendMsg (line 165) | func (x *greeterStreamStream) SendMsg(m interface{}) error { method RecvMsg (line 169) | func (x *greeterStreamStream) RecvMsg(m interface{}) error { method Send (line 173) | func (x *greeterStreamStream) Send(m *Response) error { method Recv (line 177) | func (x *greeterStreamStream) Recv() (*Request, error) { FILE: cmd/protoc-gen-micro/generator/generator.go type Plugin (line 71) | type Plugin interface function RegisterPlugin (line 89) | func RegisterPlugin(p Plugin) { type GoImportPath (line 94) | type GoImportPath method String (line 96) | func (p GoImportPath) String() string { return strconv.Quote(string(p)) } type GoPackageName (line 99) | type GoPackageName type common (line 108) | type common struct method GoImportPath (line 113) | func (c *common) GoImportPath() GoImportPath { method File (line 117) | func (c *common) File() *FileDescriptor { return c.file } method proto3 (line 123) | func (c *common) proto3() bool { return fileIsProto3(c.file.FileDescri... function fileIsProto3 (line 119) | func fileIsProto3(file *descriptor.FileDescriptorProto) bool { type Descriptor (line 126) | type Descriptor struct method TypeName (line 141) | func (d *Descriptor) TypeName() []string { type EnumDescriptor (line 160) | type EnumDescriptor struct method TypeName (line 171) | func (e *EnumDescriptor) TypeName() (s []string) { method prefix (line 190) | func (e *EnumDescriptor) prefix() string { method integerValueAsString (line 200) | func (e *EnumDescriptor) integerValueAsString(name string) string { type ExtensionDescriptor (line 212) | type ExtensionDescriptor struct method TypeName (line 220) | func (e *ExtensionDescriptor) TypeName() (s []string) { method DescName (line 235) | func (e *ExtensionDescriptor) DescName() string { type ImportedDescriptor (line 246) | type ImportedDescriptor struct method TypeName (line 251) | func (id *ImportedDescriptor) TypeName() []string { return id.o.TypeNa... type FileDescriptor (line 256) | type FileDescriptor struct method VarName (line 280) | func (d *FileDescriptor) VarName() string { method goPackageOption (line 289) | func (d *FileDescriptor) goPackageOption() (impPath GoImportPath, pkg ... method goFileName (line 308) | func (d *FileDescriptor) goFileName(pathType pathType, moduleRoot stri... method addExport (line 340) | func (d *FileDescriptor) addExport(obj Object, sym symbol) { type symbol (line 345) | type symbol interface type messageSymbol (line 351) | type messageSymbol struct method GenerateAlias (line 364) | func (ms *messageSymbol) GenerateAlias(g *Generator, filename string, ... type getterSymbol (line 357) | type getterSymbol struct type enumSymbol (line 372) | type enumSymbol struct method GenerateAlias (line 377) | func (es enumSymbol) GenerateAlias(g *Generator, filename string, pkg ... type constOrVarSymbol (line 385) | type constOrVarSymbol struct method GenerateAlias (line 391) | func (cs constOrVarSymbol) GenerateAlias(g *Generator, filename string... type Object (line 400) | type Object interface type Generator (line 407) | type Generator struct method Error (line 455) | func (g *Generator) Error(err error, msgs ...string) { method Fail (line 462) | func (g *Generator) Fail(msgs ...string) { method CommandLineParameters (line 471) | func (g *Generator) CommandLineParameters(parameter string) { method DefaultPackageName (line 536) | func (g *Generator) DefaultPackageName(obj Object) string { method GoPackageName (line 545) | func (g *Generator) GoPackageName(importPath GoImportPath) GoPackageNa... method AddImport (line 560) | func (g *Generator) AddImport(importPath GoImportPath) GoPackageName { method defaultGoPackage (line 667) | func (g *Generator) defaultGoPackage() GoPackageName { method SetPackageNames (line 678) | func (g *Generator) SetPackageNames() { method WrapTypes (line 735) | func (g *Generator) WrapTypes() { method buildNestedDescriptors (line 796) | func (g *Generator) buildNestedDescriptors(descs []*Descriptor) { method buildNestedEnums (line 811) | func (g *Generator) buildNestedEnums(descs []*Descriptor, enums []*Enu... method BuildTypeNameMap (line 960) | func (g *Generator) BuildTypeNameMap() { method ObjectNamed (line 983) | func (g *Generator) ObjectNamed(typeName string) Object { method printAtom (line 1005) | func (g *Generator) printAtom(v interface{}) { method P (line 1038) | func (g *Generator) P(str ...interface{}) { method addInitf (line 1058) | func (g *Generator) addInitf(stmt string, a ...interface{}) { method In (line 1063) | func (g *Generator) In() { g.indent += "\t" } method Out (line 1066) | func (g *Generator) Out() { method GenerateAllFiles (line 1073) | func (g *Generator) GenerateAllFiles() { method runPlugins (line 1102) | func (g *Generator) runPlugins(file *FileDescriptor) { method generate (line 1110) | func (g *Generator) generate(file *FileDescriptor) { method generateHeader (line 1163) | func (g *Generator) generateHeader() { method PrintComments (line 1185) | func (g *Generator) PrintComments(path string) bool { method GetComments (line 1197) | func (g *Generator) GetComments(path string) (string, bool) { method makeComments (line 1206) | func (g *Generator) makeComments(path string) (string, bool) { method fileByName (line 1220) | func (g *Generator) fileByName(filename string) *FileDescriptor { method weak (line 1225) | func (g *Generator) weak(i int32) bool { method generateImports (line 1235) | func (g *Generator) generateImports() { method generateImported (line 1288) | func (g *Generator) generateImported(id *ImportedDescriptor) { method generateEnum (line 1308) | func (g *Generator) generateEnum(enum *EnumDescriptor) { method goTag (line 1416) | func (g *Generator) goTag(message *Descriptor, field *descriptor.Field... method TypeName (line 1547) | func (g *Generator) TypeName(obj Object) string { method GoType (line 1552) | func (g *Generator) GoType(message *Descriptor, field *descriptor.Fiel... method RecordTypeUse (line 1609) | func (g *Generator) RecordTypeUse(t string) { method getterDefault (line 1660) | func (g *Generator) getterDefault(field *descriptor.FieldDescriptorPro... method defaultConstantName (line 1703) | func (g *Generator) defaultConstantName(goMessageType, protoFieldName ... method generateDefaultConstants (line 1927) | func (g *Generator) generateDefaultConstants(mc *msgCtx, topLevelField... method generateInternalStructFields (line 2002) | func (g *Generator) generateInternalStructFields(mc *msgCtx, topLevelF... method generateOneofFuncs (line 2017) | func (g *Generator) generateOneofFuncs(mc *msgCtx, topLevelFields []to... method generateMessageStruct (line 2043) | func (g *Generator) generateMessageStruct(mc *msgCtx, topLevelFields [... method generateGetters (line 2065) | func (g *Generator) generateGetters(mc *msgCtx, topLevelFields []topLe... method generateSetters (line 2072) | func (g *Generator) generateSetters(mc *msgCtx, topLevelFields []topLe... method generateCommonMethods (line 2079) | func (g *Generator) generateCommonMethods(mc *msgCtx) { method generateMessage (line 2146) | func (g *Generator) generateMessage(message *Descriptor) { method generateExtension (line 2473) | func (g *Generator) generateExtension(ext *ExtensionDescriptor) { method generateInitFunction (line 2532) | func (g *Generator) generateInitFunction() { method generateFileDescriptor (line 2544) | func (g *Generator) generateFileDescriptor(file *FileDescriptor) { method generateEnumRegistration (line 2583) | func (g *Generator) generateEnumRegistration(enum *EnumDescriptor) { type pathType (line 437) | type pathType constant pathTypeImport (line 440) | pathTypeImport pathType = iota constant pathTypeSourceRelative (line 441) | pathTypeSourceRelative constant pathModuleRoot (line 442) | pathModuleRoot function New (line 446) | func New() *Generator { function RegisterUniquePackageName (line 573) | func RegisterUniquePackageName(pkg string, f *FileDescriptor) string { function cleanPackageName (line 652) | func cleanPackageName(name string) GoPackageName { function newDescriptor (line 827) | func newDescriptor(desc *descriptor.DescriptorProto, parent *Descriptor,... function wrapDescriptors (line 864) | func wrapDescriptors(file *FileDescriptor) []*Descriptor { function wrapThisDescriptor (line 873) | func wrapThisDescriptor(sl []*Descriptor, desc *descriptor.DescriptorPro... function newEnumDescriptor (line 883) | func newEnumDescriptor(desc *descriptor.EnumDescriptorProto, parent *Des... function wrapEnumDescriptors (line 899) | func wrapEnumDescriptors(file *FileDescriptor, descs []*Descriptor) []*E... function wrapExtensions (line 915) | func wrapExtensions(file *FileDescriptor) []*ExtensionDescriptor { function wrapImported (line 924) | func wrapImported(file *FileDescriptor, g *Generator) (sl []*ImportedDes... function extractComments (line 943) | func extractComments(file *FileDescriptor) { type AnnotatedAtoms (line 992) | type AnnotatedAtoms struct function Annotate (line 1000) | func Annotate(file *FileDescriptor, path string, atoms ...interface{}) *... function needsStar (line 1530) | func needsStar(typ descriptor.FieldDescriptorProto_Type) bool { type msgCtx (line 1720) | type msgCtx struct type fieldCommon (line 1726) | type fieldCommon struct method getProtoName (line 1736) | func (f *fieldCommon) getProtoName() string { method getGoType (line 1741) | func (f *fieldCommon) getGoType() string { type simpleField (line 1746) | type simpleField struct method decl (line 1757) | func (f *simpleField) decl(g *Generator, mc *msgCtx) { method getter (line 1762) | func (f *simpleField) getter(g *Generator, mc *msgCtx) { method setter (line 1795) | func (f *simpleField) setter(g *Generator, mc *msgCtx) { method getProtoDef (line 1800) | func (f *simpleField) getProtoDef() string { method getProtoTypeName (line 1805) | func (f *simpleField) getProtoTypeName() string { method getProtoType (line 1810) | func (f *simpleField) getProtoType() descriptor.FieldDescriptorProto_T... type oneofSubField (line 1815) | type oneofSubField struct method typedNil (line 1828) | func (f *oneofSubField) typedNil(g *Generator) { method getProtoDef (line 1833) | func (f *oneofSubField) getProtoDef() string { method getProtoTypeName (line 1838) | func (f *oneofSubField) getProtoTypeName() string { method getProtoType (line 1843) | func (f *oneofSubField) getProtoType() descriptor.FieldDescriptorProto... type oneofField (line 1849) | type oneofField struct method decl (line 1856) | func (f *oneofField) decl(g *Generator, mc *msgCtx) { method getter (line 1866) | func (f *oneofField) getter(g *Generator, mc *msgCtx) { method setter (line 1905) | func (f *oneofField) setter(g *Generator, mc *msgCtx) { type topLevelField (line 1910) | type topLevelField interface type defField (line 1917) | type defField interface type byTypeName (line 2396) | type byTypeName method Len (line 2398) | func (a byTypeName) Len() int { return len(a) } method Swap (line 2399) | func (a byTypeName) Swap(i, j int) { a[i], a[j] = a[j], a[i] } method Less (line 2400) | func (a byTypeName) Less(i, j int) bool { return *a[i].TypeName < *a[j... function mapFieldKeys (line 2403) | func mapFieldKeys(m map[*descriptor.FieldDescriptorProto]string) []*desc... function unescape (line 2419) | func unescape(s string) string { function isASCIILower (line 2599) | func isASCIILower(c byte) bool { function isASCIIDigit (line 2604) | func isASCIIDigit(c byte) bool { function CamelCase (line 2616) | func CamelCase(s string) string { function CamelCaseSlice (line 2657) | func CamelCaseSlice(elem []string) string { return CamelCase(strings.Joi... function dottedSlice (line 2660) | func dottedSlice(elem []string) string { return strings.Join(elem, ".") } function isOptional (line 2663) | func isOptional(field *descriptor.FieldDescriptorProto) bool { function isRequired (line 2668) | func isRequired(field *descriptor.FieldDescriptorProto) bool { function isRepeated (line 2673) | func isRepeated(field *descriptor.FieldDescriptorProto) bool { function isScalar (line 2678) | func isScalar(field *descriptor.FieldDescriptorProto) bool { function badToUnderscore (line 2706) | func badToUnderscore(r rune) rune { function baseName (line 2714) | func baseName(name string) string { constant packagePath (line 2736) | packagePath = 2 constant messagePath (line 2737) | messagePath = 4 constant enumPath (line 2738) | enumPath = 5 constant messageFieldPath (line 2740) | messageFieldPath = 2 constant messageMessagePath (line 2741) | messageMessagePath = 3 constant messageEnumPath (line 2742) | messageEnumPath = 4 constant messageOneofPath (line 2743) | messageOneofPath = 8 constant enumValuePath (line 2745) | enumValuePath = 2 function init (line 2750) | func init() { FILE: cmd/protoc-gen-micro/generator/name_test.go function TestCamelCase (line 40) | func TestCamelCase(t *testing.T) { function TestGoPackageOption (line 60) | func TestGoPackageOption(t *testing.T) { function TestPackageNames (line 89) | func TestPackageNames(t *testing.T) { function TestUnescape (line 108) | func TestUnescape(t *testing.T) { FILE: cmd/protoc-gen-micro/main.go function main (line 66) | func main() { FILE: cmd/protoc-gen-micro/plugin/micro/micro.go constant contextPkgPath (line 18) | contextPkgPath = "context" constant clientPkgPath (line 19) | clientPkgPath = "go-micro.dev/v5/client" constant serverPkgPath (line 20) | serverPkgPath = "go-micro.dev/v5/server" constant modelPkgPath (line 21) | modelPkgPath = "go-micro.dev/v5/model" function init (line 24) | func init() { type micro (line 30) | type micro struct method Name (line 35) | func (g *micro) Name() string { method Init (line 51) | func (g *micro) Init(gen *generator.Generator) { method objectNamed (line 61) | func (g *micro) objectNamed(name string) generator.Object { method typeName (line 67) | func (g *micro) typeName(str string) string { method P (line 72) | func (g *micro) P(args ...interface{}) { g.gen.P(args...) } method Generate (line 75) | func (g *micro) Generate(file *generator.FileDescriptor) { method GenerateImports (line 113) | func (g *micro) GenerateImports(file *generator.FileDescriptor, import... method generateService (line 164) | func (g *micro) generateService(file *generator.FileDescriptor, servic... method generateEndpoint (line 285) | func (g *micro) generateEndpoint(servName string, method *pb.MethodDes... method generateClientSignature (line 325) | func (g *micro) generateClientSignature(servName string, method *pb.Me... method generateClientMethod (line 343) | func (g *micro) generateClientMethod(pkg, reqServ, servName, serviceDe... method generateServerSignature (line 459) | func (g *micro) generateServerSignature(servName string, method *pb.Me... method generateServerMethod (line 482) | func (g *micro) generateServerMethod(servName string, method *pb.Metho... method isModelMessage (line 575) | func (g *micro) isModelMessage(msgIndex int) bool { method generateModel (line 644) | func (g *micro) generateModel(msg *pb.DescriptorProto, msgIndex int) { function unexport (line 152) | func unexport(s string) string { function parseModelOptions (line 586) | func parseModelOptions(comment string) (table string, key string) { function protoFieldGoType (line 618) | func protoFieldGoType(field *pb.FieldDescriptorProto) string { FILE: cmd/protoc-gen-micro/plugin/micro/micro_test.go function TestParseModelOptions (line 5) | func TestParseModelOptions(t *testing.T) { function TestProtoFieldGoType (line 30) | func TestProtoFieldGoType(t *testing.T) { FILE: codec/bytes/bytes.go type Codec (line 11) | type Codec struct method ReadHeader (line 20) | func (c *Codec) ReadHeader(m *codec.Message, t codec.MessageType) error { method ReadBody (line 24) | func (c *Codec) ReadBody(b interface{}) error { method Write (line 43) | func (c *Codec) Write(m *codec.Message, b interface{}) error { method Close (line 59) | func (c *Codec) Close() error { method String (line 63) | func (c *Codec) String() string { type Frame (line 16) | type Frame struct function NewCodec (line 67) | func NewCodec(c io.ReadWriteCloser) codec.Codec { FILE: codec/bytes/marshaler.go type Marshaler (line 7) | type Marshaler struct method Marshal (line 14) | func (n Marshaler) Marshal(v interface{}) ([]byte, error) { method Unmarshal (line 26) | func (n Marshaler) Unmarshal(d []byte, v interface{}) error { method String (line 38) | func (n Marshaler) String() string { type Message (line 9) | type Message struct FILE: codec/codec.go constant Error (line 10) | Error MessageType = iota constant Request (line 11) | Request constant Response (line 12) | Response constant Event (line 13) | Event type MessageType (line 20) | type MessageType type NewCodec (line 23) | type NewCodec type Codec (line 30) | type Codec interface type Reader (line 37) | type Reader interface type Writer (line 42) | type Writer interface type Marshaler (line 48) | type Marshaler interface type Message (line 57) | type Message struct FILE: codec/grpc/grpc.go type Codec (line 16) | type Codec struct method ReadHeader (line 21) | func (c *Codec) ReadHeader(m *codec.Message, t codec.MessageType) error { method ReadBody (line 49) | func (c *Codec) ReadBody(b interface{}) error { method Write (line 70) | func (c *Codec) Write(m *codec.Message, b interface{}) error { method Close (line 137) | func (c *Codec) Close() error { method String (line 141) | func (c *Codec) String() string { function NewCodec (line 145) | func NewCodec(c io.ReadWriteCloser) codec.Codec { FILE: codec/grpc/util.go function decode (line 14) | func decode(r io.Reader) (uint8, []byte, error) { function encode (line 53) | func encode(cf uint8, buf []byte, w io.Writer) error { FILE: codec/json/any_test.go function TestAnyTypeMarshaling (line 12) | func TestAnyTypeMarshaling(t *testing.T) { function TestAnyTypeUnmarshaling (line 57) | func TestAnyTypeUnmarshaling(t *testing.T) { FILE: codec/json/codec_test.go type mockReadWriteCloser (line 14) | type mockReadWriteCloser struct method Close (line 18) | func (m *mockReadWriteCloser) Close() error { function TestCodecAnyTypeWrite (line 23) | func TestCodecAnyTypeWrite(t *testing.T) { function TestCodecAnyTypeRead (line 66) | func TestCodecAnyTypeRead(t *testing.T) { FILE: codec/json/json.go type Codec (line 13) | type Codec struct method ReadHeader (line 19) | func (c *Codec) ReadHeader(m *codec.Message, t codec.MessageType) error { method ReadBody (line 23) | func (c *Codec) ReadBody(b interface{}) error { method Write (line 38) | func (c *Codec) Write(m *codec.Message, b interface{}) error { method Close (line 54) | func (c *Codec) Close() error { method String (line 58) | func (c *Codec) String() string { function NewCodec (line 62) | func NewCodec(c io.ReadWriteCloser) codec.Codec { FILE: codec/json/marshaler.go type Marshaler (line 14) | type Marshaler struct method Marshal (line 16) | func (j Marshaler) Marshal(v interface{}) ([]byte, error) { method Unmarshal (line 23) | func (j Marshaler) Unmarshal(d []byte, v interface{}) error { method String (line 30) | func (j Marshaler) String() string { FILE: codec/jsonrpc/client.go type clientCodec (line 12) | type clientCodec struct method Write (line 48) | func (c *clientCodec) Write(m *codec.Message, b interface{}) error { method ReadHeader (line 64) | func (c *clientCodec) ReadHeader(m *codec.Message) error { method ReadBody (line 90) | func (c *clientCodec) ReadBody(x interface{}) error { method Close (line 97) | func (c *clientCodec) Close() error { type clientRequest (line 27) | type clientRequest struct type clientResponse (line 33) | type clientResponse struct method reset (line 58) | func (r *clientResponse) reset() { function newClientCodec (line 39) | func newClientCodec(conn io.ReadWriteCloser) *clientCodec { FILE: codec/jsonrpc/jsonrpc.go type jsonCodec (line 13) | type jsonCodec struct method Close (line 21) | func (j *jsonCodec) Close() error { method String (line 26) | func (j *jsonCodec) String() string { method Write (line 30) | func (j *jsonCodec) Write(m *codec.Message, b interface{}) error { method ReadHeader (line 48) | func (j *jsonCodec) ReadHeader(m *codec.Message, mt codec.MessageType)... method ReadBody (line 65) | func (j *jsonCodec) ReadBody(b interface{}) error { function NewCodec (line 81) | func NewCodec(rwc io.ReadWriteCloser) codec.Codec { FILE: codec/jsonrpc/server.go type serverCodec (line 11) | type serverCodec struct method ReadHeader (line 51) | func (c *serverCodec) ReadHeader(m *codec.Message) error { method ReadBody (line 62) | func (c *serverCodec) ReadBody(x interface{}) error { method Write (line 73) | func (c *serverCodec) Write(m *codec.Message, x interface{}) error { method Close (line 85) | func (c *serverCodec) Close() error { type serverRequest (line 21) | type serverRequest struct method reset (line 41) | func (r *serverRequest) reset() { type serverResponse (line 27) | type serverResponse struct function newServerCodec (line 33) | func newServerCodec(conn io.ReadWriteCloser) *serverCodec { FILE: codec/proto/marshaler.go type Marshaler (line 14) | type Marshaler struct method Marshal (line 16) | func (Marshaler) Marshal(v interface{}) ([]byte, error) { method Unmarshal (line 36) | func (Marshaler) Unmarshal(data []byte, v interface{}) error { method String (line 45) | func (Marshaler) String() string { FILE: codec/proto/message.go type Message (line 3) | type Message struct method MarshalJSON (line 7) | func (m *Message) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 11) | func (m *Message) UnmarshalJSON(data []byte) error { method ProtoMessage (line 16) | func (m *Message) ProtoMessage() {} method Reset (line 18) | func (m *Message) Reset() { method String (line 22) | func (m *Message) String() string { method Marshal (line 26) | func (m *Message) Marshal() ([]byte, error) { method Unmarshal (line 30) | func (m *Message) Unmarshal(data []byte) error { function NewMessage (line 35) | func NewMessage(data []byte) *Message { FILE: codec/proto/proto.go type Codec (line 11) | type Codec struct method ReadHeader (line 15) | func (c *Codec) ReadHeader(m *codec.Message, t codec.MessageType) error { method ReadBody (line 19) | func (c *Codec) ReadBody(b interface{}) error { method Write (line 34) | func (c *Codec) Write(m *codec.Message, b interface{}) error { method Close (line 51) | func (c *Codec) Close() error { method String (line 55) | func (c *Codec) String() string { function NewCodec (line 59) | func NewCodec(c io.ReadWriteCloser) codec.Codec { FILE: codec/protorpc/envelope.pb.go constant _ (line 21) | _ = proto.ProtoPackageIsVersion3 type Request (line 23) | type Request struct method Reset (line 31) | func (m *Request) Reset() { *m = Request{} } method String (line 32) | func (m *Request) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 33) | func (*Request) ProtoMessage() {} method Descriptor (line 34) | func (*Request) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 38) | func (m *Request) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 41) | func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, e... method XXX_Merge (line 44) | func (m *Request) XXX_Merge(src proto.Message) { method XXX_Size (line 47) | func (m *Request) XXX_Size() int { method XXX_DiscardUnknown (line 50) | func (m *Request) XXX_DiscardUnknown() { method GetServiceMethod (line 56) | func (m *Request) GetServiceMethod() string { method GetSeq (line 63) | func (m *Request) GetSeq() uint64 { type Response (line 70) | type Response struct method Reset (line 79) | func (m *Response) Reset() { *m = Response{} } method String (line 80) | func (m *Response) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 81) | func (*Response) ProtoMessage() {} method Descriptor (line 82) | func (*Response) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 86) | func (m *Response) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 89) | func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, ... method XXX_Merge (line 92) | func (m *Response) XXX_Merge(src proto.Message) { method XXX_Size (line 95) | func (m *Response) XXX_Size() int { method XXX_DiscardUnknown (line 98) | func (m *Response) XXX_DiscardUnknown() { method GetServiceMethod (line 104) | func (m *Response) GetServiceMethod() string { method GetSeq (line 111) | func (m *Response) GetSeq() uint64 { method GetError (line 118) | func (m *Response) GetError() string { function init (line 125) | func init() { function init (line 130) | func init() { proto.RegisterFile("codec/protorpc/envelope.proto", fileDe... FILE: codec/protorpc/envelope.pb.micro.go constant _ (line 21) | _ = proto.ProtoPackageIsVersion3 FILE: codec/protorpc/netstring.go function WriteNetString (line 10) | func WriteNetString(w io.Writer, data []byte) (written int, err error) { function ReadNetString (line 20) | func ReadNetString(r io.Reader) (data []byte, err error) { FILE: codec/protorpc/protorpc.go type flusher (line 15) | type flusher interface type protoCodec (line 19) | type protoCodec struct method Close (line 26) | func (c *protoCodec) Close() error { method String (line 31) | func (c *protoCodec) String() string { method Write (line 44) | func (c *protoCodec) Write(m *codec.Message, b interface{}) error { method ReadHeader (line 122) | func (c *protoCodec) ReadHeader(m *codec.Message, mt codec.MessageType... method ReadBody (line 161) | func (c *protoCodec) ReadBody(b interface{}) error { function id (line 35) | func id(id string) uint64 { function NewCodec (line 181) | func NewCodec(rwc io.ReadWriteCloser) codec.Codec { FILE: codec/text/text.go type Codec (line 11) | type Codec struct method ReadHeader (line 20) | func (c *Codec) ReadHeader(m *codec.Message, t codec.MessageType) error { method ReadBody (line 24) | func (c *Codec) ReadBody(b interface{}) error { method Write (line 45) | func (c *Codec) Write(m *codec.Message, b interface{}) error { method Close (line 65) | func (c *Codec) Close() error { method String (line 69) | func (c *Codec) String() string { type Frame (line 16) | type Frame struct function NewCodec (line 73) | func NewCodec(c io.ReadWriteCloser) codec.Codec { FILE: config/config.go type Config (line 14) | type Config interface type Watcher (line 32) | type Watcher interface type Options (line 37) | type Options struct type Option (line 49) | type Option function NewConfig (line 57) | func NewConfig(opts ...Option) (Config, error) { function Bytes (line 62) | func Bytes() []byte { function Map (line 67) | func Map() map[string]interface{} { function Scan (line 72) | func Scan(v interface{}) error { function Sync (line 77) | func Sync() error { function Get (line 82) | func Get(path ...string) (reader.Value, error) { function Load (line 87) | func Load(source ...source.Source) error { function Watch (line 92) | func Watch(path ...string) (Watcher, error) { function LoadFile (line 97) | func LoadFile(path string) error { FILE: config/default.go type config (line 15) | type config struct method Init (line 46) | func (c *config) Init(opts ...Option) error { method Options (line 83) | func (c *config) Options() Options { method run (line 87) | func (c *config) run() { method Map (line 150) | func (c *config) Map() map[string]interface{} { method Scan (line 156) | func (c *config) Scan(v interface{}) error { method Sync (line 163) | func (c *config) Sync() error { method Close (line 186) | func (c *config) Close() error { method Get (line 196) | func (c *config) Get(path ...string) (reader.Value, error) { method Set (line 209) | func (c *config) Set(val interface{}, path ...string) { method Del (line 220) | func (c *config) Del(path ...string) { method Bytes (line 231) | func (c *config) Bytes() []byte { method Load (line 242) | func (c *config) Load(sources ...source.Source) error { method Watch (line 265) | func (c *config) Watch(path ...string) (Watcher, error) { method String (line 284) | func (c *config) String() string { type watcher (line 26) | type watcher struct method Next (line 288) | func (w *watcher) Next() (reader.Value, error) { method Stop (line 309) | func (w *watcher) Stop() error { function newConfig (line 33) | func newConfig(opts ...Option) (Config, error) { FILE: config/default_test.go function createFileForIssue18 (line 18) | func createFileForIssue18(t *testing.T, content string) *os.File { function createFileForTest (line 33) | func createFileForTest(t *testing.T) *os.File { function TestConfigLoadWithGoodFile (line 48) | func TestConfigLoadWithGoodFile(t *testing.T) { function TestConfigLoadWithInvalidFile (line 69) | func TestConfigLoadWithInvalidFile(t *testing.T) { function TestConfigMerge (line 96) | func TestConfigMerge(t *testing.T) { function equalS (line 138) | func equalS(t *testing.T, actual, expect string) { function TestConfigWatcherDirtyOverrite (line 144) | func TestConfigWatcherDirtyOverrite(t *testing.T) { FILE: config/encoder/encoder.go type Encoder (line 4) | type Encoder interface FILE: config/encoder/json/json.go type jsonEncoder (line 9) | type jsonEncoder struct method Encode (line 11) | func (j jsonEncoder) Encode(v interface{}) ([]byte, error) { method Decode (line 15) | func (j jsonEncoder) Decode(d []byte, v interface{}) error { method String (line 19) | func (j jsonEncoder) String() string { function NewEncoder (line 23) | func NewEncoder() encoder.Encoder { FILE: config/loader/loader.go type Loader (line 12) | type Loader interface type Watcher (line 28) | type Watcher interface type Snapshot (line 38) | type Snapshot struct type Options (line 46) | type Options struct type Option (line 58) | type Option function Copy (line 61) | func Copy(s *Snapshot) *Snapshot { FILE: config/loader/memory/memory.go type memory (line 19) | type memory struct method watch (line 56) | func (m *memory) watch(idx int, s source.Source) { method loaded (line 128) | func (m *memory) loaded() bool { method reload (line 139) | func (m *memory) reload() error { method update (line 166) | func (m *memory) update() { method Snapshot (line 201) | func (m *memory) Snapshot() (*loader.Snapshot, error) { method Sync (line 223) | func (m *memory) Sync() error { method Close (line 272) | func (m *memory) Close() error { method Get (line 282) | func (m *memory) Get(path ...string) (reader.Value, error) { method Load (line 320) | func (m *memory) Load(sources ...source.Source) error { method Watch (line 354) | func (m *memory) Watch(path ...string) (loader.Watcher, error) { method String (line 389) | func (m *memory) String() string { type updateValue (line 37) | type updateValue struct type watcher (line 42) | type watcher struct method getVersion (line 52) | func (w *watcher) getVersion() string { method Next (line 393) | func (w *watcher) Next() (*loader.Snapshot, error) { method Stop (line 434) | func (w *watcher) Stop() error { function genVer (line 448) | func genVer() string { function NewLoader (line 452) | func NewLoader(opts ...loader.Option) loader.Loader { FILE: config/loader/memory/options.go function WithSource (line 10) | func WithSource(s source.Source) loader.Option { function WithReader (line 17) | func WithReader(r reader.Reader) loader.Option { function WithWatcherDisabled (line 23) | func WithWatcherDisabled() loader.Option { FILE: config/options.go function WithLoader (line 10) | func WithLoader(l loader.Loader) Option { function WithSource (line 17) | func WithSource(s source.Source) Option { function WithReader (line 24) | func WithReader(r reader.Reader) Option { function WithWatcherDisabled (line 30) | func WithWatcherDisabled() Option { FILE: config/reader/json/json.go type jsonReader (line 14) | type jsonReader struct method Merge (line 19) | func (j *jsonReader) Merge(changes ...*source.ChangeSet) (*source.Chan... method Values (line 62) | func (j *jsonReader) Values(ch *source.ChangeSet) (reader.Values, erro... method String (line 72) | func (j *jsonReader) String() string { function NewReader (line 77) | func NewReader(opts ...reader.Option) reader.Reader { FILE: config/reader/json/json_test.go function TestReader (line 9) | func TestReader(t *testing.T) { FILE: config/reader/json/values.go type jsonValues (line 15) | type jsonValues struct method Get (line 42) | func (j *jsonValues) Get(path ...string) (reader.Value, error) { method Del (line 46) | func (j *jsonValues) Del(path ...string) { method Set (line 64) | func (j *jsonValues) Set(val interface{}, path ...string) { method Bytes (line 68) | func (j *jsonValues) Bytes() []byte { method Map (line 73) | func (j *jsonValues) Map() map[string]interface{} { method Scan (line 78) | func (j *jsonValues) Scan(v interface{}) error { method String (line 86) | func (j *jsonValues) String() string { type jsonValue (line 20) | type jsonValue struct method Bool (line 90) | func (j *jsonValue) Bool(def bool) bool { method Int (line 109) | func (j *jsonValue) Int(def int) int { method String (line 128) | func (j *jsonValue) String(def string) string { method Float64 (line 132) | func (j *jsonValue) Float64(def float64) float64 { method Duration (line 151) | func (j *jsonValue) Duration(def time.Duration) time.Duration { method StringSlice (line 165) | func (j *jsonValue) StringSlice(def []string) []string { method StringMap (line 176) | func (j *jsonValue) StringMap(def map[string]string) map[string]string { method Scan (line 191) | func (j *jsonValue) Scan(v interface{}) error { method Bytes (line 199) | func (j *jsonValue) Bytes() []byte { function NewValues (line 24) | func NewValues(val []byte) (reader.Values, error) { function newValues (line 33) | func newValues(ch *source.ChangeSet) (reader.Values, error) { FILE: config/reader/json/values_test.go function TestValues (line 10) | func TestValues(t *testing.T) { function TestStructArray (line 54) | func TestStructArray(t *testing.T) { FILE: config/reader/options.go type Options (line 8) | type Options struct type Option (line 12) | type Option function NewOptions (line 14) | func NewOptions(opts ...Option) Options { function WithEncoder (line 26) | func WithEncoder(e encoder.Encoder) Option { FILE: config/reader/preprocessor.go function ReplaceEnvVars (line 8) | func ReplaceEnvVars(raw []byte) ([]byte, error) { function replaceEnvVars (line 19) | func replaceEnvVars(element string) string { FILE: config/reader/preprocessor_test.go function TestReplaceEnvVars (line 9) | func TestReplaceEnvVars(t *testing.T) { FILE: config/reader/reader.go type Reader (line 11) | type Reader interface type Values (line 18) | type Values interface type Value (line 28) | type Value interface FILE: config/secrets/box/box.go constant keyLength (line 12) | keyLength = 32 type box (line 14) | type box struct method Init (line 30) | func (b *box) Init(opts ...secrets.Option) error { method Options (line 43) | func (b *box) Options() secrets.Options { method String (line 48) | func (*box) String() string { method Encrypt (line 53) | func (b *box) Encrypt(in []byte, opts ...secrets.EncryptOption) ([]byt... method Decrypt (line 71) | func (b *box) Decrypt(in []byte, opts ...secrets.DecryptOption) ([]byt... function NewSecrets (line 22) | func NewSecrets(opts ...secrets.Option) secrets.Secrets { FILE: config/secrets/box/box_test.go function TestBox (line 12) | func TestBox(t *testing.T) { FILE: config/secrets/secretbox/secretbox.go constant keyLength (line 13) | keyLength = 32 type secretBox (line 15) | type secretBox struct method Init (line 30) | func (s *secretBox) Init(opts ...secrets.Option) error { method Options (line 44) | func (s *secretBox) Options() secrets.Options { method String (line 48) | func (s *secretBox) String() string { method Encrypt (line 52) | func (s *secretBox) Encrypt(in []byte, opts ...secrets.EncryptOption) ... method Decrypt (line 63) | func (s *secretBox) Decrypt(in []byte, opts ...secrets.DecryptOption) ... function NewSecrets (line 22) | func NewSecrets(opts ...secrets.Option) secrets.Secrets { FILE: config/secrets/secretbox/secretbox_test.go function TestSecretBox (line 11) | func TestSecretBox(t *testing.T) { FILE: config/secrets/secrets.go type Secrets (line 7) | type Secrets interface type Options (line 20) | type Options struct type Option (line 32) | type Option function Key (line 35) | func Key(k []byte) Option { function PublicKey (line 43) | func PublicKey(key []byte) Option { function PrivateKey (line 51) | func PrivateKey(key []byte) Option { type DecryptOptions (line 59) | type DecryptOptions struct type DecryptOption (line 64) | type DecryptOption function SenderPublicKey (line 67) | func SenderPublicKey(key []byte) DecryptOption { type EncryptOptions (line 75) | type EncryptOptions struct type EncryptOption (line 80) | type EncryptOption function RecipientPublicKey (line 83) | func RecipientPublicKey(key []byte) EncryptOption { FILE: config/source/changeset.go method Sum (line 9) | func (c *ChangeSet) Sum() string { FILE: config/source/cli/cli.go type cliSource (line 16) | type cliSource struct method Read (line 21) | func (c *cliSource) Read() (*source.ChangeSet, error) { method Watch (line 76) | func (c *cliSource) Watch() (source.Watcher, error) { method Write (line 81) | func (c *cliSource) Write(cs *source.ChangeSet) error { method String (line 85) | func (c *cliSource) String() string { function toEntry (line 49) | func toEntry(name string, v interface{}) map[string]interface{} { function reverse (line 65) | func reverse(ss []string) { function split (line 72) | func split(r rune) bool { function NewSource (line 103) | func NewSource(opts ...source.Option) source.Source { function WithContext (line 143) | func WithContext(ctx *cli.Context, opts ...source.Option) source.Source { FILE: config/source/cli/cli_test.go function TestCliSourceDefault (line 15) | func TestCliSourceDefault(t *testing.T) { function test (line 66) | func test(t *testing.T, withContext bool) { function TestCliSource (line 114) | func TestCliSource(t *testing.T) { function TestCliSourceWithContext (line 119) | func TestCliSourceWithContext(t *testing.T) { FILE: config/source/cli/options.go type contextKey (line 10) | type contextKey struct function Context (line 13) | func Context(c *cli.Context) source.Option { FILE: config/source/cli/util.go function copyFlag (line 11) | func copyFlag(name string, ff *flag.Flag, set *flag.FlagSet) { function normalizeFlags (line 19) | func normalizeFlags(flags []cli.Flag, set *flag.FlagSet) error { FILE: config/source/env/env.go type env (line 17) | type env struct method Read (line 23) | func (e *env) Read() (*source.ChangeSet, error) { method Watch (line 103) | func (e *env) Watch() (source.Watcher, error) { method Write (line 107) | func (e *env) Write(cs *source.ChangeSet) error { method String (line 111) | func (e *env) String() string { function matchPrefix (line 86) | func matchPrefix(pre []string, s string) (string, bool) { function reverse (line 96) | func reverse(ss []string) { function NewSource (line 129) | func NewSource(opts ...source.Option) source.Source { FILE: config/source/env/env_test.go function TestEnv_Read (line 12) | func TestEnv_Read(t *testing.T) { function TestEnvvar_Prefixes (line 47) | func TestEnvvar_Prefixes(t *testing.T) { function TestEnvvar_WatchNextNoOpsUntilStop (line 88) | func TestEnvvar_WatchNextNoOpsUntilStop(t *testing.T) { function containsKey (line 105) | func containsKey(m map[string]interface{}, s string) bool { FILE: config/source/env/options.go type strippedPrefixKey (line 10) | type strippedPrefixKey struct type prefixKey (line 11) | type prefixKey struct function WithStrippedPrefix (line 15) | func WithStrippedPrefix(p ...string) source.Option { function WithPrefix (line 27) | func WithPrefix(p ...string) source.Option { function appendUnderscore (line 36) | func appendUnderscore(prefixes []string) []string { FILE: config/source/env/watcher.go type watcher (line 7) | type watcher struct method Next (line 11) | func (w *watcher) Next() (*source.ChangeSet, error) { method Stop (line 17) | func (w *watcher) Stop() error { function newWatcher (line 22) | func newWatcher() (source.Watcher, error) { FILE: config/source/file/file.go type file (line 12) | type file struct method Read (line 22) | func (f *file) Read() (*source.ChangeSet, error) { method String (line 56) | func (f *file) String() string { method Watch (line 60) | func (f *file) Watch() (source.Watcher, error) { method Write (line 72) | func (f *file) Write(cs *source.ChangeSet) error { function NewSource (line 76) | func NewSource(opts ...source.Option) source.Source { FILE: config/source/file/file_test.go function TestConfig (line 15) | func TestConfig(t *testing.T) { function TestFile (line 41) | func TestFile(t *testing.T) { function TestWithFS (line 69) | func TestWithFS(t *testing.T) { FILE: config/source/file/format.go function format (line 9) | func format(p string, e encoder.Encoder) string { FILE: config/source/file/format_test.go function TestFormat (line 9) | func TestFormat(t *testing.T) { FILE: config/source/file/options.go type filePathKey (line 10) | type filePathKey struct type fsKey (line 11) | type fsKey struct function WithPath (line 14) | func WithPath(p string) source.Option { function WithFS (line 24) | func WithFS(fs fs.FS) source.Option { FILE: config/source/file/watcher.go type watcher (line 13) | type watcher struct method Next (line 33) | func (w *watcher) Next() (*source.ChangeSet, error) { method Stop (line 66) | func (w *watcher) Stop() error { function newWatcher (line 19) | func newWatcher(f *file) (source.Watcher, error) { FILE: config/source/file/watcher_linux.go type watcher (line 13) | type watcher struct method Next (line 33) | func (w *watcher) Next() (*source.ChangeSet, error) { method Stop (line 69) | func (w *watcher) Stop() error { function newWatcher (line 19) | func newWatcher(f *file) (source.Watcher, error) { FILE: config/source/file/watcher_test.go function createTestFile (line 17) | func createTestFile(data []byte) (*os.File, func(), string, error) { function TestWatcher (line 35) | func TestWatcher(t *testing.T) { function TestWatcherStop (line 78) | func TestWatcherStop(t *testing.T) { FILE: config/source/flag/flag.go type flagsrc (line 13) | type flagsrc struct method Read (line 17) | func (fs *flagsrc) Read() (*source.ChangeSet, error) { method Watch (line 77) | func (fs *flagsrc) Watch() (source.Watcher, error) { method Write (line 81) | func (fs *flagsrc) Write(cs *source.ChangeSet) error { method String (line 85) | func (fs *flagsrc) String() string { function split (line 66) | func split(r rune) bool { function reverse (line 70) | func reverse(ss []string) { function NewSource (line 101) | func NewSource(opts ...source.Option) source.Source { FILE: config/source/flag/flag_test.go function initTestFlags (line 15) | func initTestFlags() { function TestFlagsrc_Read (line 21) | func TestFlagsrc_Read(t *testing.T) { function TestFlagsrc_ReadAll (line 49) | func TestFlagsrc_ReadAll(t *testing.T) { FILE: config/source/flag/options.go type includeUnsetKey (line 9) | type includeUnsetKey struct function IncludeUnset (line 13) | func IncludeUnset(b bool) source.Option { FILE: config/source/memory/memory.go type memory (line 12) | type memory struct method Read (line 18) | func (s *memory) Read() (*source.ChangeSet, error) { method Watch (line 31) | func (s *memory) Watch() (source.Watcher, error) { method Write (line 44) | func (m *memory) Write(cs *source.ChangeSet) error { method Update (line 50) | func (s *memory) Update(c *source.ChangeSet) { method String (line 77) | func (s *memory) String() string { function NewSource (line 81) | func NewSource(opts ...source.Option) source.Source { FILE: config/source/memory/options.go type changeSetKey (line 9) | type changeSetKey struct function withData (line 11) | func withData(d []byte, f string) source.Option { function WithChangeSet (line 24) | func WithChangeSet(cs *source.ChangeSet) source.Option { function WithJSON (line 34) | func WithJSON(d []byte) source.Option { function WithYAML (line 39) | func WithYAML(d []byte) source.Option { FILE: config/source/memory/watcher.go type watcher (line 7) | type watcher struct method Next (line 13) | func (w *watcher) Next() (*source.ChangeSet, error) { method Stop (line 18) | func (w *watcher) Stop() error { FILE: config/source/nats/nats.go type nats (line 14) | type nats struct method Read (line 30) | func (n *nats) Read() (*source.ChangeSet, error) { method Write (line 54) | func (n *nats) Write(cs *source.ChangeSet) error { method String (line 63) | func (n *nats) String() string { method Watch (line 67) | func (n *nats) Watch() (source.Watcher, error) { method Close (line 140) | func (n *nats) Close() error { function NewSource (line 71) | func NewSource(opts ...source.Option) source.Source { FILE: config/source/nats/options.go type urlKey (line 12) | type urlKey struct type bucketKey (line 13) | type bucketKey struct type keyKey (line 14) | type keyKey struct function WithUrl (line 18) | func WithUrl(a ...string) source.Option { function WithBucket (line 28) | func WithBucket(a string) source.Option { function WithKey (line 38) | func WithKey(a string) source.Option { function Client (line 47) | func Client(url string) (natsgo.JetStreamContext, error) { FILE: config/source/nats/watcher.go type watcher (line 11) | type watcher struct method handle (line 49) | func (w *watcher) handle(data []byte) { method Next (line 61) | func (w *watcher) Next() (*source.ChangeSet, error) { method Stop (line 70) | func (w *watcher) Stop() error { function newWatcher (line 21) | func newWatcher(kv natsgo.KeyValue, bucket, key, name string, e encoder.... FILE: config/source/noop.go type noopWatcher (line 7) | type noopWatcher struct method Next (line 11) | func (w *noopWatcher) Next() (*ChangeSet, error) { method Stop (line 17) | func (w *noopWatcher) Stop() error { function NewNoopWatcher (line 23) | func NewNoopWatcher() (Watcher, error) { FILE: config/source/options.go type Options (line 11) | type Options struct type Option (line 22) | type Option function NewOptions (line 24) | func NewOptions(opts ...Option) Options { function WithEncoder (line 39) | func WithEncoder(e encoder.Encoder) Option { function WithClient (line 46) | func WithClient(c client.Client) Option { FILE: config/source/source.go type Source (line 15) | type Source interface type ChangeSet (line 23) | type ChangeSet struct type Watcher (line 32) | type Watcher interface FILE: config/value.go type value (line 9) | type value struct method Bool (line 15) | func (v *value) Bool(def bool) bool { method Int (line 19) | func (v *value) Int(def int) int { method String (line 23) | func (v *value) String(def string) string { method Float64 (line 27) | func (v *value) Float64(def float64) float64 { method Duration (line 31) | func (v *value) Duration(def time.Duration) time.Duration { method StringSlice (line 35) | func (v *value) StringSlice(def []string) []string { method StringMap (line 39) | func (v *value) StringMap(def map[string]string) map[string]string { method Scan (line 43) | func (v *value) Scan(val interface{}) error { method Bytes (line 47) | func (v *value) Bytes() []byte { function newValue (line 11) | func newValue() reader.Value { FILE: contrib/go-micro-llamaindex/examples/basic_agent.py function main (line 12) | def main(): FILE: contrib/go-micro-llamaindex/examples/rag_with_services.py function main (line 15) | def main(): FILE: contrib/go-micro-llamaindex/go_micro_llamaindex/exceptions.py class GoMicroError (line 4) | class GoMicroError(Exception): class GoMicroConnectionError (line 9) | class GoMicroConnectionError(GoMicroError): class GoMicroAuthError (line 14) | class GoMicroAuthError(GoMicroError): class GoMicroToolError (line 19) | class GoMicroToolError(GoMicroError): FILE: contrib/go-micro-llamaindex/go_micro_llamaindex/toolkit.py class GoMicroConfig (line 20) | class GoMicroConfig: class GoMicroTool (line 40) | class GoMicroTool(BaseModel): class GoMicroToolkit (line 62) | class GoMicroToolkit: method __init__ (line 75) | def __init__(self, config: GoMicroConfig): method from_gateway (line 91) | def from_gateway( method _make_request (line 117) | def _make_request( method refresh (line 165) | def refresh(self) -> None: method get_tools (line 188) | def get_tools( method _create_llamaindex_tool (line 231) | def _create_llamaindex_tool(self, tool: GoMicroTool) -> FunctionTool: method call_tool (line 263) | def call_tool(self, tool_name: str, arguments: str) -> str: method list_tools (line 298) | def list_tools(self) -> List[GoMicroTool]: FILE: contrib/go-micro-llamaindex/tests/test_toolkit.py function mock_gateway_response (line 17) | def mock_gateway_response(): class TestGoMicroConfig (line 56) | class TestGoMicroConfig: method test_config_defaults (line 59) | def test_config_defaults(self): method test_config_custom_values (line 70) | def test_config_custom_values(self): class TestGoMicroToolkit (line 89) | class TestGoMicroToolkit: method test_from_gateway (line 92) | def test_from_gateway(self): method test_from_gateway_with_auth (line 99) | def test_from_gateway_with_auth(self): method test_refresh (line 111) | def test_refresh(self, mock_request, mock_gateway_response): method test_get_tools (line 127) | def test_get_tools(self, mock_request, mock_gateway_response): method test_get_tools_with_service_filter (line 144) | def test_get_tools_with_service_filter(self, mock_request, mock_gatewa... method test_get_tools_with_include (line 159) | def test_get_tools_with_include(self, mock_request, mock_gateway_respo... method test_get_tools_with_exclude (line 173) | def test_get_tools_with_exclude(self, mock_request, mock_gateway_respo... method test_get_tools_with_name_pattern (line 188) | def test_get_tools_with_name_pattern(self, mock_request, mock_gateway_... method test_call_tool (line 202) | def test_call_tool(self, mock_request): method test_list_tools (line 216) | def test_list_tools(self, mock_request, mock_gateway_response): method test_connection_error (line 232) | def test_connection_error(self, mock_request): method test_auth_error (line 242) | def test_auth_error(self, mock_request): method test_timeout (line 254) | def test_timeout(self, mock_request): FILE: contrib/langchain-go-micro/examples/basic_agent.py function main (line 12) | def main(): FILE: contrib/langchain-go-micro/examples/multi_agent.py function main (line 12) | def main(): FILE: contrib/langchain-go-micro/langchain_go_micro/exceptions.py class GoMicroError (line 4) | class GoMicroError(Exception): class GoMicroConnectionError (line 9) | class GoMicroConnectionError(GoMicroError): class GoMicroAuthError (line 14) | class GoMicroAuthError(GoMicroError): class GoMicroToolError (line 19) | class GoMicroToolError(GoMicroError): FILE: contrib/langchain-go-micro/langchain_go_micro/toolkit.py class GoMicroConfig (line 20) | class GoMicroConfig: class GoMicroTool (line 40) | class GoMicroTool(BaseModel): class GoMicroToolkit (line 62) | class GoMicroToolkit: method __init__ (line 75) | def __init__(self, config: GoMicroConfig): method from_gateway (line 92) | def from_gateway( method _make_request (line 118) | def _make_request( method refresh (line 166) | def refresh(self) -> None: method get_tools (line 189) | def get_tools( method _create_langchain_tool (line 238) | def _create_langchain_tool(self, tool: GoMicroTool) -> Tool: method call_tool (line 269) | def call_tool(self, tool_name: str, arguments: str) -> str: method list_tools (line 306) | def list_tools(self) -> List[GoMicroTool]: FILE: contrib/langchain-go-micro/tests/test_toolkit.py function mock_gateway_response (line 17) | def mock_gateway_response(): class TestGoMicroConfig (line 48) | class TestGoMicroConfig: method test_config_defaults (line 51) | def test_config_defaults(self): method test_config_custom_values (line 62) | def test_config_custom_values(self): class TestGoMicroToolkit (line 81) | class TestGoMicroToolkit: method test_from_gateway (line 84) | def test_from_gateway(self): method test_from_gateway_with_auth (line 91) | def test_from_gateway_with_auth(self): method test_refresh (line 103) | def test_refresh(self, mock_request, mock_gateway_response): method test_get_tools (line 118) | def test_get_tools(self, mock_request, mock_gateway_response): method test_get_tools_with_service_filter (line 133) | def test_get_tools_with_service_filter(self, mock_request, mock_gatewa... method test_get_tools_with_include (line 148) | def test_get_tools_with_include(self, mock_request, mock_gateway_respo... method test_get_tools_with_exclude (line 162) | def test_get_tools_with_exclude(self, mock_request, mock_gateway_respo... method test_call_tool (line 176) | def test_call_tool(self, mock_request): method test_connection_error (line 190) | def test_connection_error(self, mock_request): method test_auth_error (line 200) | def test_auth_error(self, mock_request): method test_timeout (line 212) | def test_timeout(self, mock_request): FILE: debug/handler/debug.go function NewHandler (line 18) | func NewHandler(c client.Client) *Debug { type Debug (line 28) | type Debug struct method Health (line 39) | func (d *Debug) Health(ctx context.Context, req *proto.HealthRequest, ... method MessageBus (line 44) | func (d *Debug) MessageBus(ctx context.Context, stream proto.Debug_Mes... method Stats (line 63) | func (d *Debug) Stats(ctx context.Context, req *proto.StatsRequest, rs... method Trace (line 86) | func (d *Debug) Trace(ctx context.Context, req *proto.TraceRequest, rs... method Log (line 117) | func (d *Debug) Log(ctx context.Context, req *proto.LogRequest, stream... FILE: debug/log/log.go type Log (line 20) | type Log interface type Record (line 30) | type Record struct type Stream (line 40) | type Stream interface type FormatFunc (line 46) | type FormatFunc function TextFormat (line 49) | func TextFormat(r Record) string { function JSONFormat (line 55) | func JSONFormat(r Record) string { FILE: debug/log/memory/memory.go type memoryLog (line 17) | type memoryLog struct method Write (line 37) | func (l *memoryLog) Write(r log.Record) error { method Read (line 43) | func (l *memoryLog) Read(opts ...log.ReadOption) ([]log.Record, error) { method Stream (line 87) | func (l *memoryLog) Stream() (log.Stream, error) { function NewLog (line 22) | func NewLog(opts ...log.Option) log.Log { FILE: debug/log/memory/memory_test.go function TestLogger (line 10) | func TestLogger(t *testing.T) { FILE: debug/log/memory/stream.go type logStream (line 7) | type logStream struct method Chan (line 12) | func (l *logStream) Chan() <-chan log.Record { method Stop (line 16) | func (l *logStream) Stop() error { FILE: debug/log/noop/noop.go type noop (line 7) | type noop struct method Read (line 9) | func (n *noop) Read(...log.ReadOption) ([]log.Record, error) { method Write (line 13) | func (n *noop) Write(log.Record) error { method Stream (line 17) | func (n *noop) Stream() (log.Stream, error) { function NewLog (line 21) | func NewLog(opts ...log.Option) log.Log { FILE: debug/log/options.go type Option (line 6) | type Option type Options (line 9) | type Options struct function Name (line 19) | func Name(n string) Option { function Size (line 26) | func Size(s int) Option { function Format (line 32) | func Format(f FormatFunc) Option { function DefaultOptions (line 39) | func DefaultOptions() Options { type ReadOptions (line 46) | type ReadOptions struct type ReadOption (line 56) | type ReadOption function Since (line 59) | func Since(s time.Time) ReadOption { function Count (line 66) | func Count(c int) ReadOption { FILE: debug/log/os.go type osLog (line 11) | type osLog struct method Read (line 25) | func (o *osLog) Read(...ReadOption) ([]Record, error) { method Write (line 37) | func (o *osLog) Write(r Record) error { method Stream (line 43) | func (o *osLog) Stream() (Stream, error) { type osStream (line 20) | type osStream struct method Chan (line 58) | func (o *osStream) Chan() <-chan Record { method Stop (line 62) | func (o *osStream) Stop() error { function NewLog (line 66) | func NewLog(opts ...Option) Log { FILE: debug/profile/http/http.go type httpProfile (line 13) | type httpProfile struct method Start (line 24) | func (h *httpProfile) Start() error { method Stop (line 46) | func (h *httpProfile) Stop() error { method String (line 59) | func (h *httpProfile) String() string { function NewProfile (line 63) | func NewProfile(opts ...profile.Option) profile.Profile { FILE: debug/profile/pprof/pprof.go type profiler (line 14) | type profiler struct method Start (line 26) | func (p *profiler) Start() error { method Stop (line 67) | func (p *profiler) Stop() error { method String (line 86) | func (p *profiler) String() string { function NewProfile (line 90) | func NewProfile(opts ...profile.Option) profile.Profile { FILE: debug/profile/profile.go type Profile (line 4) | type Profile interface type noop (line 17) | type noop struct method Start (line 19) | func (p *noop) Start() error { method Stop (line 23) | func (p *noop) Stop() error { method String (line 27) | func (p *noop) String() string { type Options (line 31) | type Options struct type Option (line 36) | type Option function Name (line 39) | func Name(n string) Option { FILE: debug/proto/debug.pb.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type SpanType (line 23) | type SpanType method Enum (line 42) | func (x SpanType) Enum() *SpanType { method String (line 48) | func (x SpanType) String() string { method Descriptor (line 52) | func (SpanType) Descriptor() protoreflect.EnumDescriptor { method Type (line 56) | func (SpanType) Type() protoreflect.EnumType { method Number (line 60) | func (x SpanType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 65) | func (SpanType) EnumDescriptor() ([]byte, []int) { constant SpanType_INBOUND (line 26) | SpanType_INBOUND SpanType = 0 constant SpanType_OUTBOUND (line 27) | SpanType_OUTBOUND SpanType = 1 type BusMsg (line 69) | type BusMsg struct method Reset (line 77) | func (x *BusMsg) Reset() { method String (line 86) | func (x *BusMsg) String() string { method ProtoMessage (line 90) | func (*BusMsg) ProtoMessage() {} method ProtoReflect (line 92) | func (x *BusMsg) ProtoReflect() protoreflect.Message { method Descriptor (line 105) | func (*BusMsg) Descriptor() ([]byte, []int) { method GetMsg (line 109) | func (x *BusMsg) GetMsg() string { type HealthRequest (line 116) | type HealthRequest struct method Reset (line 125) | func (x *HealthRequest) Reset() { method String (line 134) | func (x *HealthRequest) String() string { method ProtoMessage (line 138) | func (*HealthRequest) ProtoMessage() {} method ProtoReflect (line 140) | func (x *HealthRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 153) | func (*HealthRequest) Descriptor() ([]byte, []int) { method GetService (line 157) | func (x *HealthRequest) GetService() string { type HealthResponse (line 164) | type HealthResponse struct method Reset (line 173) | func (x *HealthResponse) Reset() { method String (line 182) | func (x *HealthResponse) String() string { method ProtoMessage (line 186) | func (*HealthResponse) ProtoMessage() {} method ProtoReflect (line 188) | func (x *HealthResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 201) | func (*HealthResponse) Descriptor() ([]byte, []int) { method GetStatus (line 205) | func (x *HealthResponse) GetStatus() string { type StatsRequest (line 212) | type StatsRequest struct method Reset (line 221) | func (x *StatsRequest) Reset() { method String (line 230) | func (x *StatsRequest) String() string { method ProtoMessage (line 234) | func (*StatsRequest) ProtoMessage() {} method ProtoReflect (line 236) | func (x *StatsRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 249) | func (*StatsRequest) Descriptor() ([]byte, []int) { method GetService (line 253) | func (x *StatsRequest) GetService() string { type StatsResponse (line 260) | type StatsResponse struct method Reset (line 283) | func (x *StatsResponse) Reset() { method String (line 292) | func (x *StatsResponse) String() string { method ProtoMessage (line 296) | func (*StatsResponse) ProtoMessage() {} method ProtoReflect (line 298) | func (x *StatsResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 311) | func (*StatsResponse) Descriptor() ([]byte, []int) { method GetTimestamp (line 315) | func (x *StatsResponse) GetTimestamp() uint64 { method GetStarted (line 322) | func (x *StatsResponse) GetStarted() uint64 { method GetUptime (line 329) | func (x *StatsResponse) GetUptime() uint64 { method GetMemory (line 336) | func (x *StatsResponse) GetMemory() uint64 { method GetThreads (line 343) | func (x *StatsResponse) GetThreads() uint64 { method GetGc (line 350) | func (x *StatsResponse) GetGc() uint64 { method GetRequests (line 357) | func (x *StatsResponse) GetRequests() uint64 { method GetErrors (line 364) | func (x *StatsResponse) GetErrors() uint64 { type LogRequest (line 372) | type LogRequest struct method Reset (line 389) | func (x *LogRequest) Reset() { method String (line 398) | func (x *LogRequest) String() string { method ProtoMessage (line 402) | func (*LogRequest) ProtoMessage() {} method ProtoReflect (line 404) | func (x *LogRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 417) | func (*LogRequest) Descriptor() ([]byte, []int) { method GetService (line 421) | func (x *LogRequest) GetService() string { method GetStream (line 428) | func (x *LogRequest) GetStream() bool { method GetCount (line 435) | func (x *LogRequest) GetCount() int64 { method GetSince (line 442) | func (x *LogRequest) GetSince() int64 { type Record (line 451) | type Record struct method Reset (line 464) | func (x *Record) Reset() { method String (line 473) | func (x *Record) String() string { method ProtoMessage (line 477) | func (*Record) ProtoMessage() {} method ProtoReflect (line 479) | func (x *Record) ProtoReflect() protoreflect.Message { method Descriptor (line 492) | func (*Record) Descriptor() ([]byte, []int) { method GetTimestamp (line 496) | func (x *Record) GetTimestamp() int64 { method GetMetadata (line 503) | func (x *Record) GetMetadata() map[string]string { method GetMessage (line 510) | func (x *Record) GetMessage() string { type TraceRequest (line 517) | type TraceRequest struct method Reset (line 526) | func (x *TraceRequest) Reset() { method String (line 535) | func (x *TraceRequest) String() string { method ProtoMessage (line 539) | func (*TraceRequest) ProtoMessage() {} method ProtoReflect (line 541) | func (x *TraceRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 554) | func (*TraceRequest) Descriptor() ([]byte, []int) { method GetId (line 558) | func (x *TraceRequest) GetId() string { type TraceResponse (line 565) | type TraceResponse struct method Reset (line 573) | func (x *TraceResponse) Reset() { method String (line 582) | func (x *TraceResponse) String() string { method ProtoMessage (line 586) | func (*TraceResponse) ProtoMessage() {} method ProtoReflect (line 588) | func (x *TraceResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 601) | func (*TraceResponse) Descriptor() ([]byte, []int) { method GetSpans (line 605) | func (x *TraceResponse) GetSpans() []*Span { type Span (line 612) | type Span struct method Reset (line 634) | func (x *Span) Reset() { method String (line 643) | func (x *Span) String() string { method ProtoMessage (line 647) | func (*Span) ProtoMessage() {} method ProtoReflect (line 649) | func (x *Span) ProtoReflect() protoreflect.Message { method Descriptor (line 662) | func (*Span) Descriptor() ([]byte, []int) { method GetTrace (line 666) | func (x *Span) GetTrace() string { method GetId (line 673) | func (x *Span) GetId() string { method GetParent (line 680) | func (x *Span) GetParent() string { method GetName (line 687) | func (x *Span) GetName() string { method GetStarted (line 694) | func (x *Span) GetStarted() uint64 { method GetDuration (line 701) | func (x *Span) GetDuration() uint64 { method GetMetadata (line 708) | func (x *Span) GetMetadata() map[string]string { method GetType (line 715) | func (x *Span) GetType() SpanType { function file_proto_debug_proto_rawDescGZIP (line 820) | func file_proto_debug_proto_rawDescGZIP() []byte { function init (line 866) | func init() { file_proto_debug_proto_init() } function file_proto_debug_proto_init (line 867) | func file_proto_debug_proto_init() { FILE: debug/proto/debug.pb.micro.go type DebugService (line 30) | type DebugService interface type debugService (line 38) | type debugService struct method Log (line 50) | func (c *debugService) Log(ctx context.Context, in *LogRequest, opts .... method Health (line 104) | func (c *debugService) Health(ctx context.Context, in *HealthRequest, ... method Stats (line 114) | func (c *debugService) Stats(ctx context.Context, in *StatsRequest, op... method Trace (line 124) | func (c *debugService) Trace(ctx context.Context, in *TraceRequest, op... method MessageBus (line 134) | func (c *debugService) MessageBus(ctx context.Context, opts ...client.... function NewDebugService (line 43) | func NewDebugService(name string, c client.Client) DebugService { type Debug_LogService (line 62) | type Debug_LogService interface type debugServiceLog (line 71) | type debugServiceLog struct method CloseSend (line 75) | func (x *debugServiceLog) CloseSend() error { method Close (line 79) | func (x *debugServiceLog) Close() error { method Context (line 83) | func (x *debugServiceLog) Context() context.Context { method SendMsg (line 87) | func (x *debugServiceLog) SendMsg(m interface{}) error { method RecvMsg (line 91) | func (x *debugServiceLog) RecvMsg(m interface{}) error { method Recv (line 95) | func (x *debugServiceLog) Recv() (*Record, error) { type Debug_MessageBusService (line 143) | type Debug_MessageBusService interface type debugServiceMessageBus (line 153) | type debugServiceMessageBus struct method CloseSend (line 157) | func (x *debugServiceMessageBus) CloseSend() error { method Close (line 161) | func (x *debugServiceMessageBus) Close() error { method Context (line 165) | func (x *debugServiceMessageBus) Context() context.Context { method SendMsg (line 169) | func (x *debugServiceMessageBus) SendMsg(m interface{}) error { method RecvMsg (line 173) | func (x *debugServiceMessageBus) RecvMsg(m interface{}) error { method Send (line 177) | func (x *debugServiceMessageBus) Send(m *BusMsg) error { method Recv (line 181) | func (x *debugServiceMessageBus) Recv() (*BusMsg, error) { type DebugHandler (line 192) | type DebugHandler interface function RegisterDebugHandler (line 200) | func RegisterDebugHandler(s server.Server, hdlr DebugHandler, opts ...se... type debugHandler (line 215) | type debugHandler struct method Log (line 219) | func (h *debugHandler) Log(ctx context.Context, stream server.Stream) ... method Health (line 259) | func (h *debugHandler) Health(ctx context.Context, in *HealthRequest, ... method Stats (line 263) | func (h *debugHandler) Stats(ctx context.Context, in *StatsRequest, ou... method Trace (line 267) | func (h *debugHandler) Trace(ctx context.Context, in *TraceRequest, ou... method MessageBus (line 271) | func (h *debugHandler) MessageBus(ctx context.Context, stream server.S... type Debug_LogStream (line 227) | type Debug_LogStream interface type debugLogStream (line 235) | type debugLogStream struct method Close (line 239) | func (x *debugLogStream) Close() error { method Context (line 243) | func (x *debugLogStream) Context() context.Context { method SendMsg (line 247) | func (x *debugLogStream) SendMsg(m interface{}) error { method RecvMsg (line 251) | func (x *debugLogStream) RecvMsg(m interface{}) error { method Send (line 255) | func (x *debugLogStream) Send(m *Record) error { type Debug_MessageBusStream (line 275) | type Debug_MessageBusStream interface type debugMessageBusStream (line 284) | type debugMessageBusStream struct method Close (line 288) | func (x *debugMessageBusStream) Close() error { method Context (line 292) | func (x *debugMessageBusStream) Context() context.Context { method SendMsg (line 296) | func (x *debugMessageBusStream) SendMsg(m interface{}) error { method RecvMsg (line 300) | func (x *debugMessageBusStream) RecvMsg(m interface{}) error { method Send (line 304) | func (x *debugMessageBusStream) Send(m *BusMsg) error { method Recv (line 308) | func (x *debugMessageBusStream) Recv() (*BusMsg, error) { FILE: debug/stats/default.go type stats (line 11) | type stats struct method snapshot (line 21) | func (s *stats) snapshot() *Stat { method Read (line 42) | func (s *stats) Read() ([]*Stat, error) { method Write (line 62) | func (s *stats) Write(stat *Stat) error { method Record (line 67) | func (s *stats) Record(err error) error { function NewStats (line 84) | func NewStats() Stats { FILE: debug/stats/stats.go type Stats (line 5) | type Stats interface type Stat (line 15) | type Stat struct FILE: debug/trace/default.go type memTracer (line 11) | type memTracer struct method Read (line 18) | func (t *memTracer) Read(opts ...ReadOption) ([]*Span, error) { method Start (line 40) | func (t *memTracer) Start(ctx context.Context, name string) (context.C... method Finish (line 69) | func (t *memTracer) Finish(s *Span) error { function NewTracer (line 78) | func NewTracer(opts ...Option) Tracer { FILE: debug/trace/noop.go type noop (line 5) | type noop struct method Init (line 7) | func (n *noop) Init(...Option) error { method Start (line 11) | func (n *noop) Start(ctx context.Context, name string) (context.Contex... method Finish (line 15) | func (n *noop) Finish(*Span) error { method Read (line 19) | func (n *noop) Read(...ReadOption) ([]*Span, error) { FILE: debug/trace/options.go type Options (line 3) | type Options struct type Option (line 8) | type Option type ReadOptions (line 10) | type ReadOptions struct type ReadOption (line 15) | type ReadOption function ReadTrace (line 18) | func ReadTrace(t string) ReadOption { constant DefaultSize (line 26) | DefaultSize = 64 function DefaultOptions (line 30) | func DefaultOptions() Options { FILE: debug/trace/trace.go type Tracer (line 18) | type Tracer interface type SpanType (line 28) | type SpanType constant SpanTypeRequestInbound (line 32) | SpanTypeRequestInbound SpanType = iota constant SpanTypeRequestOutbound (line 34) | SpanTypeRequestOutbound type Span (line 38) | type Span struct function FromContext (line 58) | func FromContext(ctx context.Context) (traceID string, parentSpanID stri... function ToContext (line 77) | func ToContext(ctx context.Context, traceID, parentSpanID string) contex... FILE: errors/errors.go method Error (line 14) | func (e *Error) Error() string { function New (line 20) | func New(id, detail string, code int32) error { function Parse (line 31) | func Parse(err string) *Error { function newError (line 40) | func newError(id string, code int32, detail string, a ...interface{}) er... function BadRequest (line 53) | func BadRequest(id, format string, a ...interface{}) error { function Unauthorized (line 58) | func Unauthorized(id, format string, a ...interface{}) error { function Forbidden (line 63) | func Forbidden(id, format string, a ...interface{}) error { function NotFound (line 68) | func NotFound(id, format string, a ...interface{}) error { function MethodNotAllowed (line 73) | func MethodNotAllowed(id, format string, a ...interface{}) error { function Timeout (line 78) | func Timeout(id, format string, a ...interface{}) error { function Conflict (line 83) | func Conflict(id, format string, a ...interface{}) error { function InternalServerError (line 88) | func InternalServerError(id, format string, a ...interface{}) error { function Equal (line 93) | func Equal(err1 error, err2 error) bool { function FromError (line 113) | func FromError(err error) *Error { function As (line 125) | func As(err error) (*Error, bool) { function NewMultiError (line 136) | func NewMultiError() *MultiError { method Append (line 142) | func (e *MultiError) Append(err ...*Error) { method HasErrors (line 146) | func (e *MultiError) HasErrors() bool { method Error (line 150) | func (e *MultiError) Error() string { FILE: errors/errors.pb.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type Error (line 23) | type Error struct method Reset (line 34) | func (x *Error) Reset() { method String (line 43) | func (x *Error) String() string { method ProtoMessage (line 47) | func (*Error) ProtoMessage() {} method ProtoReflect (line 49) | func (x *Error) ProtoReflect() protoreflect.Message { method Descriptor (line 62) | func (*Error) Descriptor() ([]byte, []int) { method GetId (line 66) | func (x *Error) GetId() string { method GetCode (line 73) | func (x *Error) GetCode() int32 { method GetDetail (line 80) | func (x *Error) GetDetail() string { method GetStatus (line 87) | func (x *Error) GetStatus() string { type MultiError (line 94) | type MultiError struct method Reset (line 102) | func (x *MultiError) Reset() { method String (line 111) | func (x *MultiError) String() string { method ProtoMessage (line 115) | func (*MultiError) ProtoMessage() {} method ProtoReflect (line 117) | func (x *MultiError) ProtoReflect() protoreflect.Message { method Descriptor (line 130) | func (*MultiError) Descriptor() ([]byte, []int) { method GetErrors (line 134) | func (x *MultiError) GetErrors() []*Error { function file_errors_proto_rawDescGZIP (line 163) | func file_errors_proto_rawDescGZIP() []byte { function init (line 184) | func init() { file_errors_proto_init() } function file_errors_proto_init (line 185) | func file_errors_proto_init() { FILE: errors/errors_test.go function TestFromError (line 9) | func TestFromError(t *testing.T) { function TestEqual (line 26) | func TestEqual(t *testing.T) { function TestErrors (line 40) | func TestErrors(t *testing.T) { function TestAs (line 81) | func TestAs(t *testing.T) { function TestAppend (line 101) | func TestAppend(t *testing.T) { function TestHasErrors (line 131) | func TestHasErrors(t *testing.T) { FILE: event.go type event (line 9) | type event struct method Publish (line 14) | func (e *event) Publish(ctx context.Context, msg interface{}, opts ...... FILE: events/events.go type Stream (line 25) | type Stream interface type Store (line 31) | type Store interface type AckFunc (line 36) | type AckFunc type NackFunc (line 37) | type NackFunc type Event (line 40) | type Event struct method Unmarshal (line 57) | func (e *Event) Unmarshal(v interface{}) error { method Ack (line 62) | func (e *Event) Ack() error { method SetAckFunc (line 66) | func (e *Event) SetAckFunc(f AckFunc) { method Nack (line 71) | func (e *Event) Nack() error { method SetNackFunc (line 75) | func (e *Event) SetNackFunc(f NackFunc) { function Publish (line 80) | func Publish(topic string, msg interface{}, opts ...PublishOption) error { function Consume (line 85) | func Consume(topic string, opts ...ConsumeOption) (<-chan Event, error) { function Read (line 90) | func Read(topic string, opts ...ReadOption) ([]*Event, error) { FILE: events/memory.go function NewStream (line 16) | func NewStream(opts ...Option) (Stream, error) { type subscriber (line 25) | type subscriber struct type mem (line 37) | type mem struct method Publish (line 44) | func (m *mem) Publish(topic string, msg interface{}, opts ...PublishOp... method Consume (line 97) | func (m *mem) Consume(topic string, opts ...ConsumeOption) (<-chan Eve... method lookupPreviousEvents (line 149) | func (m *mem) lookupPreviousEvents(sub *subscriber, startTime time.Tim... method handleEvent (line 173) | func (m *mem) handleEvent(ev *Event) { function sendEvent (line 195) | func sendEvent(ev *Event, sub *subscriber) { function ackFunc (line 235) | func ackFunc(s *subscriber, evCopy Event) func() error { function nackFunc (line 244) | func nackFunc(_ *subscriber, _ Event) func() error { FILE: events/natsjs/helpers_test.go function getFreeLocalhostAddress (line 15) | func getFreeLocalhostAddress() string { function natsServer (line 21) | func natsServer(ctx context.Context, t *testing.T, opts *nserver.Options) { function NewLogWrapper (line 59) | func NewLogWrapper() *LogWrapper { type LogWrapper (line 63) | type LogWrapper struct method Noticef (line 67) | func (l *LogWrapper) Noticef(format string, v ...interface{}) { method Warnf (line 72) | func (l *LogWrapper) Warnf(format string, v ...interface{}) { method Fatalf (line 77) | func (l *LogWrapper) Fatalf(format string, v ...interface{}) { method Errorf (line 82) | func (l *LogWrapper) Errorf(format string, v ...interface{}) { method Debugf (line 87) | func (l *LogWrapper) Debugf(format string, v ...interface{}) { method Tracef (line 92) | func (l *LogWrapper) Tracef(format string, v ...interface{}) { FILE: events/natsjs/nats.go constant defaultClusterID (line 21) | defaultClusterID = "micro" function NewStream (line 26) | func NewStream(opts ...Option) (events.Stream, error) { type stream (line 50) | type stream struct method Publish (line 96) | func (s *stream) Publish(topic string, msg interface{}, opts ...events... method Consume (line 157) | func (s *stream) Consume(topic string, opts ...events.ConsumeOption) (... method Close (line 278) | func (s *stream) Close() error { function connectToNatsJetStream (line 56) | func connectToNatsJetStream(options Options) (*nats.Conn, nats.JetStream... FILE: events/natsjs/nats_test.go type Payload (line 18) | type Payload struct function TestSingleEvent (line 23) | func TestSingleEvent(t *testing.T) { FILE: events/natsjs/options.go type Options (line 11) | type Options struct type Option (line 29) | type Option function ClusterID (line 32) | func ClusterID(id string) Option { function ClientID (line 39) | func ClientID(id string) Option { function Address (line 46) | func Address(addr string) Option { function TLSConfig (line 53) | func TLSConfig(t *tls.Config) Option { function NkeyConfig (line 60) | func NkeyConfig(nkey string) Option { function Logger (line 67) | func Logger(log logger.Logger) Option { function SynchronousPublish (line 74) | func SynchronousPublish(sync bool) Option { function Name (line 81) | func Name(name string) Option { function DisableDurableStreams (line 88) | func DisableDurableStreams() Option { function Authenticate (line 95) | func Authenticate(username, password string) Option { function RetentionPolicy (line 101) | func RetentionPolicy(rp int) Option { function MaxMsgSize (line 107) | func MaxMsgSize(size int) Option { function MaxAge (line 112) | func MaxAge(age time.Duration) Option { FILE: events/options.go type Options (line 5) | type Options struct type Option (line 7) | type Option type StoreOptions (line 9) | type StoreOptions struct type StoreOption (line 14) | type StoreOption type PublishOptions (line 17) | type PublishOptions struct type PublishOption (line 25) | type PublishOption function WithMetadata (line 28) | func WithMetadata(md map[string]string) PublishOption { function WithTimestamp (line 35) | func WithTimestamp(t time.Time) PublishOption { type ConsumeOptions (line 42) | type ConsumeOptions struct method GetRetryLimit (line 97) | func (s ConsumeOptions) GetRetryLimit() int { type ConsumeOption (line 63) | type ConsumeOption function WithGroup (line 66) | func WithGroup(q string) ConsumeOption { function WithOffset (line 73) | func WithOffset(t time.Time) ConsumeOption { function WithAutoAck (line 81) | func WithAutoAck(ack bool, ackWait time.Duration) ConsumeOption { function WithRetryLimit (line 90) | func WithRetryLimit(retries int) ConsumeOption { type WriteOptions (line 105) | type WriteOptions struct type WriteOption (line 112) | type WriteOption function WithTTL (line 115) | func WithTTL(d time.Duration) WriteOption { type ReadOptions (line 122) | type ReadOptions struct type ReadOption (line 130) | type ReadOption function ReadLimit (line 133) | func ReadLimit(l uint) ReadOption { function ReadOffset (line 140) | func ReadOffset(l uint) ReadOption { FILE: events/store.go constant joinKey (line 12) | joinKey = "/" function NewStore (line 15) | func NewStore(opts ...StoreOption) Store { type evStore (line 36) | type evStore struct method Read (line 42) | func (s *evStore) Read(topic string, opts ...ReadOption) ([]*Event, er... method Write (line 81) | func (s *evStore) Write(event *Event, opts ...WriteOption) error { method backupLoop (line 113) | func (s *evStore) backupLoop() { type Backup (line 125) | type Backup interface FILE: events/store_test.go function TestStore (line 10) | func TestStore(t *testing.T) { FILE: events/stream_test.go type testPayload (line 12) | type testPayload struct type testCase (line 16) | type testCase struct function TestStream (line 21) | func TestStream(t *testing.T) { function runTestStream (line 37) | func runTestStream(t *testing.T, stream Stream) { FILE: examples/agent-demo/main.go type Project (line 31) | type Project struct type CreateProjectRequest (line 39) | type CreateProjectRequest struct type CreateProjectResponse (line 44) | type CreateProjectResponse struct type GetProjectRequest (line 48) | type GetProjectRequest struct type GetProjectResponse (line 52) | type GetProjectResponse struct type ListProjectsRequest (line 56) | type ListProjectsRequest struct type ListProjectsResponse (line 60) | type ListProjectsResponse struct type ProjectService (line 64) | type ProjectService struct method Create (line 74) | func (s *ProjectService) Create(ctx context.Context, req *CreateProjec... method Get (line 94) | func (s *ProjectService) Get(ctx context.Context, req *GetProjectReque... method List (line 109) | func (s *ProjectService) List(ctx context.Context, req *ListProjectsRe... type Task (line 124) | type Task struct type CreateTaskRequest (line 133) | type CreateTaskRequest struct type CreateTaskResponse (line 140) | type CreateTaskResponse struct type ListTasksRequest (line 144) | type ListTasksRequest struct type ListTasksResponse (line 150) | type ListTasksResponse struct type UpdateTaskRequest (line 154) | type UpdateTaskRequest struct type UpdateTaskResponse (line 160) | type UpdateTaskResponse struct type TaskService (line 164) | type TaskService struct method Create (line 174) | func (s *TaskService) Create(ctx context.Context, req *CreateTaskReque... method List (line 199) | func (s *TaskService) List(ctx context.Context, req *ListTasksRequest,... method Update (line 222) | func (s *TaskService) Update(ctx context.Context, req *UpdateTaskReque... type Member (line 243) | type Member struct type AddMemberRequest (line 250) | type AddMemberRequest struct type AddMemberResponse (line 257) | type AddMemberResponse struct type ListMembersRequest (line 261) | type ListMembersRequest struct type ListMembersResponse (line 266) | type ListMembersResponse struct type GetMemberRequest (line 270) | type GetMemberRequest struct type GetMemberResponse (line 274) | type GetMemberResponse struct type TeamService (line 278) | type TeamService struct method Add (line 287) | func (s *TeamService) Add(ctx context.Context, req *AddMemberRequest, ... method List (line 304) | func (s *TeamService) List(ctx context.Context, req *ListMembersReques... method Get (line 323) | func (s *TeamService) Get(ctx context.Context, req *GetMemberRequest, ... function hasSkill (line 334) | func hasSkill(skills []string, target string) bool { function main (line 347) | func main() { function seedData (line 401) | func seedData(srv server.Server) { FILE: examples/auth/client/main.go function main (line 18) | func main() { FILE: examples/auth/proto/greeter.pb.go type Request (line 16) | type Request struct method Reset (line 20) | func (m *Request) Reset() { *m = Request{} } method String (line 21) | func (m *Request) String() string { return fmt.Sprintf("Request{Name:%... method ProtoMessage (line 22) | func (*Request) ProtoMessage() {} method GetName (line 24) | func (m *Request) GetName() string { type Response (line 31) | type Response struct method Reset (line 35) | func (m *Response) Reset() { *m = Response{} } method String (line 36) | func (m *Response) String() string { return fmt.Sprintf("Response{Msg:... method ProtoMessage (line 37) | func (*Response) ProtoMessage() {} method GetMsg (line 39) | func (m *Response) GetMsg() string { type HealthRequest (line 46) | type HealthRequest struct method Reset (line 48) | func (m *HealthRequest) Reset() { *m = HealthRequest{} } method String (line 49) | func (m *HealthRequest) String() string { return "HealthRequest{}" } method ProtoMessage (line 50) | func (*HealthRequest) ProtoMessage() {} type HealthResponse (line 52) | type HealthResponse struct method Reset (line 56) | func (m *HealthResponse) Reset() { *m = HealthResponse{} } method String (line 57) | func (m *HealthResponse) String() string { return fmt.Sprintf("HealthR... method ProtoMessage (line 58) | func (*HealthResponse) ProtoMessage() {} method GetStatus (line 60) | func (m *HealthResponse) GetStatus() string { function init (line 67) | func init() { type GreeterService (line 78) | type GreeterService interface type greeterService (line 83) | type greeterService struct method Hello (line 95) | func (c *greeterService) Hello(ctx context.Context, in *Request, opts ... method Health (line 105) | func (c *greeterService) Health(ctx context.Context, in *HealthRequest... function NewGreeterService (line 88) | func NewGreeterService(name string, c client.Client) GreeterService { type GreeterHandler (line 117) | type GreeterHandler interface function RegisterGreeterHandler (line 122) | func RegisterGreeterHandler(s server.Server, hdlr GreeterHandler, opts .... type greeterHandler (line 134) | type greeterHandler struct method Hello (line 138) | func (h *greeterHandler) Hello(ctx context.Context, in *Request, out *... method Health (line 142) | func (h *greeterHandler) Health(ctx context.Context, in *HealthRequest... FILE: examples/auth/server/main.go type Greeter (line 16) | type Greeter struct method Hello (line 19) | func (g *Greeter) Hello(ctx context.Context, req *pb.Request, rsp *pb.... method Health (line 32) | func (g *Greeter) Health(ctx context.Context, req *pb.HealthRequest, r... function main (line 37) | func main() { FILE: examples/hello-world/main.go type Request (line 12) | type Request struct type Response (line 16) | type Response struct type Greeter (line 21) | type Greeter struct method Hello (line 24) | func (g *Greeter) Hello(ctx context.Context, req *Request, rsp *Respon... function main (line 30) | func main() { FILE: examples/mcp/crud/main.go type Contact (line 29) | type Contact struct type CreateRequest (line 38) | type CreateRequest struct type CreateResponse (line 46) | type CreateResponse struct type GetRequest (line 50) | type GetRequest struct type GetResponse (line 54) | type GetResponse struct type UpdateRequest (line 58) | type UpdateRequest struct type UpdateResponse (line 67) | type UpdateResponse struct type DeleteRequest (line 71) | type DeleteRequest struct type DeleteResponse (line 75) | type DeleteResponse struct type ListRequest (line 79) | type ListRequest struct type ListResponse (line 82) | type ListResponse struct type SearchRequest (line 86) | type SearchRequest struct type SearchResponse (line 90) | type SearchResponse struct type Contacts (line 97) | type Contacts struct method Create (line 116) | func (h *Contacts) Create(ctx context.Context, req *CreateRequest, rsp... method Get (line 145) | func (h *Contacts) Get(ctx context.Context, req *GetRequest, rsp *GetR... method Update (line 165) | func (h *Contacts) Update(ctx context.Context, req *UpdateRequest, rsp... method Delete (line 201) | func (h *Contacts) Delete(ctx context.Context, req *DeleteRequest, rsp... method List (line 221) | func (h *Contacts) List(ctx context.Context, req *ListRequest, rsp *Li... method Search (line 235) | func (h *Contacts) Search(ctx context.Context, req *SearchRequest, rsp... function NewContacts (line 103) | func NewContacts() *Contacts { function main (line 255) | func main() { FILE: examples/mcp/documented/main.go type User (line 19) | type User struct type GetUserRequest (line 27) | type GetUserRequest struct type GetUserResponse (line 32) | type GetUserResponse struct type CreateUserRequest (line 37) | type CreateUserRequest struct type CreateUserResponse (line 44) | type CreateUserResponse struct type Users (line 49) | type Users struct method GetUser (line 56) | func (u *Users) GetUser(ctx context.Context, req *GetUserRequest, rsp ... method CreateUser (line 69) | func (u *Users) CreateUser(ctx context.Context, req *CreateUserRequest... function main (line 91) | func main() { FILE: examples/mcp/hello/main.go type Greeter (line 18) | type Greeter struct method SayHello (line 23) | func (g *Greeter) SayHello(ctx context.Context, req *HelloRequest, rsp... type HelloRequest (line 29) | type HelloRequest struct type HelloResponse (line 34) | type HelloResponse struct function main (line 38) | func main() { FILE: examples/mcp/platform/main.go type User (line 47) | type User struct type SignupRequest (line 54) | type SignupRequest struct type SignupResponse (line 58) | type SignupResponse struct type LoginRequest (line 63) | type LoginRequest struct type LoginResponse (line 67) | type LoginResponse struct type GetProfileRequest (line 72) | type GetProfileRequest struct type GetProfileResponse (line 75) | type GetProfileResponse struct type UpdateStatusRequest (line 79) | type UpdateStatusRequest struct type UpdateStatusResponse (line 83) | type UpdateStatusResponse struct type ListUsersRequest (line 87) | type ListUsersRequest struct type ListUsersResponse (line 88) | type ListUsersResponse struct type Users (line 92) | type Users struct method Signup (line 112) | func (s *Users) Signup(ctx context.Context, req *SignupRequest, rsp *S... method Login (line 151) | func (s *Users) Login(ctx context.Context, req *LoginRequest, rsp *Log... method GetProfile (line 176) | func (s *Users) GetProfile(ctx context.Context, req *GetProfileRequest... method UpdateStatus (line 191) | func (s *Users) UpdateStatus(ctx context.Context, req *UpdateStatusReq... method List (line 207) | func (s *Users) List(ctx context.Context, req *ListUsersRequest, rsp *... function NewUsers (line 100) | func NewUsers() *Users { type Post (line 221) | type Post struct type CreatePostRequest (line 232) | type CreatePostRequest struct type CreatePostResponse (line 238) | type CreatePostResponse struct type ReadPostRequest (line 242) | type ReadPostRequest struct type ReadPostResponse (line 245) | type ReadPostResponse struct type UpdatePostRequest (line 249) | type UpdatePostRequest struct type UpdatePostResponse (line 254) | type UpdatePostResponse struct type DeletePostRequest (line 258) | type DeletePostRequest struct type DeletePostResponse (line 261) | type DeletePostResponse struct type ListPostsRequest (line 265) | type ListPostsRequest struct type ListPostsResponse (line 268) | type ListPostsResponse struct type TagPostRequest (line 273) | type TagPostRequest struct type TagPostResponse (line 277) | type TagPostResponse struct type UntagPostRequest (line 281) | type UntagPostRequest struct type UntagPostResponse (line 285) | type UntagPostResponse struct type ListTagsRequest (line 289) | type ListTagsRequest struct type ListTagsResponse (line 290) | type ListTagsResponse struct type Posts (line 294) | type Posts struct method Create (line 308) | func (s *Posts) Create(ctx context.Context, req *CreatePostRequest, rs... method Read (line 341) | func (s *Posts) Read(ctx context.Context, req *ReadPostRequest, rsp *R... method Update (line 357) | func (s *Posts) Update(ctx context.Context, req *UpdatePostRequest, rs... method Delete (line 379) | func (s *Posts) Delete(ctx context.Context, req *DeletePostRequest, rs... method List (line 395) | func (s *Posts) List(ctx context.Context, req *ListPostsRequest, rsp *... method TagPost (line 416) | func (s *Posts) TagPost(ctx context.Context, req *TagPostRequest, rsp ... method UntagPost (line 445) | func (s *Posts) UntagPost(ctx context.Context, req *UntagPostRequest, ... method ListTags (line 469) | func (s *Posts) ListTags(ctx context.Context, req *ListTagsRequest, rs... function NewPosts (line 300) | func NewPosts() *Posts { type Comment (line 490) | type Comment struct type CreateCommentRequest (line 499) | type CreateCommentRequest struct type CreateCommentResponse (line 505) | type CreateCommentResponse struct type ListCommentsRequest (line 509) | type ListCommentsRequest struct type ListCommentsResponse (line 513) | type ListCommentsResponse struct type DeleteCommentRequest (line 517) | type DeleteCommentRequest struct type DeleteCommentResponse (line 520) | type DeleteCommentResponse struct type Comments (line 524) | type Comments struct method Create (line 534) | func (s *Comments) Create(ctx context.Context, req *CreateCommentReque... method List (line 566) | func (s *Comments) List(ctx context.Context, req *ListCommentsRequest,... method Delete (line 585) | func (s *Comments) Delete(ctx context.Context, req *DeleteCommentReque... type MailMessage (line 603) | type MailMessage struct type SendMailRequest (line 613) | type SendMailRequest struct type SendMailResponse (line 619) | type SendMailResponse struct type ReadMailRequest (line 623) | type ReadMailRequest struct type ReadMailResponse (line 626) | type ReadMailResponse struct type Mail (line 630) | type Mail struct method Send (line 640) | func (s *Mail) Send(ctx context.Context, req *SendMailRequest, rsp *Se... method Read (line 668) | func (s *Mail) Read(ctx context.Context, req *ReadMailRequest, rsp *Re... function main (line 689) | func main() { function seedData (line 717) | func seedData(users *Users, posts *Posts) { function printBanner (line 747) | func printBanner() { function generateToken (line 770) | func generateToken() string { FILE: examples/mcp/workflow/main.go type Product (line 36) | type Product struct type CheckStockRequest (line 44) | type CheckStockRequest struct type CheckStockResponse (line 48) | type CheckStockResponse struct type SearchProductsRequest (line 52) | type SearchProductsRequest struct type SearchProductsResponse (line 57) | type SearchProductsResponse struct type ReserveStockRequest (line 61) | type ReserveStockRequest struct type ReserveStockResponse (line 66) | type ReserveStockResponse struct type InventoryService (line 72) | type InventoryService struct method CheckStock (line 81) | func (s *InventoryService) CheckStock(ctx context.Context, req *CheckS... method Search (line 96) | func (s *InventoryService) Search(ctx context.Context, req *SearchProd... method ReserveStock (line 115) | func (s *InventoryService) ReserveStock(ctx context.Context, req *Rese... type Order (line 139) | type Order struct type PlaceOrderRequest (line 149) | type PlaceOrderRequest struct type PlaceOrderResponse (line 155) | type PlaceOrderResponse struct type GetOrderRequest (line 159) | type GetOrderRequest struct type GetOrderResponse (line 163) | type GetOrderResponse struct type ListOrdersRequest (line 167) | type ListOrdersRequest struct type ListOrdersResponse (line 172) | type ListOrdersResponse struct type OrderService (line 176) | type OrderService struct method PlaceOrder (line 188) | func (s *OrderService) PlaceOrder(ctx context.Context, req *PlaceOrder... method GetOrder (line 227) | func (s *OrderService) GetOrder(ctx context.Context, req *GetOrderRequ... method ListOrders (line 241) | func (s *OrderService) ListOrders(ctx context.Context, req *ListOrders... type Notification (line 260) | type Notification struct type SendNotificationRequest (line 269) | type SendNotificationRequest struct type SendNotificationResponse (line 276) | type SendNotificationResponse struct type ListNotificationsRequest (line 280) | type ListNotificationsRequest struct type ListNotificationsResponse (line 284) | type ListNotificationsResponse struct type NotificationService (line 288) | type NotificationService struct method Send (line 299) | func (s *NotificationService) Send(ctx context.Context, req *SendNotif... method List (line 333) | func (s *NotificationService) List(ctx context.Context, req *ListNotif... function main (line 349) | func main() { FILE: examples/multi-service/main.go type UserRequest (line 18) | type UserRequest struct type UserResponse (line 22) | type UserResponse struct type Users (line 27) | type Users struct method Lookup (line 29) | func (u *Users) Lookup(ctx context.Context, req *UserRequest, rsp *Use... type OrderRequest (line 38) | type OrderRequest struct type OrderResponse (line 42) | type OrderResponse struct type Orders (line 47) | type Orders struct method Create (line 49) | func (o *Orders) Create(ctx context.Context, req *OrderRequest, rsp *O... function main (line 56) | func main() { FILE: examples/web-service/main.go type User (line 13) | type User struct function main (line 25) | func main() { function homeHandler (line 55) | func homeHandler(w http.ResponseWriter, r *http.Request) { function usersHandler (line 64) | func usersHandler(w http.ResponseWriter, r *http.Request) { function userHandler (line 76) | func userHandler(w http.ResponseWriter, r *http.Request) { function healthHandler (line 94) | func healthHandler(w http.ResponseWriter, r *http.Request) { FILE: gateway/api/gateway.go type Options (line 20) | type Options struct type Gateway (line 49) | type Gateway struct method Wait (line 131) | func (g *Gateway) Wait() error { method Stop (line 137) | func (g *Gateway) Stop() error { method Addr (line 147) | func (g *Gateway) Addr() string { method Mux (line 153) | func (g *Gateway) Mux() *http.ServeMux { function New (line 58) | func New(opts Options) (*Gateway, error) { function Run (line 122) | func Run(opts Options) error { FILE: gateway/mcp/benchmark_test.go function benchServer (line 18) | func benchServer(n int, opts Options) *Server { function toolName (line 61) | func toolName(i int) string { function BenchmarkListTools (line 69) | func BenchmarkListTools(b *testing.B) { function BenchmarkListToolsParallel (line 89) | func BenchmarkListToolsParallel(b *testing.B) { function BenchmarkToolLookup (line 104) | func BenchmarkToolLookup(b *testing.B) { function BenchmarkAuthInspect (line 125) | func BenchmarkAuthInspect(b *testing.B) { function BenchmarkScopeCheck (line 146) | func BenchmarkScopeCheck(b *testing.B) { function BenchmarkAuditRecord (line 158) | func BenchmarkAuditRecord(b *testing.B) { function BenchmarkRateLimiter (line 179) | func BenchmarkRateLimiter(b *testing.B) { function BenchmarkJSONEncodeTool (line 203) | func BenchmarkJSONEncodeTool(b *testing.B) { function BenchmarkJSONDecodeCallRequest (line 231) | func BenchmarkJSONDecodeCallRequest(b *testing.B) { function toolCountLabel (line 247) | func toolCountLabel(n int) string { FILE: gateway/mcp/circuitbreaker.go type CircuitBreakerConfig (line 12) | type CircuitBreakerConfig struct type circuitState (line 28) | type circuitState method String (line 36) | func (s circuitState) String() string { constant circuitClosed (line 31) | circuitClosed circuitState = iota constant circuitOpen (line 32) | circuitOpen constant circuitHalfOpen (line 33) | circuitHalfOpen type circuitBreaker (line 50) | type circuitBreaker struct method Allow (line 84) | func (cb *circuitBreaker) Allow() error { method RecordSuccess (line 109) | func (cb *circuitBreaker) RecordSuccess() { method RecordFailure (line 118) | func (cb *circuitBreaker) RecordFailure() { method State (line 137) | func (cb *circuitBreaker) State() circuitState { function newCircuitBreaker (line 61) | func newCircuitBreaker(cfg CircuitBreakerConfig) *circuitBreaker { FILE: gateway/mcp/circuitbreaker_test.go function TestCircuitBreaker_ClosedAllowsRequests (line 8) | func TestCircuitBreaker_ClosedAllowsRequests(t *testing.T) { function TestCircuitBreaker_OpensAfterMaxFailures (line 18) | func TestCircuitBreaker_OpensAfterMaxFailures(t *testing.T) { function TestCircuitBreaker_SuccessResetsFailures (line 40) | func TestCircuitBreaker_SuccessResetsFailures(t *testing.T) { function TestCircuitBreaker_HalfOpenAfterTimeout (line 55) | func TestCircuitBreaker_HalfOpenAfterTimeout(t *testing.T) { function TestCircuitBreaker_HalfOpenSuccessCloses (line 85) | func TestCircuitBreaker_HalfOpenSuccessCloses(t *testing.T) { function TestCircuitBreaker_HalfOpenFailureReopens (line 106) | func TestCircuitBreaker_HalfOpenFailureReopens(t *testing.T) { function TestCircuitBreaker_Defaults (line 125) | func TestCircuitBreaker_Defaults(t *testing.T) { function TestCircuitBreaker_StateString (line 139) | func TestCircuitBreaker_StateString(t *testing.T) { FILE: gateway/mcp/example_test.go function Example_withMCP (line 15) | func Example_withMCP() { function Example_inlineGateway (line 27) | func Example_inlineGateway() { function Example_standaloneGateway (line 46) | func Example_standaloneGateway() { function Example_withAuthentication (line 57) | func Example_withAuthentication() { function Example_customContext (line 82) | func Example_customContext() { function Example_withScopesAndTracing (line 106) | func Example_withScopesAndTracing() { FILE: gateway/mcp/mcp.go constant TraceIDKey (line 42) | TraceIDKey = "Mcp-Trace-Id" constant ToolNameKey (line 44) | ToolNameKey = "Mcp-Tool-Name" constant AccountIDKey (line 46) | AccountIDKey = "Mcp-Account-Id" type AuditRecord (line 50) | type AuditRecord struct type AuditFunc (line 74) | type AuditFunc type RateLimitConfig (line 77) | type RateLimitConfig struct type Options (line 85) | type Options struct type Server (line 155) | type Server struct method discoverServices (line 230) | func (s *Server) discoverServices() error { method buildInputSchema (line 320) | func (s *Server) buildInputSchema(value *registry.Value) map[string]in... method mapGoTypeToJSON (line 342) | func (s *Server) mapGoTypeToJSON(goType string) string { method watchServices (line 358) | func (s *Server) watchServices() { method serveHTTP (line 391) | func (s *Server) serveHTTP() error { method serveStdio (line 413) | func (s *Server) serveStdio() error { method handleListTools (line 419) | func (s *Server) handleListTools(w http.ResponseWriter, r *http.Reques... method handleCallTool (line 441) | func (s *Server) handleCallTool(w http.ResponseWriter, r *http.Request) { method handleHealth (line 618) | func (s *Server) handleHealth(w http.ResponseWriter, r *http.Request) { method Stop (line 631) | func (s *Server) Stop() error { method GetTools (line 641) | func (s *Server) GetTools() []*Tool { method audit (line 653) | func (s *Server) audit(record AuditRecord) { method allowRate (line 661) | func (s *Server) allowRate(toolName string) error { method allowCircuit (line 679) | func (s *Server) allowCircuit(toolName string) error { method recordCircuit (line 693) | func (s *Server) recordCircuit(toolName string, success bool) { type Tool (line 172) | type Tool struct function Serve (line 186) | func Serve(opts Options) error { function ListenAndServe (line 224) | func ListenAndServe(address string, opts Options) error { function hasScope (line 711) | func hasScope(accountScopes, requiredScopes []string) bool { function Example (line 723) | func Example() { FILE: gateway/mcp/mcp_test.go type mockAuth (line 20) | type mockAuth struct method Init (line 24) | func (m *mockAuth) Init(...auth.Option) {} method Options (line 25) | func (m *mockAuth) Options() auth.Options { return auth.Options{} } method Generate (line 26) | func (m *mockAuth) Generate(string, ...auth.GenerateOption) (*auth.Acc... method Token (line 29) | func (m *mockAuth) Token(...auth.TokenOption) (*auth.Token, error) { r... method String (line 30) | func (m *mockAuth) String() string { r... method Inspect (line 32) | func (m *mockAuth) Inspect(token string) (*auth.Account, error) { function newTestServer (line 41) | func newTestServer(opts Options) *Server { function testLogger (line 60) | func testLogger() *log.Logger { type nopWriter (line 64) | type nopWriter struct method Write (line 66) | func (nopWriter) Write(p []byte) (int, error) { return len(p), nil } function TestHasScope (line 70) | func TestHasScope(t *testing.T) { function TestToolScopesFromMetadata (line 95) | func TestToolScopesFromMetadata(t *testing.T) { function TestHandleCallTool_AuthRequired (line 147) | func TestHandleCallTool_AuthRequired(t *testing.T) { function TestHandleCallTool_TraceID (line 194) | func TestHandleCallTool_TraceID(t *testing.T) { function TestHandleCallTool_AuditFunc (line 220) | func TestHandleCallTool_AuditFunc(t *testing.T) { function TestHandleCallTool_AuditDenied (line 274) | func TestHandleCallTool_AuditDenied(t *testing.T) { function TestRateLimiter (line 326) | func TestRateLimiter(t *testing.T) { function TestHandleCallTool_RateLimit (line 351) | func TestHandleCallTool_RateLimit(t *testing.T) { function TestHandleCallTool_NoAuth_NoScope (line 408) | func TestHandleCallTool_NoAuth_NoScope(t *testing.T) { function TestToolScopesInJSON (line 431) | func TestToolScopesInJSON(t *testing.T) { function TestToolNoScopesOmittedInJSON (line 458) | func TestToolNoScopesOmittedInJSON(t *testing.T) { function TestDiscoverServices_RateLimiters (line 480) | func TestDiscoverServices_RateLimiters(t *testing.T) { function TestScopesFromGatewayOptions (line 515) | func TestScopesFromGatewayOptions(t *testing.T) { FILE: gateway/mcp/option.go function WithMCP (line 18) | func WithMCP(address string) service.Option { FILE: gateway/mcp/otel.go constant instrumentationName (line 14) | instrumentationName = "go-micro.dev/v5/gateway/mcp" constant spanNameToolCall (line 18) | spanNameToolCall = "mcp.tool.call" constant AttrToolName (line 21) | AttrToolName = "mcp.tool.name" constant AttrTransport (line 23) | AttrTransport = "mcp.transport" constant AttrAccountID (line 25) | AttrAccountID = "mcp.account.id" constant AttrTraceID (line 27) | AttrTraceID = "mcp.trace_id" constant AttrAuthAllowed (line 29) | AttrAuthAllowed = "mcp.auth.allowed" constant AttrAuthDeniedReason (line 31) | AttrAuthDeniedReason = "mcp.auth.denied_reason" constant AttrScopesRequired (line 33) | AttrScopesRequired = "mcp.auth.scopes_required" constant AttrRateLimited (line 35) | AttrRateLimited = "mcp.rate_limited" method tracer (line 40) | func (s *Server) tracer() trace.Tracer { method startToolSpan (line 50) | func (s *Server) startToolSpan(ctx context.Context, toolName, transport,... function setSpanOK (line 87) | func setSpanOK(span trace.Span) { function setSpanError (line 92) | func setSpanError(span trace.Span, err error) { type metadataCarrier (line 98) | type metadataCarrier method Get (line 100) | func (c metadataCarrier) Get(key string) string { method Set (line 105) | func (c metadataCarrier) Set(key, value string) { method Keys (line 109) | func (c metadataCarrier) Keys() []string { FILE: gateway/mcp/otel_test.go function newTestTP (line 20) | func newTestTP() (*tracetest.InMemoryExporter, trace.TracerProvider) { function TestOTel_SpanCreated (line 26) | func TestOTel_SpanCreated(t *testing.T) { function TestOTel_SpanAttributes_AuthDenied (line 63) | func TestOTel_SpanAttributes_AuthDenied(t *testing.T) { function TestOTel_SpanAttributes_AuthAllowed (line 108) | func TestOTel_SpanAttributes_AuthAllowed(t *testing.T) { function TestOTel_SpanAttributes_RateLimit (line 150) | func TestOTel_SpanAttributes_RateLimit(t *testing.T) { function TestOTel_NoProvider_NoSpan (line 200) | func TestOTel_NoProvider_NoSpan(t *testing.T) { function TestOTel_TraceContextPropagation (line 224) | func TestOTel_TraceContextPropagation(t *testing.T) { function TestOTel_MissingToken (line 257) | func TestOTel_MissingToken(t *testing.T) { function TestOTel_StartToolSpan_NilProvider (line 294) | func TestOTel_StartToolSpan_NilProvider(t *testing.T) { function assertAttr (line 310) | func assertAttr(t *testing.T, attrs []attribute.KeyValue, key, want stri... function assertAttrBool (line 323) | func assertAttrBool(t *testing.T, attrs []attribute.KeyValue, key string... FILE: gateway/mcp/parser.go type ToolDescription (line 18) | type ToolDescription struct type ParamDoc (line 27) | type ParamDoc struct type ReturnDoc (line 35) | type ReturnDoc struct function parseServiceDocs (line 49) | func parseServiceDocs(serviceName string, endpoint *registry.Endpoint) *... function parseEndpointParams (line 69) | func parseEndpointParams(value *registry.Value) []ParamDoc { function parseEndpointReturns (line 88) | func parseEndpointReturns(value *registry.Value) []ReturnDoc { function formatFieldDescription (line 100) | func formatFieldDescription(name, typeName string) string { function toReadable (line 107) | func toReadable(s string) string { function ParseGoDocComment (line 120) | func ParseGoDocComment(comment string) *ToolDescription { function enhanceToolDescription (line 178) | func enhanceToolDescription(tool *Tool, serviceName string, endpoint *re... function ParseStructTags (line 223) | func ParseStructTags(t reflect.Type) map[string]interface{} { function reflectTypeToJSONType (line 275) | func reflectTypeToJSONType(t reflect.Type) string { function findServiceSource (line 297) | func findServiceSource(serviceName string) ([]string, error) { function parseGoFile (line 307) | func parseGoFile(filename string, serviceName string) (map[string]*ToolD... FILE: gateway/mcp/ratelimit.go type rateLimiter (line 9) | type rateLimiter struct method Allow (line 32) | func (r *rateLimiter) Allow() bool { function newRateLimiter (line 19) | func newRateLimiter(rate float64, burst int) *rateLimiter { FILE: gateway/mcp/stdio.go type StdioTransport (line 24) | type StdioTransport struct method Serve (line 78) | func (t *StdioTransport) Serve() error { method handleRequest (line 117) | func (t *StdioTransport) handleRequest(req *JSONRPCRequest) { method handleInitialize (line 131) | func (t *StdioTransport) handleInitialize(req *JSONRPCRequest) { method handleToolsList (line 147) | func (t *StdioTransport) handleToolsList(req *JSONRPCRequest) { method handleToolsCall (line 167) | func (t *StdioTransport) handleToolsCall(req *JSONRPCRequest) { method sendResponse (line 337) | func (t *StdioTransport) sendResponse(id interface{}, result interface... method sendError (line 348) | func (t *StdioTransport) sendError(id interface{}, code int, message s... method writeJSON (line 363) | func (t *StdioTransport) writeJSON(v interface{}) { method Stop (line 389) | func (t *StdioTransport) Stop() error { type JSONRPCRequest (line 34) | type JSONRPCRequest struct type JSONRPCResponse (line 42) | type JSONRPCResponse struct type RPCError (line 50) | type RPCError struct constant ParseError (line 58) | ParseError = -32700 constant InvalidRequest (line 59) | InvalidRequest = -32600 constant MethodNotFound (line 60) | MethodNotFound = -32601 constant InvalidParams (line 61) | InvalidParams = -32602 constant InternalError (line 62) | InternalError = -32603 function NewStdioTransport (line 66) | func NewStdioTransport(server *Server) *StdioTransport { FILE: gateway/mcp/websocket.go type WebSocketTransport (line 25) | type WebSocketTransport struct method ServeHTTP (line 43) | func (t *WebSocketTransport) ServeHTTP(w http.ResponseWriter, r *http.... type wsConn (line 30) | type wsConn struct method readLoop (line 78) | func (wc *wsConn) readLoop() { method handleRequest (line 106) | func (wc *wsConn) handleRequest(req *JSONRPCRequest) { method handleInitialize (line 120) | func (wc *wsConn) handleInitialize(req *JSONRPCRequest) { method handleToolsList (line 135) | func (wc *wsConn) handleToolsList(req *JSONRPCRequest) { method handleToolsCall (line 153) | func (wc *wsConn) handleToolsCall(req *JSONRPCRequest) { method sendResponse (line 318) | func (wc *wsConn) sendResponse(id interface{}, result interface{}) { method sendError (line 327) | func (wc *wsConn) sendError(id interface{}, code int, message string, ... method writeJSON (line 340) | func (wc *wsConn) writeJSON(v interface{}) { function NewWebSocketTransport (line 38) | func NewWebSocketTransport(server *Server) *WebSocketTransport { FILE: gateway/mcp/websocket_test.go function wsDialer (line 18) | func wsDialer(t *testing.T, url string, headers http.Header) *websocket.... function sendJSONRPC (line 30) | func sendJSONRPC(t *testing.T, conn *websocket.Conn, method string, id i... function newWSTestServer (line 50) | func newWSTestServer(t *testing.T, opts Options) (*Server, *httptest.Ser... function TestWebSocket_Initialize (line 62) | func TestWebSocket_Initialize(t *testing.T) { function TestWebSocket_ToolsList (line 80) | func TestWebSocket_ToolsList(t *testing.T) { function TestWebSocket_ToolsCall_NoAuth (line 103) | func TestWebSocket_ToolsCall_NoAuth(t *testing.T) { function TestWebSocket_ToolsCall_AuthRequired (line 126) | func TestWebSocket_ToolsCall_AuthRequired(t *testing.T) { function TestWebSocket_ToolsCall_InsufficientScopes (line 198) | func TestWebSocket_ToolsCall_InsufficientScopes(t *testing.T) { function TestWebSocket_ToolsCall_Audit (line 224) | func TestWebSocket_ToolsCall_Audit(t *testing.T) { function TestWebSocket_RateLimit (line 262) | func TestWebSocket_RateLimit(t *testing.T) { function TestWebSocket_MethodNotFound (line 293) | func TestWebSocket_MethodNotFound(t *testing.T) { function TestWebSocket_ToolNotFound (line 303) | func TestWebSocket_ToolNotFound(t *testing.T) { function TestWebSocket_MultipleConcurrentRequests (line 316) | func TestWebSocket_MultipleConcurrentRequests(t *testing.T) { function TestWebSocket_MultipleConnections (line 360) | func TestWebSocket_MultipleConnections(t *testing.T) { function TestWebSocket_InvalidJSON (line 386) | func TestWebSocket_InvalidJSON(t *testing.T) { function TestWebSocket_InvalidJSONRPCVersion (line 408) | func TestWebSocket_InvalidJSONRPCVersion(t *testing.T) { function TestWebSocket_ConnectionPersistence (line 426) | func TestWebSocket_ConnectionPersistence(t *testing.T) { FILE: health/health.go type Status (line 35) | type Status constant StatusUp (line 38) | StatusUp Status = "up" constant StatusDown (line 39) | StatusDown Status = "down" type CheckFunc (line 44) | type CheckFunc type Check (line 47) | type Check struct type Result (line 55) | type Result struct type Response (line 63) | type Response struct function Register (line 77) | func Register(name string, check CheckFunc) { function RegisterCheck (line 87) | func RegisterCheck(check Check) { function SetInfo (line 97) | func SetInfo(key, value string) { function Reset (line 104) | func Reset() { function Run (line 112) | func Run(ctx context.Context) Response { function runCheck (line 164) | func runCheck(ctx context.Context, check Check) Result { function IsReady (line 187) | func IsReady(ctx context.Context) bool { function IsLive (line 194) | func IsLive() bool { function Handler (line 200) | func Handler() http.Handler { function LiveHandler (line 209) | func LiveHandler() http.Handler { function ReadyHandler (line 223) | func ReadyHandler() http.Handler { function writeResponse (line 230) | func writeResponse(w http.ResponseWriter, resp Response) { function RegisterHandlers (line 241) | func RegisterHandlers(mux *http.ServeMux) { function PingCheck (line 250) | func PingCheck(ping func() error) CheckFunc { function PingContextCheck (line 257) | func PingContextCheck(ping func(context.Context) error) CheckFunc { function TCPCheck (line 262) | func TCPCheck(addr string, timeout time.Duration) CheckFunc { function HTTPCheck (line 274) | func HTTPCheck(url string, timeout time.Duration) CheckFunc { function DNSCheck (line 294) | func DNSCheck(host string) CheckFunc { function CustomCheck (line 305) | func CustomCheck(fn func() error) CheckFunc { FILE: health/health_test.go function TestRegisterAndRun (line 14) | func TestRegisterAndRun(t *testing.T) { function TestFailingCheck (line 35) | func TestFailingCheck(t *testing.T) { function TestNonCriticalCheck (line 52) | func TestNonCriticalCheck(t *testing.T) { function TestCheckTimeout (line 76) | func TestCheckTimeout(t *testing.T) { function TestHealthHandler (line 103) | func TestHealthHandler(t *testing.T) { function TestHealthHandlerUnhealthy (line 128) | func TestHealthHandlerUnhealthy(t *testing.T) { function TestLiveHandler (line 145) | func TestLiveHandler(t *testing.T) { function TestReadyHandler (line 158) | func TestReadyHandler(t *testing.T) { function TestSetInfo (line 175) | func TestSetInfo(t *testing.T) { function TestPingCheck (line 195) | func TestPingCheck(t *testing.T) { function TestTCPCheck (line 211) | func TestTCPCheck(t *testing.T) { function TestTCPCheckFailing (line 230) | func TestTCPCheckFailing(t *testing.T) { function TestHTTPCheck (line 243) | func TestHTTPCheck(t *testing.T) { function TestHTTPCheckFailing (line 260) | func TestHTTPCheckFailing(t *testing.T) { function TestDNSCheck (line 277) | func TestDNSCheck(t *testing.T) { function TestMultipleChecks (line 289) | func TestMultipleChecks(t *testing.T) { function TestRegisterHandlers (line 306) | func TestRegisterHandlers(t *testing.T) { function TestIsReady (line 337) | func TestIsReady(t *testing.T) { function TestConcurrentChecks (line 355) | func TestConcurrentChecks(t *testing.T) { FILE: internal/test/service.go type parTest (line 31) | type parTest type testFunc (line 32) | type testFunc type ServiceTestConfig (line 47) | type ServiceTestConfig struct method Run (line 68) | func (stc *ServiceTestConfig) Run(b *testing.B) { method prepBench (line 85) | func (stc *ServiceTestConfig) prepBench(b *testing.B, tName string, te... method runParSeqTest (line 119) | func (stc *ServiceTestConfig) runParSeqTest(name string, c client.Clie... method Handle (line 132) | func (stc *ServiceTestConfig) Handle(ctx context.Context, msg *pb.Heal... method HandleError (line 141) | func (stc *ServiceTestConfig) HandleError(ctx context.Context, msg *pb... method runBrokerTest (line 146) | func (stc *ServiceTestConfig) runBrokerTest(name string, c client.Clie... method runParStreamTest (line 172) | func (stc *ServiceTestConfig) runParStreamTest(name string, c client.C... method validate (line 207) | func (stc *ServiceTestConfig) validate() error { method runBench (line 219) | func (stc *ServiceTestConfig) runBench(b *testing.B, name string, test... function RunBenchmark (line 277) | func RunBenchmark(b *testing.B, name string, service micro.Service, test... function testParallel (line 356) | func testParallel(p int, test func()) { function testRequest (line 378) | func testRequest(ctx context.Context, c client.Client, name string) error { FILE: internal/test/testing.go type Harness (line 43) | type Harness struct method Name (line 73) | func (h *Harness) Name(name string) *Harness { method Register (line 79) | func (h *Harness) Register(handler interface{}) *Harness { method Start (line 92) | func (h *Harness) Start() { method waitForService (line 142) | func (h *Harness) waitForService() { method Stop (line 155) | func (h *Harness) Stop() { method Call (line 170) | func (h *Harness) Call(endpoint string, req, rsp interface{}) error { method CallContext (line 175) | func (h *Harness) CallContext(ctx context.Context, endpoint string, re... method Client (line 185) | func (h *Harness) Client() client.Client { method Server (line 190) | func (h *Harness) Server() server.Server { method Registry (line 195) | func (h *Harness) Registry() registry.Registry { method AssertServiceRunning (line 202) | func (h *Harness) AssertServiceRunning() { method AssertCallSucceeds (line 216) | func (h *Harness) AssertCallSucceeds(endpoint string, req, rsp interfa... method AssertCallFails (line 225) | func (h *Harness) AssertCallFails(endpoint string, req, rsp interface{... function NewHarness (line 57) | func NewHarness(t *testing.T) *Harness { FILE: internal/test/testing_test.go type GreeterHandler (line 9) | type GreeterHandler struct method Hello (line 19) | func (g *GreeterHandler) Hello(ctx context.Context, req *HelloRequest,... type HelloRequest (line 11) | type HelloRequest struct type HelloResponse (line 15) | type HelloResponse struct function TestHarnessBasic (line 24) | func TestHarnessBasic(t *testing.T) { function TestHarnessCallBeforeStart (line 46) | func TestHarnessCallBeforeStart(t *testing.T) { function TestHarnessAssertCallSucceeds (line 60) | func TestHarnessAssertCallSucceeds(t *testing.T) { function TestHarnessClientAndServer (line 75) | func TestHarnessClientAndServer(t *testing.T) { function TestHarnessWithContext (line 94) | func TestHarnessWithContext(t *testing.T) { FILE: internal/util/addr/addr.go function IsLocal (line 16) | func IsLocal(addr string) bool { function Extract (line 40) | func Extract(addr string) (string, error) { function IPs (line 84) | func IPs() []string { function findIP (line 121) | func findIP(addresses []net.Addr) (net.IP, error) { FILE: internal/util/addr/addr_test.go function TestIsLocal (line 9) | func TestIsLocal(t *testing.T) { function TestExtractor (line 29) | func TestExtractor(t *testing.T) { function TestFindIP (line 59) | func TestFindIP(t *testing.T) { FILE: internal/util/backoff/backoff.go function Do (line 11) | func Do(attempts int) time.Duration { FILE: internal/util/buf/buf.go type buffer (line 7) | type buffer struct method Close (line 11) | func (b *buffer) Close() error { function New (line 16) | func New(b *bytes.Buffer) *buffer { FILE: internal/util/grpc/grpc.go function ServiceMethod (line 13) | func ServiceMethod(m string) (string, string, error) { function ServiceFromMethod (line 44) | func ServiceFromMethod(m string) string { FILE: internal/util/grpc/grpc_test.go function TestServiceMethod (line 7) | func TestServiceMethod(t *testing.T) { FILE: internal/util/http/http.go function Write (line 17) | func Write(w http.ResponseWriter, contentType string, status int, body s... function WriteBadRequestError (line 25) | func WriteBadRequestError(w http.ResponseWriter, err error) { function WriteInternalServerError (line 37) | func WriteInternalServerError(w http.ResponseWriter, err error) { function NewRoundTripper (line 48) | func NewRoundTripper(opts ...Option) http.RoundTripper { function RequestToContext (line 65) | func RequestToContext(r *http.Request) context.Context { FILE: internal/util/http/http_test.go function TestRoundTripper (line 12) | func TestRoundTripper(t *testing.T) { FILE: internal/util/http/options.go type Options (line 7) | type Options struct type Option (line 11) | type Option function WithRegistry (line 13) | func WithRegistry(r registry.Registry) Option { FILE: internal/util/http/roundtripper.go type roundTripper (line 10) | type roundTripper struct method RoundTrip (line 16) | func (r *roundTripper) RoundTrip(req *http.Request) (*http.Response, e... FILE: internal/util/jitter/jitter.go function Do (line 14) | func Do(d time.Duration) time.Duration { FILE: internal/util/mdns/client.go type ServiceEntry (line 18) | type ServiceEntry struct method complete (line 37) | func (s *ServiceEntry) complete() bool { type QueryParam (line 42) | type QueryParam struct function DefaultParams (line 54) | func DefaultParams(service string) *QueryParam { function Query (line 68) | func Query(params *QueryParam) error { function Listen (line 103) | func Listen(entries chan<- *ServiceEntry, exit chan struct{}) error { function Lookup (line 159) | func Lookup(service string, entries chan<- *ServiceEntry) error { type client (line 167) | type client struct method Close (line 257) | func (c *client) Close() error { method setInterface (line 286) | func (c *client) setInterface(iface *net.Interface, loopback bool) err... method query (line 313) | func (c *client) query(params *QueryParam) error { method sendQuery (line 389) | func (c *client) sendQuery(q *dns.Msg) error { method recv (line 404) | func (c *client) recv(l *net.UDPConn, msgCh chan *dns.Msg) { function newClient (line 182) | func newClient() (*client, error) { function ensureName (line 433) | func ensureName(inprogress map[string]*ServiceEntry, name string, typ ui... function alias (line 446) | func alias(inprogress map[string]*ServiceEntry, src, dst string, typ uin... function messageToEntry (line 451) | func messageToEntry(m *dns.Msg, inprogress map[string]*ServiceEntry) *Se... FILE: internal/util/mdns/dns_sd.go type DNSSDService (line 26) | type DNSSDService struct method Records (line 37) | func (s *DNSSDService) Records(q dns.Question) []dns.RR { method dnssdMetaQueryRecords (line 50) | func (s *DNSSDService) dnssdMetaQueryRecords(q dns.Question) []dns.RR { FILE: internal/util/mdns/dns_sd_test.go type mockMDNSService (line 10) | type mockMDNSService struct method Records (line 12) | func (s *mockMDNSService) Records(q dns.Question) []dns.RR { method Announcement (line 26) | func (s *mockMDNSService) Announcement() []dns.RR { function TestDNSSDServiceRecords (line 40) | func TestDNSSDServiceRecords(t *testing.T) { FILE: internal/util/mdns/server.go type GetMachineIP (line 44) | type GetMachineIP type Config (line 47) | type Config struct type Server (line 69) | type Server struct method Shutdown (line 159) | func (s *Server) Shutdown() error { method recv (line 183) | func (s *Server) recv(c *net.UDPConn) { method parsePacket (line 206) | func (s *Server) parsePacket(packet []byte, from net.Addr) error { method handleQuery (line 220) | func (s *Server) handleQuery(query *dns.Msg, from net.Addr) error { method handleQuestion (line 324) | func (s *Server) handleQuestion(q dns.Question) (multicastRecs, unicas... method probe (line 347) | func (s *Server) probe() { method SendMulticast (line 428) | func (s *Server) SendMulticast(msg *dns.Msg) error { method sendResponse (line 443) | func (s *Server) sendResponse(resp *dns.Msg, from net.Addr) error { method unregister (line 471) | func (s *Server) unregister() error { function NewServer (line 86) | func NewServer(config *Config) (*Server, error) { function setCustomPort (line 490) | func setCustomPort(port int) { function getOutboundIP (line 507) | func getOutboundIP() net.IP { FILE: internal/util/mdns/server_test.go function TestServer_StartStop (line 8) | func TestServer_StartStop(t *testing.T) { function TestServer_Lookup (line 17) | func TestServer_Lookup(t *testing.T) { FILE: internal/util/mdns/zone.go constant defaultTTL (line 15) | defaultTTL = 120 type Zone (line 20) | type Zone interface type MDNSService (line 26) | type MDNSService struct method Records (line 139) | func (m *MDNSService) Records(q dns.Question) []dns.RR { method serviceEnum (line 157) | func (m *MDNSService) serviceEnum(q dns.Question) []dns.RR { method serviceRecords (line 178) | func (m *MDNSService) serviceRecords(q dns.Question) []dns.RR { method instanceRecords (line 209) | func (m *MDNSService) instanceRecords(q dns.Question) []dns.RR { function validateFQDN (line 42) | func validateFQDN(s string) error { function NewMDNSService (line 64) | func NewMDNSService(instance, service, domain, hostName string, port int... function trimDot (line 134) | func trimDot(s string) string { FILE: internal/util/mdns/zone_test.go function makeService (line 12) | func makeService(t *testing.T) *MDNSService { function makeServiceWithServiceName (line 16) | func makeServiceWithServiceName(t *testing.T, service string) *MDNSServi... function TestNewMDNSService_BadParams (line 33) | func TestNewMDNSService_BadParams(t *testing.T) { function TestMDNSService_BadAddr (line 64) | func TestMDNSService_BadAddr(t *testing.T) { function TestMDNSService_ServiceAddr (line 76) | func TestMDNSService_ServiceAddr(t *testing.T) { function TestMDNSService_InstanceAddr_ANY (line 112) | func TestMDNSService_InstanceAddr_ANY(t *testing.T) { function TestMDNSService_InstanceAddr_SRV (line 136) | func TestMDNSService_InstanceAddr_SRV(t *testing.T) { function TestMDNSService_InstanceAddr_A (line 162) | func TestMDNSService_InstanceAddr_A(t *testing.T) { function TestMDNSService_InstanceAddr_AAAA (line 181) | func TestMDNSService_InstanceAddr_AAAA(t *testing.T) { function TestMDNSService_InstanceAddr_TXT (line 204) | func TestMDNSService_InstanceAddr_TXT(t *testing.T) { function TestMDNSService_HostNameQuery (line 223) | func TestMDNSService_HostNameQuery(t *testing.T) { function TestMDNSService_serviceEnum_PTR (line 260) | func TestMDNSService_serviceEnum_PTR(t *testing.T) { FILE: internal/util/net/net.go function HostPort (line 13) | func HostPort(addr string, port interface{}) string { function Listen (line 30) | func Listen(addr string, fn func(string) (net.Listener, error)) (net.Lis... function Proxy (line 82) | func Proxy(service string, address []string) (string, []string, bool) { FILE: internal/util/net/net_test.go function TestListen (line 9) | func TestListen(t *testing.T) { function TestProxyEnv (line 29) | func TestProxyEnv(t *testing.T) { FILE: internal/util/pool/default.go type pool (line 13) | type pool struct method Close (line 41) | func (p *pool) Close() error { method Get (line 73) | func (p *pool) Get(addr string, opts ...transport.DialOption) (Conn, e... method newConn (line 109) | func (p *pool) newConn(addr string, opts []transport.DialOption) (Conn... method Release (line 124) | func (p *pool) Release(conn Conn, err error) error { type poolConn (line 23) | type poolConn struct method Close (line 61) | func (p *poolConn) Close() error { method Id (line 65) | func (p *poolConn) Id() string { method Created (line 69) | func (p *poolConn) Created() time.Time { method close (line 144) | func (p *poolConn) close() error { function newPool (line 31) | func newPool(options Options) *pool { FILE: internal/util/pool/default_test.go function testPool (line 10) | func testPool(t *testing.T, size int, ttl time.Duration) { function TestClientPool (line 85) | func TestClientPool(t *testing.T) { FILE: internal/util/pool/options.go type Options (line 9) | type Options struct type Option (line 16) | type Option function Size (line 18) | func Size(i int) Option { function Transport (line 24) | func Transport(t transport.Transport) Option { function TTL (line 30) | func TTL(t time.Duration) Option { function CloseTimeout (line 36) | func CloseTimeout(t time.Duration) Option { FILE: internal/util/pool/pool.go type Pool (line 11) | type Pool interface type Conn (line 21) | type Conn interface function NewPool (line 31) | func NewPool(opts ...Option) Pool { FILE: internal/util/registry/util.go function addNodes (line 7) | func addNodes(old, neu []*registry.Node) []*registry.Node { function delNodes (line 38) | func delNodes(old, del []*registry.Node) []*registry.Node { function CopyService (line 56) | func CopyService(service *registry.Service) *registry.Service { function Copy (line 82) | func Copy(current []*registry.Service) []*registry.Service { function Merge (line 91) | func Merge(olist []*registry.Service, nlist []*registry.Service) []*regi... function Remove (line 123) | func Remove(old, del []*registry.Service) []*registry.Service { FILE: internal/util/registry/util_test.go function TestRemove (line 10) | func TestRemove(t *testing.T) { function TestRemoveNodes (line 43) | func TestRemoveNodes(t *testing.T) { FILE: internal/util/ring/buffer.go type Buffer (line 12) | type Buffer struct method Put (line 37) | func (b *Buffer) Put(v interface{}) { method Get (line 65) | func (b *Buffer) Get(n int) []*Entry { method Since (line 82) | func (b *Buffer) Since(t time.Time) []*Entry { method Stream (line 111) | func (b *Buffer) Stream() (<-chan *Entry, chan bool) { method Size (line 129) | func (b *Buffer) Size() int { type Entry (line 21) | type Entry struct type Stream (line 27) | type Stream struct function New (line 134) | func New(i int) *Buffer { FILE: internal/util/ring/buffer_test.go function TestBuffer (line 8) | func TestBuffer(t *testing.T) { FILE: internal/util/signal/signal.go function Shutdown (line 9) | func Shutdown() []os.Signal { FILE: internal/util/socket/pool.go type Pool (line 7) | type Pool struct method Get (line 12) | func (p *Pool) Get(id string) (*Socket, bool) { method Release (line 38) | func (p *Pool) Release(s *Socket) { method Close (line 48) | func (p *Pool) Close() { function NewPool (line 58) | func NewPool() *Pool { FILE: internal/util/socket/socket.go type Socket (line 11) | type Socket struct method SetLocal (line 25) | func (s *Socket) SetLocal(l string) { method SetRemote (line 29) | func (s *Socket) SetRemote(r string) { method Accept (line 34) | func (s *Socket) Accept(m *transport.Message) error { method Process (line 44) | func (s *Socket) Process(m *transport.Message) error { method Remote (line 61) | func (s *Socket) Remote() string { method Local (line 65) | func (s *Socket) Local() string { method Send (line 69) | func (s *Socket) Send(m *transport.Message) error { method Recv (line 80) | func (s *Socket) Recv(m *transport.Message) error { method Close (line 95) | func (s *Socket) Close() error { function New (line 108) | func New(id string) *Socket { FILE: internal/util/test/test.go function EmptyChannel (line 51) | func EmptyChannel(c chan error) error { FILE: internal/util/tls/tls.go function Config (line 43) | func Config() *tls.Config { function SecureConfig (line 71) | func SecureConfig() *tls.Config { function InsecureConfig (line 80) | func InsecureConfig() *tls.Config { function Certificate (line 90) | func Certificate(host ...string) (tls.Certificate, error) { FILE: internal/util/tls/tls_test.go function TestConfig (line 8) | func TestConfig(t *testing.T) { function TestSecureConfig (line 73) | func TestSecureConfig(t *testing.T) { function TestInsecureConfig (line 89) | func TestInsecureConfig(t *testing.T) { FILE: internal/util/wrapper/wrapper.go type fromServiceWrapper (line 16) | type fromServiceWrapper struct method setHeaders (line 23) | func (f *fromServiceWrapper) setHeaders(ctx context.Context) context.C... method Call (line 28) | func (f *fromServiceWrapper) Call(ctx context.Context, req client.Requ... method Stream (line 33) | func (f *fromServiceWrapper) Stream(ctx context.Context, req client.Re... method Publish (line 38) | func (f *fromServiceWrapper) Publish(ctx context.Context, p client.Mes... function FromService (line 44) | func FromService(name string, c client.Client) client.Client { function HandlerStats (line 54) | func HandlerStats(stats stats.Stats) server.HandlerWrapper { type traceWrapper (line 69) | type traceWrapper struct method Call (line 77) | func (c *traceWrapper) Call(ctx context.Context, req client.Request, r... function TraceCall (line 93) | func TraceCall(name string, t trace.Tracer, c client.Client) client.Clie... function TraceHandler (line 102) | func TraceHandler(t trace.Tracer) server.HandlerWrapper { function AuthCall (line 129) | func AuthCall(a func() auth.Auth, c client.Client) client.Client { type authWrapper (line 133) | type authWrapper struct method Call (line 138) | func (a *authWrapper) Call(ctx context.Context, req client.Request, rs... FILE: internal/util/wrapper/wrapper_test.go function TestWrapper (line 14) | func TestWrapper(t *testing.T) { type testAuth (line 58) | type testAuth struct method Verify (line 68) | func (a *testAuth) Verify(acc *auth.Account, res *auth.Resource, opts ... method Inspect (line 73) | func (a *testAuth) Inspect(token string) (*auth.Account, error) { method Options (line 78) | func (a *testAuth) Options() auth.Options { type testRequest (line 82) | type testRequest struct method Service (line 89) | func (r testRequest) Service() string { method Endpoint (line 93) | func (r testRequest) Endpoint() string { type testClient (line 97) | type testClient struct method Call (line 103) | func (c *testClient) Call(ctx context.Context, req client.Request, rsp... type testRsp (line 114) | type testRsp struct FILE: logger/context.go type loggerKey (line 5) | type loggerKey struct function FromContext (line 7) | func FromContext(ctx context.Context) (Logger, bool) { function NewContext (line 12) | func NewContext(ctx context.Context, l Logger) context.Context { FILE: logger/debug_handler.go type debugLogHandler (line 14) | type debugLogHandler struct method Enabled (line 28) | func (h *debugLogHandler) Enabled(_ context.Context, level slog.Level)... method Handle (line 32) | func (h *debugLogHandler) Handle(_ context.Context, r slog.Record) err... method WithAttrs (line 68) | func (h *debugLogHandler) WithAttrs(attrs []slog.Attr) slog.Handler { method WithGroup (line 80) | func (h *debugLogHandler) WithGroup(name string) slog.Handler { function newDebugLogHandler (line 21) | func newDebugLogHandler(level slog.Leveler) *debugLogHandler { type multiHandler (line 91) | type multiHandler struct method Enabled (line 101) | func (h *multiHandler) Enabled(ctx context.Context, level slog.Level) ... method Handle (line 111) | func (h *multiHandler) Handle(ctx context.Context, r slog.Record) error { method WithAttrs (line 121) | func (h *multiHandler) WithAttrs(attrs []slog.Attr) slog.Handler { method WithGroup (line 129) | func (h *multiHandler) WithGroup(name string) slog.Handler { function newMultiHandler (line 95) | func newMultiHandler(handlers ...slog.Handler) *multiHandler { function extractSourceFilePath (line 138) | func extractSourceFilePath(pc uintptr) string { FILE: logger/debug_test.go function TestDebugLogBuffer (line 9) | func TestDebugLogBuffer(t *testing.T) { function TestDebugLogWithFields (line 54) | func TestDebugLogWithFields(t *testing.T) { FILE: logger/default.go function init (line 13) | func init() { type defaultLogger (line 22) | type defaultLogger struct method Init (line 29) | func (l *defaultLogger) Init(opts ...Option) error { method String (line 68) | func (l *defaultLogger) String() string { method Fields (line 72) | func (l *defaultLogger) Fields(fields map[string]interface{}) Logger { method Log (line 102) | func (l *defaultLogger) Log(level Level, v ...interface{}) { method Logf (line 126) | func (l *defaultLogger) Logf(level Level, format string, v ...interfac... method Options (line 150) | func (l *defaultLogger) Options() Options { function copyFields (line 93) | func copyFields(src map[string]interface{}) map[string]interface{} { function NewLogger (line 162) | func NewLogger(opts ...Option) Logger { FILE: logger/helper.go type Helper (line 8) | type Helper struct method Inject (line 27) | func (h *Helper) Inject(ctx context.Context) context.Context { method Log (line 31) | func (h *Helper) Log(level Level, args ...interface{}) { method Logf (line 35) | func (h *Helper) Logf(level Level, template string, args ...interface{... method Info (line 39) | func (h *Helper) Info(args ...interface{}) { method Infof (line 46) | func (h *Helper) Infof(template string, args ...interface{}) { method Trace (line 53) | func (h *Helper) Trace(args ...interface{}) { method Tracef (line 60) | func (h *Helper) Tracef(template string, args ...interface{}) { method Debug (line 67) | func (h *Helper) Debug(args ...interface{}) { method Debugf (line 74) | func (h *Helper) Debugf(template string, args ...interface{}) { method Warn (line 81) | func (h *Helper) Warn(args ...interface{}) { method Warnf (line 88) | func (h *Helper) Warnf(template string, args ...interface{}) { method Error (line 95) | func (h *Helper) Error(args ...interface{}) { method Errorf (line 102) | func (h *Helper) Errorf(template string, args ...interface{}) { method Fatal (line 109) | func (h *Helper) Fatal(args ...interface{}) { method Fatalf (line 117) | func (h *Helper) Fatalf(template string, args ...interface{}) { method WithError (line 125) | func (h *Helper) WithError(err error) *Helper { method WithFields (line 129) | func (h *Helper) WithFields(fields map[string]interface{}) *Helper { function NewHelper (line 12) | func NewHelper(logger Logger) *Helper { function Extract (line 19) | func Extract(ctx context.Context) *Helper { function HelperOrDefault (line 133) | func HelperOrDefault(h *Helper) *Helper { FILE: logger/level.go type Level (line 9) | type Level method String (line 27) | func (l Level) String() string { method Enabled (line 46) | func (l Level) Enabled(lvl Level) bool { method ToSlog (line 51) | func (l Level) ToSlog() slog.Level { constant TraceLevel (line 13) | TraceLevel Level = iota - 2 constant DebugLevel (line 15) | DebugLevel constant InfoLevel (line 18) | InfoLevel constant WarnLevel (line 20) | WarnLevel constant ErrorLevel (line 22) | ErrorLevel constant FatalLevel (line 24) | FatalLevel function GetLevel (line 77) | func GetLevel(levelStr string) (Level, error) { function Info (line 95) | func Info(args ...interface{}) { function Infof (line 99) | func Infof(template string, args ...interface{}) { function Trace (line 103) | func Trace(args ...interface{}) { function Tracef (line 107) | func Tracef(template string, args ...interface{}) { function Debug (line 111) | func Debug(args ...interface{}) { function Debugf (line 115) | func Debugf(template string, args ...interface{}) { function Warn (line 119) | func Warn(args ...interface{}) { function Warnf (line 123) | func Warnf(template string, args ...interface{}) { function Error (line 127) | func Error(args ...interface{}) { function Errorf (line 131) | func Errorf(template string, args ...interface{}) { function Fatal (line 135) | func Fatal(args ...interface{}) { function Fatalf (line 140) | func Fatalf(template string, args ...interface{}) { function V (line 146) | func V(lvl Level, log Logger) bool { FILE: logger/logger.go type Logger (line 13) | type Logger interface function Init (line 28) | func Init(opts ...Option) error { function Fields (line 32) | func Fields(fields map[string]interface{}) Logger { function Log (line 36) | func Log(level Level, v ...interface{}) { function Logf (line 40) | func Logf(level Level, format string, v ...interface{}) { function String (line 44) | func String() string { function LoggerOrDefault (line 48) | func LoggerOrDefault(l Logger) Logger { FILE: logger/logger_test.go function TestLogger (line 8) | func TestLogger(t *testing.T) { function TestExtract (line 27) | func TestExtract(t *testing.T) { FILE: logger/options.go type Option (line 8) | type Option type Options (line 10) | type Options struct function WithFields (line 24) | func WithFields(fields map[string]interface{}) Option { function WithLevel (line 31) | func WithLevel(level Level) Option { function WithOutput (line 38) | func WithOutput(out io.Writer) Option { function WithCallerSkipCount (line 45) | func WithCallerSkipCount(c int) Option { function SetOption (line 51) | func SetOption(k, v interface{}) Option { FILE: metadata/metadata.go type metadataKey (line 9) | type metadataKey struct type Metadata (line 14) | type Metadata method Get (line 16) | func (md Metadata) Get(key string) (string, bool) { method Set (line 28) | func (md Metadata) Set(key, val string) { method Delete (line 32) | func (md Metadata) Delete(key string) { function Copy (line 40) | func Copy(md Metadata) Metadata { function Delete (line 49) | func Delete(ctx context.Context, k string) context.Context { function Set (line 54) | func Set(ctx context.Context, k, v string) context.Context { function Get (line 68) | func Get(ctx context.Context, key string) (string, bool) { function FromContext (line 86) | func FromContext(ctx context.Context) (Metadata, bool) { function NewContext (line 102) | func NewContext(ctx context.Context, md Metadata) context.Context { function MergeContext (line 107) | func MergeContext(ctx context.Context, patchMd Metadata, overwrite bool)... FILE: metadata/metadata_test.go function TestMetadataSet (line 9) | func TestMetadataSet(t *testing.T) { function TestMetadataDelete (line 21) | func TestMetadataDelete(t *testing.T) { function TestMetadataCopy (line 41) | func TestMetadataCopy(t *testing.T) { function TestMetadataContext (line 56) | func TestMetadataContext(t *testing.T) { function TestMergeContext (line 77) | func TestMergeContext(t *testing.T) { FILE: micro.go type serviceKey (line 12) | type serviceKey struct type Event (line 25) | type Event interface function New (line 37) | func New(name string, opts ...Option) Service { function NewService (line 43) | func NewService(opts ...Option) Service { function NewGroup (line 49) | func NewGroup(svcs ...Service) *Group { function FromContext (line 54) | func FromContext(ctx context.Context) (Service, bool) { function NewContext (line 60) | func NewContext(ctx context.Context, s Service) context.Context { function NewEvent (line 65) | func NewEvent(topic string, c client.Client) Event { function RegisterHandler (line 74) | func RegisterHandler(s server.Server, h interface{}, opts ...server.Hand... function RegisterSubscriber (line 79) | func RegisterSubscriber(topic string, s server.Server, h interface{}, op... FILE: model/memory.go type memoryModel (line 11) | type memoryModel struct method Init (line 26) | func (m *memoryModel) Init(opts ...Option) error { method Register (line 30) | func (m *memoryModel) Register(v interface{}, opts ...RegisterOption) ... method schema (line 45) | func (m *memoryModel) schema(v interface{}) (*Schema, error) { method Create (line 56) | func (m *memoryModel) Create(ctx context.Context, v interface{}) error { method Read (line 82) | func (m *memoryModel) Read(ctx context.Context, key string, v interfac... method Update (line 100) | func (m *memoryModel) Update(ctx context.Context, v interface{}) error { method Delete (line 126) | func (m *memoryModel) Delete(ctx context.Context, key string, v interf... method List (line 143) | func (m *memoryModel) List(ctx context.Context, result interface{}, op... method Count (line 206) | func (m *memoryModel) Count(ctx context.Context, v interface{}, opts .... method Close (line 226) | func (m *memoryModel) Close() error { method String (line 230) | func (m *memoryModel) String() string { function newMemoryModel (line 18) | func newMemoryModel(opts ...Option) Model { function matchFilters (line 235) | func matchFilters(row map[string]any, filters []Filter) bool { function compareValues (line 249) | func compareValues(a any, op string, b any) bool { function compareNumeric (line 275) | func compareNumeric(a any, op string, b any) bool { function toFloat64 (line 305) | func toFloat64(v any) (float64, bool) { function sortRows (line 319) | func sortRows(rows []map[string]any, field string, desc bool) { FILE: model/memory/memory.go function New (line 10) | func New(opts ...model.Option) model.Model { FILE: model/memory/memory_test.go type User (line 10) | type User struct function setup (line 17) | func setup(t *testing.T) model.Model { function TestCRUD (line 26) | func TestCRUD(t *testing.T) { function TestDuplicateKey (line 78) | func TestDuplicateKey(t *testing.T) { function TestNotFound (line 89) | func TestNotFound(t *testing.T) { function TestList (line 109) | func TestList(t *testing.T) { function TestListWithFilter (line 127) | func TestListWithFilter(t *testing.T) { function TestListWithLimitOffset (line 145) | func TestListWithLimitOffset(t *testing.T) { function TestCount (line 174) | func TestCount(t *testing.T) { function TestWhereOp (line 199) | func TestWhereOp(t *testing.T) { FILE: model/model.go type Model (line 21) | type Model interface type Option (line 44) | type Option type RegisterOption (line 46) | type RegisterOption function NewModel (line 49) | func NewModel(opts ...Option) Model { function Register (line 54) | func Register(v interface{}, opts ...RegisterOption) error { function Create (line 59) | func Create(ctx context.Context, v interface{}) error { function Read (line 64) | func Read(ctx context.Context, key string, v interface{}) error { function Update (line 69) | func Update(ctx context.Context, v interface{}) error { function Delete (line 74) | func Delete(ctx context.Context, key string, v interface{}) error { function List (line 79) | func List(ctx context.Context, result interface{}, opts ...QueryOption) ... function Count (line 84) | func Count(ctx context.Context, v interface{}, opts ...QueryOption) (int... FILE: model/model_test.go type TestUser (line 7) | type TestUser struct function TestBuildSchema (line 14) | func TestBuildSchema(t *testing.T) { function TestBuildSchema_DefaultKey (line 45) | func TestBuildSchema_DefaultKey(t *testing.T) { function TestBuildSchema_WithTable (line 57) | func TestBuildSchema_WithTable(t *testing.T) { function TestStructToMap (line 65) | func TestStructToMap(t *testing.T) { function TestMapToStruct (line 85) | func TestMapToStruct(t *testing.T) { function TestApplyQueryOptions (line 111) | func TestApplyQueryOptions(t *testing.T) { FILE: model/options.go type Options (line 4) | type Options struct function WithDSN (line 10) | func WithDSN(dsn string) Option { function NewOptions (line 17) | func NewOptions(opts ...Option) Options { function WithTable (line 26) | func WithTable(name string) RegisterOption { FILE: model/postgres/postgres.go type postgresModel (line 18) | type postgresModel struct method Init (line 39) | func (d *postgresModel) Init(opts ...model.Option) error { method Register (line 43) | func (d *postgresModel) Register(v interface{}, opts ...model.Register... method schema (line 82) | func (d *postgresModel) schema(v interface{}) (*model.Schema, error) { method Create (line 93) | func (d *postgresModel) Create(ctx context.Context, v interface{}) err... method Read (line 111) | func (d *postgresModel) Read(ctx context.Context, key string, v interf... method Update (line 127) | func (d *postgresModel) Update(ctx context.Context, v interface{}) err... method Delete (line 150) | func (d *postgresModel) Delete(ctx context.Context, key string, v inte... method List (line 167) | func (d *postgresModel) List(ctx context.Context, result interface{}, ... method Count (line 240) | func (d *postgresModel) Count(ctx context.Context, v interface{}, opts... method Close (line 265) | func (d *postgresModel) Close() error { method String (line 269) | func (d *postgresModel) String() string { function New (line 27) | func New(dsn string) model.Model { function quoteIdent (line 275) | func quoteIdent(s string) string { function goTypeToPostgres (line 279) | func goTypeToPostgres(t reflect.Type) string { function buildInsert (line 300) | func buildInsert(schema *model.Schema, fields map[string]any) (string, s... function buildUpdate (line 316) | func buildUpdate(schema *model.Schema, fields map[string]any) (string, [... function buildWhere (line 333) | func buildWhere(filters []model.Filter, startParam int) (string, []any, ... function columnList (line 345) | func columnList(schema *model.Schema) string { function scanRow (line 353) | func scanRow(schema *model.Schema, row *sql.Row) (map[string]any, error) { function scanRows (line 371) | func scanRows(schema *model.Schema, rows *sql.Rows) ([]map[string]any, e... function newScanPtr (line 390) | func newScanPtr(t reflect.Type) any { function derefScanPtr (line 409) | func derefScanPtr(ptr any, t reflect.Type) any { FILE: model/query.go type QueryOptions (line 4) | type QueryOptions struct type Filter (line 13) | type Filter struct type QueryOption (line 20) | type QueryOption function ApplyQueryOptions (line 23) | func ApplyQueryOptions(opts ...QueryOption) QueryOptions { function Where (line 32) | func Where(field string, value any) QueryOption { function WhereOp (line 39) | func WhereOp(field, op string, value any) QueryOption { function OrderAsc (line 46) | func OrderAsc(field string) QueryOption { function OrderDesc (line 54) | func OrderDesc(field string) QueryOption { function Limit (line 62) | func Limit(n uint) QueryOption { function Offset (line 69) | func Offset(n uint) QueryOption { FILE: model/schema.go type Schema (line 10) | type Schema struct type Field (line 20) | type Field struct function BuildSchema (line 34) | func BuildSchema(v interface{}, opts ...RegisterOption) *Schema { function StructToMap (line 101) | func StructToMap(schema *Schema, v interface{}) map[string]any { function MapToStruct (line 117) | func MapToStruct(schema *Schema, fields map[string]any, v interface{}) { function NewFromSchema (line 141) | func NewFromSchema(schema *Schema, rtype reflect.Type) interface{} { function KeyValue (line 146) | func KeyValue(schema *Schema, v interface{}) string { function ResolveType (line 156) | func ResolveType(v interface{}) reflect.Type { FILE: model/sqlite/sqlite.go type sqliteModel (line 19) | type sqliteModel struct method Init (line 43) | func (d *sqliteModel) Init(opts ...model.Option) error { method Register (line 47) | func (d *sqliteModel) Register(v interface{}, opts ...model.RegisterOp... method schema (line 84) | func (d *sqliteModel) schema(v interface{}) (*model.Schema, error) { method Create (line 95) | func (d *sqliteModel) Create(ctx context.Context, v interface{}) error { method Read (line 113) | func (d *sqliteModel) Read(ctx context.Context, key string, v interfac... method Update (line 129) | func (d *sqliteModel) Update(ctx context.Context, v interface{}) error { method Delete (line 150) | func (d *sqliteModel) Delete(ctx context.Context, key string, v interf... method List (line 167) | func (d *sqliteModel) List(ctx context.Context, result interface{}, op... method Count (line 239) | func (d *sqliteModel) Count(ctx context.Context, v interface{}, opts .... method Close (line 263) | func (d *sqliteModel) Close() error { method String (line 267) | func (d *sqliteModel) String() string { function New (line 27) | func New(dsn string) model.Model { function goTypeToSQLite (line 273) | func goTypeToSQLite(t reflect.Type) string { function buildInsert (line 287) | func buildInsert(schema *model.Schema, fields map[string]any) (string, s... function buildUpdate (line 301) | func buildUpdate(schema *model.Schema, fields map[string]any) (string, [... function buildWhere (line 316) | func buildWhere(filters []model.Filter) (string, []any) { function columnList (line 326) | func columnList(schema *model.Schema) string { function scanRow (line 334) | func scanRow(schema *model.Schema, row *sql.Row) (map[string]any, error) { function scanRows (line 352) | func scanRows(schema *model.Schema, rows *sql.Rows) ([]map[string]any, e... function newScanPtr (line 371) | func newScanPtr(t reflect.Type) any { function derefScanPtr (line 390) | func derefScanPtr(ptr any, t reflect.Type) any { FILE: model/sqlite/sqlite_test.go type User (line 10) | type User struct function setup (line 17) | func setup(t *testing.T) model.Model { function TestCRUD (line 26) | func TestCRUD(t *testing.T) { function TestDuplicateKey (line 78) | func TestDuplicateKey(t *testing.T) { function TestNotFound (line 89) | func TestNotFound(t *testing.T) { function TestListWithFilter (line 109) | func TestListWithFilter(t *testing.T) { function TestListWithOrder (line 127) | func TestListWithOrder(t *testing.T) { function TestListWithLimitOffset (line 151) | func TestListWithLimitOffset(t *testing.T) { function TestCount (line 180) | func TestCount(t *testing.T) { function TestWhereOp (line 205) | func TestWhereOp(t *testing.T) { FILE: registry/cache/cache.go type Cache (line 18) | type Cache interface type Options (line 25) | type Options struct type Option (line 34) | type Option type cache (line 36) | type cache struct method getStatus (line 80) | func (c *cache) getStatus() error { method setStatus (line 86) | func (c *cache) setStatus(err error) { method isValid (line 93) | func (c *cache) isValid(services []*registry.Service, ttl time.Time) b... method quit (line 123) | func (c *cache) quit() bool { method del (line 132) | func (c *cache) del(service string) { method get (line 144) | func (c *cache) get(service string) ([]*registry.Service, error) { method set (line 276) | func (c *cache) set(service string, services []*registry.Service) { method updateNodeTTLs (line 281) | func (c *cache) updateNodeTTLs(name string, nodes []*registry.Node) { method update (line 296) | func (c *cache) update(res *registry.Result) { method run (line 418) | func (c *cache) run(service string) { method watch (line 494) | func (c *cache) watch(w registry.Watcher) error { method GetService (line 529) | func (c *cache) GetService(service string, opts ...registry.GetOption)... method Stop (line 545) | func (c *cache) Stop() { method String (line 557) | func (c *cache) String() string { function backoff (line 73) | func backoff(attempts int) time.Duration { function New (line 562) | func New(r registry.Registry, opts ...Option) Cache { FILE: registry/cache/cache_test.go type mockRegistry (line 15) | type mockRegistry struct method Init (line 23) | func (m *mockRegistry) Init(...registry.Option) error { method Options (line 27) | func (m *mockRegistry) Options() registry.Options { method Register (line 31) | func (m *mockRegistry) Register(*registry.Service, ...registry.Registe... method Deregister (line 35) | func (m *mockRegistry) Deregister(*registry.Service, ...registry.Dereg... method GetService (line 39) | func (m *mockRegistry) GetService(name string, opts ...registry.GetOpt... method ListServices (line 57) | func (m *mockRegistry) ListServices(...registry.ListOption) ([]*regist... method Watch (line 61) | func (m *mockRegistry) Watch(...registry.WatchOption) (registry.Watche... method String (line 65) | func (m *mockRegistry) String() string { method getCallCount (line 69) | func (m *mockRegistry) getCallCount() int32 { function TestSingleflightPreventsStampede (line 75) | func TestSingleflightPreventsStampede(t *testing.T) { function TestSingleflightWithError (line 133) | func TestSingleflightWithError(t *testing.T) { function TestStaleCacheOnError (line 178) | func TestStaleCacheOnError(t *testing.T) { function TestCachePenetrationPrevention (line 228) | func TestCachePenetrationPrevention(t *testing.T) { function TestThrottlingWithoutStaleCache (line 302) | func TestThrottlingWithoutStaleCache(t *testing.T) { function TestThrottlingMultipleConcurrentRequests (line 353) | func TestThrottlingMultipleConcurrentRequests(t *testing.T) { function TestThrottlingDoesNotAffectSuccessfulLookups (line 422) | func TestThrottlingDoesNotAffectSuccessfulLookups(t *testing.T) { function TestThrottlingClearedOnSuccess (line 462) | func TestThrottlingClearedOnSuccess(t *testing.T) { FILE: registry/cache/options.go function WithTTL (line 10) | func WithTTL(t time.Duration) Option { function WithLogger (line 17) | func WithLogger(l logger.Logger) Option { function WithMinimumRetryInterval (line 25) | func WithMinimumRetryInterval(d time.Duration) Option { FILE: registry/consul/consul.go type consulRegistry (line 22) | type consulRegistry struct method Init (line 149) | func (c *consulRegistry) Init(opts ...registry.Option) error { method Deregister (line 154) | func (c *consulRegistry) Deregister(s *registry.Service, opts ...regis... method Register (line 169) | func (c *consulRegistry) Register(s *registry.Service, opts ...registr... method GetService (line 317) | func (c *consulRegistry) GetService(name string, opts ...registry.GetO... method ListServices (line 392) | func (c *consulRegistry) ListServices(opts ...registry.ListOption) ([]... method Watch (line 407) | func (c *consulRegistry) Watch(opts ...registry.WatchOption) (registry... method String (line 411) | func (c *consulRegistry) String() string { method Options (line 415) | func (c *consulRegistry) Options() registry.Options { method Client (line 419) | func (c *consulRegistry) Client() *consul.Client { function getDeregisterTTL (line 40) | func getDeregisterTTL(t time.Duration) time.Duration { function newTransport (line 53) | func newTransport(config *tls.Config) *http.Transport { function configure (line 74) | func configure(c *consulRegistry, opts ...registry.Option) { function NewConsulRegistry (line 455) | func NewConsulRegistry(opts ...registry.Option) registry.Registry { FILE: registry/consul/encoding.go function encode (line 13) | func encode(buf []byte) string { function decode (line 26) | func decode(d string) []byte { function encodeEndpoints (line 47) | func encodeEndpoints(en []*registry.Endpoint) []string { function decodeEndpoints (line 57) | func decodeEndpoints(tags []string) []*registry.Endpoint { function encodeMetadata (line 96) | func encodeMetadata(md map[string]string) []string { function decodeMetadata (line 109) | func decodeMetadata(tags []string) map[string]string { function encodeVersion (line 150) | func encodeVersion(v string) []string { function decodeVersion (line 154) | func decodeVersion(tags []string) (string, bool) { FILE: registry/consul/encoding_test.go function TestEncodingEndpoints (line 10) | func TestEncodingEndpoints(t *testing.T) { function TestEncodingVersion (line 113) | func TestEncodingVersion(t *testing.T) { FILE: registry/consul/options.go type contextKey (line 13) | type contextKey constant consulConnectKey (line 15) | consulConnectKey contextKey = "consul_connect" constant consulConfigKey (line 16) | consulConfigKey contextKey = "consul_config" constant consulAllowStaleKey (line 17) | consulAllowStaleKey contextKey = "consul_allow_stale" constant consulQueryOptionsKey (line 18) | consulQueryOptionsKey contextKey = "consul_query_options" constant consulTCPCheckKey (line 19) | consulTCPCheckKey contextKey = "consul_tcp_check" constant consulHTTPCheckConfigKey (line 20) | consulHTTPCheckConfigKey contextKey = "consul_http_check_config" function Connect (line 23) | func Connect() registry.Option { function Config (line 32) | func Config(c *consul.Config) registry.Option { function AllowStale (line 48) | func AllowStale(v bool) registry.Option { function QueryOptions (line 61) | func QueryOptions(q *consul.QueryOptions) registry.Option { function TCPCheck (line 78) | func TCPCheck(t time.Duration) registry.Option { function HTTPCheck (line 96) | func HTTPCheck(protocol, port, httpEndpoint string, interval, timeout ti... FILE: registry/consul/registry_test.go type mockRegistry (line 16) | type mockRegistry struct function encodeData (line 23) | func encodeData(obj interface{}) ([]byte, error) { function newMockServer (line 32) | func newMockServer(rg *mockRegistry, l net.Listener) error { function newConsulTestRegistry (line 45) | func newConsulTestRegistry(r *mockRegistry) (*consulRegistry, func()) { function newServiceList (line 73) | func newServiceList(svc []*consul.ServiceEntry) []byte { function TestConsul_GetService_WithError (line 78) | func TestConsul_GetService_WithError(t *testing.T) { function TestConsul_GetService_WithHealthyServiceNodes (line 90) | func TestConsul_GetService_WithHealthyServiceNodes(t *testing.T) { function TestConsul_GetService_WithUnhealthyServiceNode (line 130) | func TestConsul_GetService_WithUnhealthyServiceNode(t *testing.T) { function TestConsul_GetService_WithUnhealthyServiceNodes (line 170) | func TestConsul_GetService_WithUnhealthyServiceNodes(t *testing.T) { FILE: registry/consul/watcher.go type consulWatcher (line 13) | type consulWatcher struct method serviceHandler (line 56) | func (cw *consulWatcher) serviceHandler(idx uint64, data interface{}) { method handle (line 200) | func (cw *consulWatcher) handle(idx uint64, data interface{}) { method Next (line 266) | func (cw *consulWatcher) Next() (*registry.Result, error) { method Stop (line 278) | func (cw *consulWatcher) Stop() { function newConsulWatcher (line 26) | func newConsulWatcher(cr *consulRegistry, opts ...registry.WatchOption) ... FILE: registry/consul/watcher_test.go function TestHealthyServiceHandler (line 10) | func TestHealthyServiceHandler(t *testing.T) { function TestUnhealthyServiceHandler (line 26) | func TestUnhealthyServiceHandler(t *testing.T) { function TestUnhealthyNodeServiceHandler (line 42) | func TestUnhealthyNodeServiceHandler(t *testing.T) { function newWatcher (line 59) | func newWatcher() *consulWatcher { function newHealthCheck (line 67) | func newHealthCheck(node, name, status string) *api.HealthCheck { function newServiceEntry (line 76) | func newServiceEntry(node, address, name, version string, checks []*api.... FILE: registry/etcd/etcd.go type etcdRegistry (line 29) | type etcdRegistry struct method Init (line 151) | func (e *etcdRegistry) Init(opts ...registry.Option) error { method Options (line 155) | func (e *etcdRegistry) Options() registry.Options { method registerNode (line 159) | func (e *etcdRegistry) registerNode(s *registry.Service, node *registr... method Deregister (line 302) | func (e *etcdRegistry) Deregister(s *registry.Service, opts ...registr... method Register (line 333) | func (e *etcdRegistry) Register(s *registry.Service, opts ...registry.... method GetService (line 351) | func (e *etcdRegistry) GetService(name string, opts ...registry.GetOpt... method ListServices (line 391) | func (e *etcdRegistry) ListServices(opts ...registry.ListOption) ([]*r... method Watch (line 431) | func (e *etcdRegistry) Watch(opts ...registry.WatchOption) (registry.W... method String (line 435) | func (e *etcdRegistry) String() string { method startKeepAlive (line 441) | func (e *etcdRegistry) startKeepAlive(key string, leaseID clientv3.Lea... method stopKeepAlive (line 493) | func (e *etcdRegistry) stopKeepAlive(key string) { function NewEtcdRegistry (line 40) | func NewEtcdRegistry(opts ...registry.Option) registry.Registry { function configure (line 60) | func configure(e *etcdRegistry, opts ...registry.Option) error { function encode (line 130) | func encode(s *registry.Service) string { function decode (line 135) | func decode(ds []byte) *registry.Service { function nodePath (line 141) | func nodePath(s, id string) string { function servicePath (line 147) | func servicePath(s string) string { FILE: registry/etcd/etcd_test.go function TestKeepAliveManagement (line 16) | func TestKeepAliveManagement(t *testing.T) { function TestKeepAliveReducesAuthRequests (line 116) | func TestKeepAliveReducesAuthRequests(t *testing.T) { function TestKeepAliveChannelReconnection (line 213) | func TestKeepAliveChannelReconnection(t *testing.T) { FILE: registry/etcd/options.go type authKey (line 10) | type authKey struct type logConfigKey (line 12) | type logConfigKey struct type authCreds (line 14) | type authCreds struct function Auth (line 20) | func Auth(username, password string) registry.Option { function LogConfig (line 30) | func LogConfig(config *zap.Config) registry.Option { FILE: registry/etcd/watcher.go type etcdWatcher (line 12) | type etcdWatcher struct method Next (line 46) | func (ew *etcdWatcher) Next() (*registry.Result, error) { method Stop (line 84) | func (ew *etcdWatcher) Stop() { function newEtcdWatcher (line 19) | func newEtcdWatcher(r *etcdRegistry, timeout time.Duration, opts ...regi... FILE: registry/mdns_registry.go type mdnsTxt (line 28) | type mdnsTxt struct type mdnsEntry (line 35) | type mdnsEntry struct type mdnsRegistry (line 40) | type mdnsRegistry struct method Init (line 150) | func (m *mdnsRegistry) Init(opts ...Option) error { method Options (line 157) | func (m *mdnsRegistry) Options() Options { method Register (line 161) | func (m *mdnsRegistry) Register(service *Service, opts ...RegisterOpti... method Deregister (line 266) | func (m *mdnsRegistry) Deregister(service *Service, opts ...Deregister... method GetService (line 301) | func (m *mdnsRegistry) GetService(service string, opts ...GetOption) (... method ListServices (line 392) | func (m *mdnsRegistry) ListServices(opts ...ListOption) ([]*Service, e... method Watch (line 442) | func (m *mdnsRegistry) Watch(opts ...WatchOption) (Watcher, error) { method String (line 536) | func (m *mdnsRegistry) String() string { type mdnsWatcher (line 57) | type mdnsWatcher struct method Next (line 540) | func (m *mdnsWatcher) Next() (*Result, error) { method Stop (line 602) | func (m *mdnsWatcher) Stop() { function encode (line 68) | func encode(txt *mdnsTxt) ([]string, error) { function decode (line 103) | func decode(record []string) (*mdnsTxt, error) { function newRegistry (line 130) | func newRegistry(opts ...Option) Registry { function NewMDNSRegistry (line 617) | func NewMDNSRegistry(opts ...Option) Registry { FILE: registry/mdns_test.go function TestMDNS (line 9) | func TestMDNS(t *testing.T) { function TestEncoding (line 152) | func TestEncoding(t *testing.T) { function TestWatcher (line 211) | func TestWatcher(t *testing.T) { FILE: registry/memory.go type node (line 16) | type node struct type record (line 22) | type record struct type memRegistry (line 30) | type memRegistry struct method ttlPrune (line 58) | func (m *memRegistry) ttlPrune() { method sendEvent (line 82) | func (m *memRegistry) sendEvent(r *Result) { method Init (line 105) | func (m *memRegistry) Init(opts ...Option) error { method Options (line 133) | func (m *memRegistry) Options() Options { method Register (line 137) | func (m *memRegistry) Register(s *Service, opts ...RegisterOption) err... method Deregister (line 195) | func (m *memRegistry) Deregister(s *Service, opts ...DeregisterOption)... method GetService (line 222) | func (m *memRegistry) GetService(name string, opts ...GetOption) ([]*S... method ListServices (line 241) | func (m *memRegistry) ListServices(opts ...ListOption) ([]*Service, er... method Watch (line 255) | func (m *memRegistry) Watch(opts ...WatchOption) (Watcher, error) { method String (line 275) | func (m *memRegistry) String() string { function NewMemoryRegistry (line 39) | func NewMemoryRegistry(opts ...Option) Registry { FILE: registry/memory_test.go function TestMemoryRegistry (line 77) | func TestMemoryRegistry(t *testing.T) { function TestMemoryRegistryTTL (line 167) | func TestMemoryRegistryTTL(t *testing.T) { function TestMemoryRegistryTTLConcurrent (line 194) | func TestMemoryRegistryTTLConcurrent(t *testing.T) { FILE: registry/memory_util.go function serviceToRecord (line 7) | func serviceToRecord(s *Service, ttl time.Duration) *record { function recordToService (line 36) | func recordToService(r *record) *Service { FILE: registry/memory_watcher.go type memWatcher (line 7) | type memWatcher struct method Next (line 14) | func (m *memWatcher) Next() (*Result, error) { method Stop (line 28) | func (m *memWatcher) Stop() { FILE: registry/nats/nats.go type natsRegistry (line 15) | type natsRegistry struct method newConn (line 105) | func (n *natsRegistry) newConn() (*nats.Conn, error) { method getConn (line 119) | func (n *natsRegistry) getConn() (*nats.Conn, error) { method register (line 136) | func (n *natsRegistry) register(s *registry.Service) error { method deregister (line 208) | func (n *natsRegistry) deregister(s *registry.Service) error { method query (line 230) | func (n *natsRegistry) query(s string, quorum int) ([]*registry.Servic... method Init (line 310) | func (n *natsRegistry) Init(opts ...registry.Option) error { method Options (line 314) | func (n *natsRegistry) Options() registry.Options { method Register (line 318) | func (n *natsRegistry) Register(s *registry.Service, opts ...registry.... method Deregister (line 336) | func (n *natsRegistry) Deregister(s *registry.Service, opts ...registr... method GetService (line 353) | func (n *natsRegistry) GetService(s string, opts ...registry.GetOption... method ListServices (line 361) | func (n *natsRegistry) ListServices(opts ...registry.ListOption) ([]*r... method Watch (line 381) | func (n *natsRegistry) Watch(opts ...registry.WatchOption) (registry.W... method String (line 400) | func (n *natsRegistry) String() string { function configure (line 35) | func configure(n *natsRegistry, opts ...registry.Option) error { function setAddrs (line 88) | func setAddrs(addrs []string) []string { function NewNatsRegistry (line 404) | func NewNatsRegistry(opts ...registry.Option) registry.Registry { FILE: registry/nats/nats_assert_test.go function assertNoError (line 8) | func assertNoError(tb testing.TB, actual error) { function assertEqual (line 14) | func assertEqual(tb testing.TB, expected, actual interface{}) { FILE: registry/nats/nats_environment_test.go type environment (line 12) | type environment struct function TestMain (line 27) | func TestMain(m *testing.M) { FILE: registry/nats/nats_options.go type contextQuorumKey (line 10) | type contextQuorumKey struct type optionsKey (line 11) | type optionsKey struct type watchTopicKey (line 12) | type watchTopicKey struct type queryTopicKey (line 13) | type queryTopicKey struct type registerActionKey (line 14) | type registerActionKey struct function getQuorum (line 20) | func getQuorum(o registry.Options) int { function Quorum (line 33) | func Quorum(n int) registry.Option { function NatsOptions (line 41) | func NatsOptions(nopts nats.Options) registry.Option { function QueryTopic (line 53) | func QueryTopic(s string) registry.Option { function WatchTopic (line 66) | func WatchTopic(s string) registry.Option { function RegisterAction (line 80) | func RegisterAction(s string) registry.Option { FILE: registry/nats/nats_test.go function TestRegister (line 9) | func TestRegister(t *testing.T) { function TestDeregister (line 23) | func TestDeregister(t *testing.T) { function TestGetService (line 48) | func TestGetService(t *testing.T) { function TestGetServiceWithNoNodes (line 56) | func TestGetServiceWithNoNodes(t *testing.T) { function TestGetServiceFromMultipleNodes (line 62) | func TestGetServiceFromMultipleNodes(t *testing.T) { function BenchmarkGetService (line 70) | func BenchmarkGetService(b *testing.B) { function BenchmarkGetServiceWithNoNodes (line 79) | func BenchmarkGetServiceWithNoNodes(b *testing.B) { function BenchmarkGetServiceFromMultipleNodes (line 87) | func BenchmarkGetServiceFromMultipleNodes(b *testing.B) { FILE: registry/nats/nats_util.go function cp (line 5) | func cp(current []*registry.Service) []*registry.Service { function addNodes (line 38) | func addNodes(old, neu []*registry.Node) []*registry.Node { function addServices (line 55) | func addServices(old, neu []*registry.Service) []*registry.Service { function delNodes (line 73) | func delNodes(old, del []*registry.Node) []*registry.Node { function delServices (line 90) | func delServices(old, del []*registry.Service) []*registry.Service { FILE: registry/nats/nats_watcher.go type natsWatcher (line 11) | type natsWatcher struct method Next (line 16) | func (n *natsWatcher) Next() (*registry.Result, error) { method Stop (line 37) | func (n *natsWatcher) Stop() { FILE: registry/options.go type Options (line 11) | type Options struct type RegisterOptions (line 22) | type RegisterOptions struct type WatchOptions (line 29) | type WatchOptions struct type DeregisterOptions (line 38) | type DeregisterOptions struct type GetOptions (line 42) | type GetOptions struct type ListOptions (line 46) | type ListOptions struct function NewOptions (line 50) | func NewOptions(opts ...Option) *Options { function Addrs (line 64) | func Addrs(addrs ...string) Option { function Timeout (line 70) | func Timeout(t time.Duration) Option { function Secure (line 77) | func Secure(b bool) Option { function TLSConfig (line 84) | func TLSConfig(t *tls.Config) Option { function RegisterTTL (line 90) | func RegisterTTL(t time.Duration) RegisterOption { function RegisterContext (line 96) | func RegisterContext(ctx context.Context) RegisterOption { function WatchService (line 103) | func WatchService(name string) WatchOption { function WatchContext (line 109) | func WatchContext(ctx context.Context) WatchOption { function DeregisterContext (line 115) | func DeregisterContext(ctx context.Context) DeregisterOption { function GetContext (line 121) | func GetContext(ctx context.Context) GetOption { function ListContext (line 127) | func ListContext(ctx context.Context) ListOption { type servicesKey (line 133) | type servicesKey struct function getServiceRecords (line 135) | func getServiceRecords(ctx context.Context) map[string]map[string]*record { function Services (line 157) | func Services(s map[string][]*Service) Option { function Logger (line 167) | func Logger(l logger.Logger) Option { FILE: registry/options_test.go function TestInitAddrs (line 45) | func TestInitAddrs(t *testing.T) { function TestWatchQueryTopic (line 95) | func TestWatchQueryTopic(t *testing.T) { FILE: registry/registry.go type Registry (line 18) | type Registry interface type Service (line 29) | type Service struct type Node (line 37) | type Node struct type Endpoint (line 43) | type Endpoint struct type Value (line 50) | type Value struct type Option (line 56) | type Option type RegisterOption (line 58) | type RegisterOption type WatchOption (line 60) | type WatchOption type DeregisterOption (line 62) | type DeregisterOption type GetOption (line 64) | type GetOption type ListOption (line 66) | type ListOption function Register (line 69) | func Register(s *Service, opts ...RegisterOption) error { function Deregister (line 74) | func Deregister(s *Service) error { function GetService (line 79) | func GetService(name string) ([]*Service, error) { function ListServices (line 84) | func ListServices() ([]*Service, error) { function Watch (line 89) | func Watch(opts ...WatchOption) (Watcher, error) { function String (line 93) | func String() string { FILE: registry/watcher.go type Watcher (line 7) | type Watcher interface type Result (line 15) | type Result struct type EventType (line 21) | type EventType method String (line 33) | func (t EventType) String() string { constant Create (line 25) | Create EventType = iota constant Delete (line 27) | Delete constant Update (line 29) | Update type Event (line 47) | type Event struct FILE: selector/default.go type registrySelector (line 13) | type registrySelector struct method newCache (line 19) | func (c *registrySelector) newCache() cache.Cache { method Init (line 31) | func (c *registrySelector) Init(opts ...Option) error { method Options (line 45) | func (c *registrySelector) Options() Options { method Select (line 49) | func (c *registrySelector) Select(service string, opts ...SelectOption... method Mark (line 86) | func (c *registrySelector) Mark(service string, node *registry.Node, e... method Reset (line 89) | func (c *registrySelector) Reset(service string) { method Close (line 93) | func (c *registrySelector) Close() error { method String (line 99) | func (c *registrySelector) String() string { function NewSelector (line 104) | func NewSelector(opts ...Option) Selector { FILE: selector/default_test.go function TestRegistrySelector (line 10) | func TestRegistrySelector(t *testing.T) { FILE: selector/filter.go function FilterEndpoint (line 9) | func FilterEndpoint(name string) Filter { function FilterLabel (line 28) | func FilterLabel(key, val string) Filter { function FilterVersion (line 61) | func FilterVersion(version string) Filter { FILE: selector/filter_test.go function TestFilterEndpoint (line 9) | func TestFilterEndpoint(t *testing.T) { function TestFilterLabel (line 90) | func TestFilterLabel(t *testing.T) { function TestFilterVersion (line 182) | func TestFilterVersion(t *testing.T) { FILE: selector/options.go type Options (line 10) | type Options struct type SelectOptions (line 21) | type SelectOptions struct type Option (line 31) | type Option type SelectOption (line 34) | type SelectOption function Registry (line 37) | func Registry(r registry.Registry) Option { function SetStrategy (line 44) | func SetStrategy(fn Strategy) Option { function WithFilter (line 52) | func WithFilter(fn ...Filter) SelectOption { function WithStrategy (line 59) | func WithStrategy(fn Strategy) SelectOption { function WithLogger (line 66) | func WithLogger(l logger.Logger) Option { FILE: selector/selector.go type Selector (line 13) | type Selector interface type Next (line 30) | type Next type Filter (line 33) | type Filter type Strategy (line 36) | type Strategy FILE: selector/strategy.go function Random (line 11) | func Random(services []*registry.Service) Next { function RoundRobin (line 29) | func RoundRobin(services []*registry.Service) Next { FILE: selector/strategy_test.go function TestStrategies (line 10) | func TestStrategies(t *testing.T) { FILE: server/comments.go function extractMethodDoc (line 19) | func extractMethodDoc(method reflect.Method, rcvrType reflect.Type) (des... function getTypeName (line 91) | func getTypeName(expr ast.Expr) string { function parseComment (line 103) | func parseComment(comment string) (description, example string) { function extractHandlerDocs (line 126) | func extractHandlerDocs(handler interface{}) map[string]map[string]string { FILE: server/comments_test.go type TestService (line 9) | type TestService struct method GetItem (line 14) | func (s *TestService) GetItem(ctx context.Context, req *TestRequest, r... method CreateItem (line 21) | func (s *TestService) CreateItem(ctx context.Context, req *TestRequest... method NoDoc (line 25) | func (s *TestService) NoDoc(ctx context.Context, req *TestRequest, rsp... type TestRequest (line 29) | type TestRequest struct type TestResponse (line 30) | type TestResponse struct function TestExtractHandlerDocs (line 32) | func TestExtractHandlerDocs(t *testing.T) { function TestNewRpcHandlerAutoExtract (line 75) | func TestNewRpcHandlerAutoExtract(t *testing.T) { function TestManualMetadataOverridesAutoExtract (line 98) | func TestManualMetadataOverridesAutoExtract(t *testing.T) { function TestWithEndpointScopes (line 127) | func TestWithEndpointScopes(t *testing.T) { FILE: server/context.go type serverKey (line 8) | type serverKey struct type wgKey (line 9) | type wgKey struct function wait (line 11) | func wait(ctx context.Context) *sync.WaitGroup { function FromContext (line 22) | func FromContext(ctx context.Context) (Server, bool) { function NewContext (line 27) | func NewContext(ctx context.Context, s Server) context.Context { FILE: server/doc.go type EndpointDoc (line 38) | type EndpointDoc struct function WithEndpointDocs (line 48) | func WithEndpointDocs(docs map[string]EndpointDoc) HandlerOption { function WithEndpointDescription (line 70) | func WithEndpointDescription(endpoint, description string) HandlerOption { function WithEndpointExample (line 77) | func WithEndpointExample(endpoint, example string) HandlerOption { function WithEndpointScopes (line 94) | func WithEndpointScopes(endpoint string, scopes ...string) HandlerOption { FILE: server/extractor.go function extractValue (line 11) | func extractValue(v reflect.Type, d int) *registry.Value { function extractEndpoint (line 74) | func extractEndpoint(method reflect.Method) *registry.Endpoint { function extractSubValue (line 120) | func extractSubValue(typ reflect.Type) *registry.Value { FILE: server/extractor_test.go type testHandler (line 11) | type testHandler struct method Test (line 17) | func (t *testHandler) Test(ctx context.Context, req *testRequest, rsp ... type testRequest (line 13) | type testRequest struct type testResponse (line 15) | type testResponse struct function TestExtractEndpoint (line 21) | func TestExtractEndpoint(t *testing.T) { FILE: server/grpc/codec.go type jsonCodec (line 16) | type jsonCodec struct method Marshal (line 83) | func (jsonCodec) Marshal(v interface{}) ([]byte, error) { method Unmarshal (line 91) | func (jsonCodec) Unmarshal(data []byte, v interface{}) error { method Name (line 101) | func (jsonCodec) Name() string { type bytesCodec (line 17) | type bytesCodec struct method Marshal (line 105) | func (bytesCodec) Marshal(v interface{}) ([]byte, error) { method Unmarshal (line 113) | func (bytesCodec) Unmarshal(data []byte, v interface{}) error { method Name (line 122) | func (bytesCodec) Name() string { type protoCodec (line 18) | type protoCodec struct method Marshal (line 63) | func (protoCodec) Marshal(v interface{}) ([]byte, error) { method Unmarshal (line 71) | func (protoCodec) Unmarshal(data []byte, v interface{}) error { method Name (line 79) | func (protoCodec) Name() string { type wrapCodec (line 19) | type wrapCodec struct method String (line 39) | func (w wrapCodec) String() string { method Marshal (line 43) | func (w wrapCodec) Marshal(v interface{}) ([]byte, error) { method Unmarshal (line 51) | func (w wrapCodec) Unmarshal(data []byte, v interface{}) error { type grpcCodec (line 126) | type grpcCodec struct method ReadHeader (line 137) | func (g *grpcCodec) ReadHeader(m *codec.Message, mt codec.MessageType)... method ReadBody (line 155) | func (g *grpcCodec) ReadBody(v interface{}) error { method Write (line 163) | func (g *grpcCodec) Write(m *codec.Message, v interface{}) error { method Close (line 176) | func (g *grpcCodec) Close() error { method String (line 180) | func (g *grpcCodec) String() string { FILE: server/grpc/context.go function setServerOption (line 9) | func setServerOption(k, v interface{}) server.Option { FILE: server/grpc/error.go function microError (line 10) | func microError(err *errors.Error) codes.Code { FILE: server/grpc/extractor.go function extractValue (line 11) | func extractValue(v reflect.Type, d int) *registry.Value { function extractEndpoint (line 67) | func extractEndpoint(method reflect.Method) *registry.Endpoint { function extractSubValue (line 112) | func extractSubValue(typ reflect.Type) *registry.Value { FILE: server/grpc/extractor_test.go type testHandler (line 11) | type testHandler struct method Test (line 17) | func (t *testHandler) Test(ctx context.Context, req *testRequest, rsp ... type testRequest (line 13) | type testRequest struct type testResponse (line 15) | type testResponse struct function TestExtractEndpoint (line 21) | func TestExtractEndpoint(t *testing.T) { FILE: server/grpc/grpc.go function init (line 40) | func init() { constant defaultContentType (line 51) | defaultContentType = "application/grpc" type grpcServer (line 54) | type grpcServer struct method configure (line 114) | func (g *grpcServer) configure(opts ...server.Option) { method getMaxMsgSize (line 159) | func (g *grpcServer) getMaxMsgSize() int { method getCredentials (line 170) | func (g *grpcServer) getCredentials() credentials.TransportCredentials { method getGrpcOptions (line 179) | func (g *grpcServer) getGrpcOptions() []grpc.ServerOption { method getListener (line 192) | func (g *grpcServer) getListener() net.Listener { method getGrpcServer (line 204) | func (g *grpcServer) getGrpcServer() *grpc.Server { method handler (line 216) | func (g *grpcServer) handler(srv interface{}, stream grpc.ServerStream... method processRequest (line 352) | func (g *grpcServer) processRequest(stream grpc.ServerStream, service ... method processStream (line 460) | func (g *grpcServer) processStream(stream grpc.ServerStream, service *... method newGRPCCodec (line 528) | func (g *grpcServer) newGRPCCodec(contentType string) (encoding.Codec,... method Options (line 544) | func (g *grpcServer) Options() server.Options { method Init (line 552) | func (g *grpcServer) Init(opts ...server.Option) error { method NewHandler (line 557) | func (g *grpcServer) NewHandler(h interface{}, opts ...server.HandlerO... method Handle (line 561) | func (g *grpcServer) Handle(h server.Handler) error { method NewSubscriber (line 570) | func (g *grpcServer) NewSubscriber(topic string, sb interface{}, opts ... method Subscribe (line 574) | func (g *grpcServer) Subscribe(sb server.Subscriber) error { method Register (line 598) | func (g *grpcServer) Register() error { method Deregister (line 775) | func (g *grpcServer) Deregister() error { method Start (line 854) | func (g *grpcServer) Start() error { method Stop (line 1010) | func (g *grpcServer) Stop() error { method String (line 1033) | func (g *grpcServer) String() string { function init (line 73) | func init() { function newGRPCServer (line 79) | func newGRPCServer(opts ...server.Option) server.Server { type grpcRouter (line 101) | type grpcRouter struct method ProcessMessage (line 106) | func (r grpcRouter) ProcessMessage(ctx context.Context, msg server.Mes... method ServeRequest (line 110) | func (r grpcRouter) ServeRequest(ctx context.Context, req server.Reque... function NewServer (line 1037) | func NewServer(opts ...server.Option) server.Server { FILE: server/grpc/handler.go type rpcHandler (line 10) | type rpcHandler struct method Name (line 52) | func (r *rpcHandler) Name() string { method Handler (line 56) | func (r *rpcHandler) Handler() interface{} { method Endpoints (line 60) | func (r *rpcHandler) Endpoints() []*registry.Endpoint { method Options (line 64) | func (r *rpcHandler) Options() server.HandlerOptions { function newRpcHandler (line 17) | func newRpcHandler(handler interface{}, opts ...server.HandlerOption) se... FILE: server/grpc/options.go type codecsKey (line 18) | type codecsKey struct type grpcOptions (line 19) | type grpcOptions struct type netListener (line 20) | type netListener struct type maxMsgSizeKey (line 21) | type maxMsgSizeKey struct type maxConnKey (line 22) | type maxConnKey struct type tlsAuth (line 23) | type tlsAuth struct type grpcServerKey (line 24) | type grpcServerKey struct function Codec (line 27) | func Codec(contentType string, c encoding.Codec) server.Option { function AuthTLS (line 42) | func AuthTLS(t *tls.Config) server.Option { function MaxConn (line 47) | func MaxConn(n int) server.Option { function Listener (line 52) | func Listener(l net.Listener) server.Option { function Server (line 60) | func Server(srv *grpc.Server) server.Option { function Options (line 65) | func Options(opts ...grpc.ServerOption) server.Option { function MaxMsgSize (line 71) | func MaxMsgSize(s int) server.Option { function newOptions (line 75) | func newOptions(opt ...server.Option) server.Options { FILE: server/grpc/request.go type rpcRequest (line 8) | type rpcRequest struct method ContentType (line 28) | func (r *rpcRequest) ContentType() string { method Service (line 32) | func (r *rpcRequest) Service() string { method Method (line 36) | func (r *rpcRequest) Method() string { method Endpoint (line 40) | func (r *rpcRequest) Endpoint() string { method Codec (line 44) | func (r *rpcRequest) Codec() codec.Reader { method Header (line 48) | func (r *rpcRequest) Header() map[string]string { method Read (line 52) | func (r *rpcRequest) Read() ([]byte, error) { method Stream (line 60) | func (r *rpcRequest) Stream() bool { method Body (line 64) | func (r *rpcRequest) Body() interface{} { type rpcMessage (line 19) | type rpcMessage struct method ContentType (line 68) | func (r *rpcMessage) ContentType() string { method Topic (line 72) | func (r *rpcMessage) Topic() string { method Payload (line 76) | func (r *rpcMessage) Payload() interface{} { method Header (line 80) | func (r *rpcMessage) Header() map[string]string { method Body (line 84) | func (r *rpcMessage) Body() []byte { method Codec (line 88) | func (r *rpcMessage) Codec() codec.Reader { FILE: server/grpc/response.go type rpcResponse (line 7) | type rpcResponse struct method Codec (line 12) | func (r *rpcResponse) Codec() codec.Writer { method WriteHeader (line 16) | func (r *rpcResponse) WriteHeader(hdr map[string]string) { method Write (line 22) | func (r *rpcResponse) Write(b []byte) error { FILE: server/grpc/server.go type methodType (line 27) | type methodType struct method prepareContext (line 177) | func (m *methodType) prepareContext(ctx context.Context) reflect.Value { type service (line 35) | type service struct type rServer (line 43) | type rServer struct method register (line 135) | func (server *rServer) register(rcvr interface{}) error { function isExported (line 50) | func isExported(name string) bool { function isExportedOrBuiltinType (line 56) | func isExportedOrBuiltinType(t reflect.Type) bool { function prepareEndpoint (line 67) | func prepareEndpoint(method reflect.Method, log logger.Logger) *methodTy... FILE: server/grpc/stream.go type rpcStream (line 11) | type rpcStream struct method Close (line 16) | func (r *rpcStream) Close() error { method Error (line 20) | func (r *rpcStream) Error() error { method Request (line 24) | func (r *rpcStream) Request() server.Request { method Context (line 28) | func (r *rpcStream) Context() context.Context { method Send (line 32) | func (r *rpcStream) Send(m interface{}) error { method Recv (line 36) | func (r *rpcStream) Recv(m interface{}) error { FILE: server/grpc/subscriber.go constant subSig (line 19) | subSig = "func(context.Context, interface{}) error" type handler (line 22) | type handler struct type subscriber (line 28) | type subscriber struct method Topic (line 277) | func (s *subscriber) Topic() string { method Subscriber (line 281) | func (s *subscriber) Subscriber() interface{} { method Endpoints (line 285) | func (s *subscriber) Endpoints() []*registry.Endpoint { method Options (line 289) | func (s *subscriber) Options() server.SubscriberOptions { function newSubscriber (line 38) | func newSubscriber(topic string, sub interface{}, opts ...server.Subscri... function validateSubscriber (line 115) | func validateSubscriber(sub server.Subscriber) error { method createSubHandler (line 169) | func (g *grpcServer) createSubHandler(sb *subscriber, opts server.Option... FILE: server/grpc/util.go function convertCode (line 14) | func convertCode(err error) codes.Code { function wait (line 40) | func wait(ctx context.Context) *sync.WaitGroup { FILE: server/handler.go type HandlerOption (line 5) | type HandlerOption type HandlerOptions (line 7) | type HandlerOptions struct type SubscriberOption (line 12) | type SubscriberOption type SubscriberOptions (line 14) | type SubscriberOptions struct function EndpointMetadata (line 25) | func EndpointMetadata(name string, md map[string]string) HandlerOption { function InternalHandler (line 34) | func InternalHandler(b bool) HandlerOption { function InternalSubscriber (line 42) | func InternalSubscriber(b bool) SubscriberOption { function NewSubscriberOptions (line 47) | func NewSubscriberOptions(opts ...SubscriberOption) SubscriberOptions { function DisableAutoAck (line 62) | func DisableAutoAck() SubscriberOption { function SubscriberQueue (line 69) | func SubscriberQueue(n string) SubscriberOption { function SubscriberContext (line 76) | func SubscriberContext(ctx context.Context) SubscriberOption { FILE: server/mock/mock.go type MockServer (line 11) | type MockServer struct method Options (line 37) | func (m *MockServer) Options() server.Options { method Init (line 44) | func (m *MockServer) Init(opts ...server.Option) error { method Handle (line 54) | func (m *MockServer) Handle(h server.Handler) error { method NewHandler (line 65) | func (m *MockServer) NewHandler(h interface{}, opts ...server.HandlerO... method NewSubscriber (line 78) | func (m *MockServer) NewSubscriber(topic string, fn interface{}, opts ... method Subscribe (line 91) | func (m *MockServer) Subscribe(sub server.Subscriber) error { method Register (line 101) | func (m *MockServer) Register() error { method Deregister (line 105) | func (m *MockServer) Deregister() error { method Start (line 109) | func (m *MockServer) Start() error { method Stop (line 121) | func (m *MockServer) Stop() error { method String (line 133) | func (m *MockServer) String() string { function newMockServer (line 23) | func newMockServer(opts ...server.Option) *MockServer { function NewServer (line 137) | func NewServer(opts ...server.Option) *MockServer { FILE: server/mock/mock_handler.go type MockHandler (line 8) | type MockHandler struct method Name (line 14) | func (m *MockHandler) Name() string { method Handler (line 18) | func (m *MockHandler) Handler() interface{} { method Endpoints (line 22) | func (m *MockHandler) Endpoints() []*registry.Endpoint { method Options (line 26) | func (m *MockHandler) Options() server.HandlerOptions { FILE: server/mock/mock_subscriber.go type MockSubscriber (line 8) | type MockSubscriber struct method Topic (line 14) | func (m *MockSubscriber) Topic() string { method Subscriber (line 18) | func (m *MockSubscriber) Subscriber() interface{} { method Endpoints (line 22) | func (m *MockSubscriber) Endpoints() []*registry.Endpoint { method Options (line 26) | func (m *MockSubscriber) Options() server.SubscriberOptions { FILE: server/mock/mock_test.go function TestMockServer (line 9) | func TestMockServer(t *testing.T) { FILE: server/options.go type RouterOptions (line 17) | type RouterOptions struct type RouterOption (line 21) | type RouterOption function NewRouterOptions (line 23) | func NewRouterOptions(opt ...RouterOption) RouterOptions { function WithRouterLogger (line 36) | func WithRouterLogger(l logger.Logger) RouterOption { type Options (line 42) | type Options struct function NewOptions (line 81) | func NewOptions(opt ...Option) Options { function Name (line 130) | func Name(n string) Option { function Id (line 137) | func Id(id string) Option { function Version (line 144) | func Version(v string) Option { function Address (line 151) | func Address(a string) Option { function Advertise (line 158) | func Advertise(a string) Option { function Broker (line 165) | func Broker(b broker.Broker) Option { function Codec (line 172) | func Codec(contentType string, c codec.NewCodec) Option { function Context (line 181) | func Context(ctx context.Context) Option { function Registry (line 188) | func Registry(r registry.Registry) Option { function Tracer (line 195) | func Tracer(t trace.Tracer) Option { function Transport (line 202) | func Transport(t transport.Transport) Option { function Metadata (line 209) | func Metadata(md map[string]string) Option { function RegisterCheck (line 216) | func RegisterCheck(fn func(context.Context) error) Option { function RegisterTTL (line 223) | func RegisterTTL(t time.Duration) Option { function RegisterInterval (line 230) | func RegisterInterval(t time.Duration) Option { function TLSConfig (line 237) | func TLSConfig(t *tls.Config) Option { function WithRouter (line 257) | func WithRouter(r Router) Option { function WithLogger (line 264) | func WithLogger(l logger.Logger) Option { function Wait (line 274) | func Wait(wg *sync.WaitGroup) Option { function WrapHandler (line 287) | func WrapHandler(w HandlerWrapper) Option { function WrapSubscriber (line 294) | func WrapSubscriber(w SubscriberWrapper) Option { function ListenOption (line 302) | func ListenOption(option transport.ListenOption) Option { FILE: server/proto/server.pb.go constant _ (line 21) | _ = proto.ProtoPackageIsVersion3 type HandleRequest (line 23) | type HandleRequest struct method Reset (line 32) | func (m *HandleRequest) Reset() { *m = HandleRequest{} } method String (line 33) | func (m *HandleRequest) String() string { return proto.CompactTextStri... method ProtoMessage (line 34) | func (*HandleRequest) ProtoMessage() {} method Descriptor (line 35) | func (*HandleRequest) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 39) | func (m *HandleRequest) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 42) | func (m *HandleRequest) XXX_Marshal(b []byte, deterministic bool) ([]b... method XXX_Merge (line 45) | func (m *HandleRequest) XXX_Merge(src proto.Message) { method XXX_Size (line 48) | func (m *HandleRequest) XXX_Size() int { method XXX_DiscardUnknown (line 51) | func (m *HandleRequest) XXX_DiscardUnknown() { method GetService (line 57) | func (m *HandleRequest) GetService() string { method GetEndpoint (line 64) | func (m *HandleRequest) GetEndpoint() string { method GetProtocol (line 71) | func (m *HandleRequest) GetProtocol() string { type HandleResponse (line 78) | type HandleResponse struct method Reset (line 84) | func (m *HandleResponse) Reset() { *m = HandleResponse{} } method String (line 85) | func (m *HandleResponse) String() string { return proto.CompactTextStr... method ProtoMessage (line 86) | func (*HandleResponse) ProtoMessage() {} method Descriptor (line 87) | func (*HandleResponse) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 91) | func (m *HandleResponse) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 94) | func (m *HandleResponse) XXX_Marshal(b []byte, deterministic bool) ([]... method XXX_Merge (line 97) | func (m *HandleResponse) XXX_Merge(src proto.Message) { method XXX_Size (line 100) | func (m *HandleResponse) XXX_Size() int { method XXX_DiscardUnknown (line 103) | func (m *HandleResponse) XXX_DiscardUnknown() { type SubscribeRequest (line 109) | type SubscribeRequest struct method Reset (line 116) | func (m *SubscribeRequest) Reset() { *m = SubscribeRequest{} } method String (line 117) | func (m *SubscribeRequest) String() string { return proto.CompactTextS... method ProtoMessage (line 118) | func (*SubscribeRequest) ProtoMessage() {} method Descriptor (line 119) | func (*SubscribeRequest) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 123) | func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 126) | func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) (... method XXX_Merge (line 129) | func (m *SubscribeRequest) XXX_Merge(src proto.Message) { method XXX_Size (line 132) | func (m *SubscribeRequest) XXX_Size() int { method XXX_DiscardUnknown (line 135) | func (m *SubscribeRequest) XXX_DiscardUnknown() { method GetTopic (line 141) | func (m *SubscribeRequest) GetTopic() string { type SubscribeResponse (line 148) | type SubscribeResponse struct method Reset (line 154) | func (m *SubscribeResponse) Reset() { *m = SubscribeResponse{} } method String (line 155) | func (m *SubscribeResponse) String() string { return proto.CompactText... method ProtoMessage (line 156) | func (*SubscribeResponse) ProtoMessage() {} method Descriptor (line 157) | func (*SubscribeResponse) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 161) | func (m *SubscribeResponse) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 164) | func (m *SubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ... method XXX_Merge (line 167) | func (m *SubscribeResponse) XXX_Merge(src proto.Message) { method XXX_Size (line 170) | func (m *SubscribeResponse) XXX_Size() int { method XXX_DiscardUnknown (line 173) | func (m *SubscribeResponse) XXX_DiscardUnknown() { function init (line 179) | func init() { function init (line 186) | func init() { proto.RegisterFile("server.proto", fileDescriptor_ad098dae... FILE: server/proto/server.pb.micro.go constant _ (line 27) | _ = proto.ProtoPackageIsVersion3 type ServerService (line 36) | type ServerService interface type serverService (line 41) | type serverService struct method Handle (line 53) | func (c *serverService) Handle(ctx context.Context, in *HandleRequest,... method Subscribe (line 63) | func (c *serverService) Subscribe(ctx context.Context, in *SubscribeRe... function NewServerService (line 46) | func NewServerService(name string, c client.Client) ServerService { type ServerHandler (line 75) | type ServerHandler interface function RegisterServerHandler (line 80) | func RegisterServerHandler(s server.Server, hdlr ServerHandler, opts ...... type serverHandler (line 92) | type serverHandler struct method Handle (line 96) | func (h *serverHandler) Handle(ctx context.Context, in *HandleRequest,... method Subscribe (line 100) | func (h *serverHandler) Subscribe(ctx context.Context, in *SubscribeRe... FILE: server/rpc_codec.go type rpcCodec (line 21) | type rpcCodec struct method ReadHeader (line 206) | func (c *rpcCodec) ReadHeader(r *codec.Message, t codec.MessageType) e... method ReadBody (line 277) | func (c *rpcCodec) ReadBody(b interface{}) error { method Write (line 291) | func (c *rpcCodec) Write(r *codec.Message, b interface{}) error { method Close (line 348) | func (c *rpcCodec) Close() error { method String (line 360) | func (c *rpcCodec) String() string { type readWriteCloser (line 35) | type readWriteCloser struct method Read (line 69) | func (rwc *readWriteCloser) Read(p []byte) (n int, err error) { method Write (line 76) | func (rwc *readWriteCloser) Write(p []byte) (n int, err error) { method Close (line 83) | func (rwc *readWriteCloser) Close() error { function getHeader (line 87) | func getHeader(hdr string, md map[string]string) string { function getHeaders (line 95) | func getHeaders(m *codec.Message) { function setHeaders (line 116) | func setHeaders(m, r *codec.Message) { function setupProtocol (line 135) | func setupProtocol(msg *transport.Message) codec.NewCodec { function newRPCCodec (line 176) | func newRPCCodec(req *transport.Message, socket transport.Socket, c code... FILE: server/rpc_codec_test.go type testCodec (line 13) | type testCodec struct method ReadHeader (line 67) | func (c *testCodec) ReadHeader(message *codec.Message, typ codec.Messa... method ReadBody (line 71) | func (c *testCodec) ReadBody(dest interface{}) error { method Write (line 75) | func (c *testCodec) Write(message *codec.Message, dest interface{}) er... method Close (line 83) | func (c *testCodec) Close() error { method String (line 87) | func (c *testCodec) String() string { type testSocket (line 17) | type testSocket struct method Local (line 91) | func (s testSocket) Local() string { method Remote (line 95) | func (s testSocket) Remote() string { method Recv (line 99) | func (s testSocket) Recv(message *transport.Message) error { method Send (line 103) | func (s testSocket) Send(message *transport.Message) error { method Close (line 107) | func (s testSocket) Close() error { function TestCodecWriteError (line 29) | func TestCodecWriteError(t *testing.T) { FILE: server/rpc_event.go type event (line 10) | type event struct method Ack (line 15) | func (e *event) Ack() error { method Message (line 20) | func (e *event) Message() *broker.Message { method Error (line 24) | func (e *event) Error() error { method Topic (line 28) | func (e *event) Topic() string { function newEvent (line 32) | func newEvent(msg transport.Message) *event { FILE: server/rpc_events.go method HandleEvent (line 17) | func (s *rpcServer) HandleEvent(subscriber string) func(e broker.Event) ... method NewSubscriber (line 79) | func (s *rpcServer) NewSubscriber(topic string, sb interface{}, opts ...... method Subscribe (line 83) | func (s *rpcServer) Subscribe(sb Subscriber) error { method subscribeServer (line 110) | func (s *rpcServer) subscribeServer(config Options) error { method reSubscribe (line 125) | func (s *rpcServer) reSubscribe(config Options) { FILE: server/rpc_events_test.go function TestSubscriberNoDuplicates (line 17) | func TestSubscriberNoDuplicates(t *testing.T) { function TestSubscriberMultipleTopics (line 111) | func TestSubscriberMultipleTopics(t *testing.T) { type TestMessage (line 217) | type TestMessage struct FILE: server/rpc_handler.go type RpcHandler (line 9) | type RpcHandler struct method Name (line 69) | func (r *RpcHandler) Name() string { method Handler (line 73) | func (r *RpcHandler) Handler() interface{} { method Endpoints (line 77) | func (r *RpcHandler) Endpoints() []*registry.Endpoint { method Options (line 81) | func (r *RpcHandler) Options() HandlerOptions { function NewRpcHandler (line 16) | func NewRpcHandler(handler interface{}, opts ...HandlerOption) Handler { FILE: server/rpc_helper.go method setRegistered (line 12) | func (s *rpcServer) setRegistered(b bool) { method isRegistered (line 20) | func (s *rpcServer) isRegistered() bool { method setStarted (line 28) | func (s *rpcServer) setStarted(b bool) { method isStarted (line 36) | func (s *rpcServer) isStarted() bool { method setWg (line 44) | func (s *rpcServer) setWg(wg *sync.WaitGroup) { method getWg (line 52) | func (s *rpcServer) getWg() *sync.WaitGroup { method setOptsAddr (line 60) | func (s *rpcServer) setOptsAddr(addr string) { method getCachedService (line 67) | func (s *rpcServer) getCachedService() *registry.Service { method Options (line 74) | func (s *rpcServer) Options() Options { method swapAddr (line 82) | func (s *rpcServer) swapAddr(config Options, addr string) string { method newCodec (line 91) | func (s *rpcServer) newCodec(contentType string) (codec.NewCodec, error) { FILE: server/rpc_request.go type rpcRequest (line 11) | type rpcRequest struct method Codec (line 34) | func (r *rpcRequest) Codec() codec.Reader { method ContentType (line 38) | func (r *rpcRequest) ContentType() string { method Service (line 42) | func (r *rpcRequest) Service() string { method Method (line 46) | func (r *rpcRequest) Method() string { method Endpoint (line 50) | func (r *rpcRequest) Endpoint() string { method Header (line 54) | func (r *rpcRequest) Header() map[string]string { method Body (line 58) | func (r *rpcRequest) Body() interface{} { method Read (line 62) | func (r *rpcRequest) Read() ([]byte, error) { method Stream (line 80) | func (r *rpcRequest) Stream() bool { type rpcMessage (line 25) | type rpcMessage struct method ContentType (line 84) | func (r *rpcMessage) ContentType() string { method Topic (line 88) | func (r *rpcMessage) Topic() string { method Payload (line 92) | func (r *rpcMessage) Payload() interface{} { method Header (line 96) | func (r *rpcMessage) Header() map[string]string { method Body (line 100) | func (r *rpcMessage) Body() []byte { method Codec (line 104) | func (r *rpcMessage) Codec() codec.Reader { FILE: server/rpc_response.go type rpcResponse (line 10) | type rpcResponse struct method Codec (line 16) | func (r *rpcResponse) Codec() codec.Writer { method WriteHeader (line 20) | func (r *rpcResponse) WriteHeader(hdr map[string]string) { method Write (line 26) | func (r *rpcResponse) Write(b []byte) error { FILE: server/rpc_router.go type methodType (line 28) | type methodType struct method prepareContext (line 302) | func (m *methodType) prepareContext(ctx context.Context) reflect.Value { type service (line 37) | type service struct method call (line 212) | func (s *service) call(ctx context.Context, type request (line 44) | type request struct type response (line 49) | type response struct type router (line 55) | type router struct method sendResponse (line 191) | func (router *router) sendResponse(sending sync.Locker, method getRequest (line 310) | func (router *router) getRequest() *request { method freeRequest (line 325) | func (router *router) freeRequest(req *request) { method getResponse (line 333) | func (router *router) getResponse() *response { method freeResponse (line 348) | func (router *router) freeResponse(resp *response) { method readRequest (line 356) | func (router *router) readRequest(r Request) (service *service, mtype ... method readHeader (line 403) | func (router *router) readHeader(cc codec.Reader) (service *service, m... method NewHandler (line 449) | func (router *router) NewHandler(h interface{}, opts ...HandlerOption)... method Handle (line 453) | func (router *router) Handle(h Handler) error { method ServeRequest (line 501) | func (router *router) ServeRequest(ctx context.Context, r Request, rsp... method NewSubscriber (line 519) | func (router *router) NewSubscriber(topic string, handler interface{},... method Subscribe (line 523) | func (router *router) Subscribe(s Subscriber) error { method ProcessMessage (line 548) | func (router *router) ProcessMessage(ctx context.Context, subscriber s... type rpcRouter (line 82) | type rpcRouter struct method ProcessMessage (line 87) | func (r rpcRouter) ProcessMessage(ctx context.Context, subscriber stri... method ServeRequest (line 91) | func (r rpcRouter) ServeRequest(ctx context.Context, req Request, rsp ... function newRpcRouter (line 95) | func newRpcRouter(opts ...RouterOption) *router { function isExported (line 104) | func isExported(name string) bool { function isExportedOrBuiltinType (line 110) | func isExportedOrBuiltinType(t reflect.Type) bool { function prepareMethod (line 121) | func prepareMethod(method reflect.Method, logger log.Logger) *methodType { FILE: server/rpc_server.go type rpcServer (line 29) | type rpcServer struct method Init (line 69) | func (s *rpcServer) Init(opts ...Option) error { method ServeConn (line 92) | func (s *rpcServer) ServeConn(sock transport.Socket) { method NewHandler (line 376) | func (s *rpcServer) NewHandler(h interface{}, opts ...HandlerOption) H... method Handle (line 380) | func (s *rpcServer) Handle(h Handler) error { method Register (line 393) | func (s *rpcServer) Register() error { method Deregister (line 462) | func (s *rpcServer) Deregister() error { method Start (line 530) | func (s *rpcServer) Start() error { method Stop (line 579) | func (s *rpcServer) Stop() error { method String (line 594) | func (s *rpcServer) String() string { method newRegFuc (line 599) | func (s *rpcServer) newRegFuc(config Options) func(service *registry.S... method getAddr (line 634) | func (s *rpcServer) getAddr(config Options) (string, bool, error) { method newNodeMetedata (line 670) | func (s *rpcServer) newNodeMetedata(config Options) metadata.Metadata { method getEndpoints (line 685) | func (s *rpcServer) getEndpoints() []*registry.Endpoint { method listen (line 728) | func (s *rpcServer) listen(listener transport.Listener, exit chan bool) { method registrar (line 756) | func (s *rpcServer) registrar(listener transport.Listener, addr string... method serveReq (line 831) | func (s *rpcServer) serveReq(ctx context.Context, method deferer (line 859) | func (s *rpcServer) deferer(pool *socket.Pool, psock *socket.Socket, w... method getRouter (line 870) | func (s *rpcServer) getRouter() Router { function NewRPCServer (line 53) | func NewRPCServer(opts ...Option) Server { FILE: server/rpc_stream.go type rpcStream (line 13) | type rpcStream struct method Context (line 23) | func (r *rpcStream) Context() context.Context { method Request (line 27) | func (r *rpcStream) Request() Request { method Send (line 31) | func (r *rpcStream) Send(msg interface{}) error { method Recv (line 50) | func (r *rpcStream) Recv(msg interface{}) error { method Error (line 93) | func (r *rpcStream) Error() error { method Close (line 99) | func (r *rpcStream) Close() error { FILE: server/rpc_stream_test.go type protoStruct (line 18) | type protoStruct struct method Reset (line 22) | func (m *protoStruct) Reset() { *m = protoStruct{} } method String (line 23) | func (m *protoStruct) String() string { return proto.CompactTextString... method ProtoMessage (line 24) | func (*protoStruct) ProtoMessage() {} type safeBuffer (line 27) | type safeBuffer struct method Write (line 33) | func (b *safeBuffer) Write(p []byte) (n int, err error) { method Read (line 46) | func (b *safeBuffer) Read(p []byte) (n int, err error) { method Close (line 60) | func (b *safeBuffer) Close() error { function TestRPCStream_Sequence (line 64) | func TestRPCStream_Sequence(t *testing.T) { function TestRPCStream_Concurrency (line 96) | func TestRPCStream_Concurrency(t *testing.T) { FILE: server/rpc_util.go type waitGroup (line 8) | type waitGroup struct method Add (line 22) | func (w *waitGroup) Add(i int) { method Done (line 29) | func (w *waitGroup) Done() { method Wait (line 36) | func (w *waitGroup) Wait() { function NewWaitGroup (line 16) | func NewWaitGroup(gWg *sync.WaitGroup) *waitGroup { FILE: server/server.go type Server (line 19) | type Server interface type Router (line 41) | type Router interface type Message (line 49) | type Message interface type Request (line 65) | type Request interface type Response (line 87) | type Response interface type Stream (line 100) | type Stream interface type Handler (line 120) | type Handler interface type Subscriber (line 130) | type Subscriber interface type Option (line 137) | type Option function DefaultOptions (line 155) | func DefaultOptions() Options { function Init (line 159) | func Init(opt ...Option) { function NewRouter (line 167) | func NewRouter() *router { function NewSubscriber (line 173) | func NewSubscriber(topic string, h interface{}, opts ...SubscriberOption... function NewHandler (line 186) | func NewHandler(h interface{}, opts ...HandlerOption) Handler { function Handle (line 192) | func Handle(h Handler) error { function Subscribe (line 198) | func Subscribe(s Subscriber) error { function Run (line 204) | func Run() error { function Start (line 217) | func Start() error { function Stop (line 224) | func Stop() error { function String (line 230) | func String() string { FILE: server/subscriber.go constant subSig (line 11) | subSig = "func(context.Context, interface{}) error" type handler (line 14) | type handler struct type subscriber (line 20) | type subscriber struct method Topic (line 161) | func (s *subscriber) Topic() string { method Subscriber (line 165) | func (s *subscriber) Subscriber() interface{} { method Endpoints (line 169) | func (s *subscriber) Endpoints() []*registry.Endpoint { method Options (line 173) | func (s *subscriber) Options() SubscriberOptions { function newSubscriber (line 30) | func newSubscriber(topic string, sub interface{}, opts ...SubscriberOpti... function validateSubscriber (line 107) | func validateSubscriber(sub Subscriber) error { FILE: server/wrapper.go type HandlerFunc (line 10) | type HandlerFunc type SubscriberFunc (line 15) | type SubscriberFunc type HandlerWrapper (line 18) | type HandlerWrapper type SubscriberWrapper (line 21) | type SubscriberWrapper type StreamWrapper (line 27) | type StreamWrapper FILE: service/group.go type Group (line 16) | type Group struct method Add (line 30) | func (g *Group) Add(svcs ...Service) { method Run (line 36) | func (g *Group) Run() error { method stopAll (line 76) | func (g *Group) stopAll() error { function NewGroup (line 22) | func NewGroup(svcs ...Service) *Group { FILE: service/options.go type Options (line 27) | type Options struct type Option (line 56) | type Option function newOptions (line 58) | func newOptions(opts ...Option) Options { function Broker (line 86) | func Broker(b broker.Broker) Option { function Cache (line 95) | func Cache(c cache.Cache) Option { function Cmd (line 101) | func Cmd(c cmd.Cmd) Option { function Client (line 108) | func Client(c client.Client) Option { function Context (line 116) | func Context(ctx context.Context) Option { function Handle (line 123) | func Handle(v interface{}) Option { function HandleSignal (line 134) | func HandleSignal(b bool) Option { function Profile (line 141) | func Profile(p profile.Profile) Option { function Server (line 148) | func Server(s server.Server) Option { function Store (line 155) | func Store(s store.Store) Option { function Model (line 162) | func Model(m model.Model) Option { function Registry (line 170) | func Registry(r registry.Registry) Option { function Tracer (line 182) | func Tracer(t trace.Tracer) Option { function Auth (line 190) | func Auth(a auth.Auth) Option { function Config (line 197) | func Config(c config.Config) Option { function Selector (line 204) | func Selector(s selector.Selector) Option { function Transport (line 212) | func Transport(t transport.Transport) Option { function Address (line 224) | func Address(addr string) Option { function Name (line 231) | func Name(n string) Option { function Version (line 238) | func Version(v string) Option { function Metadata (line 245) | func Metadata(md map[string]string) Option { function Flags (line 252) | func Flags(flags ...cli.Flag) Option { function Action (line 259) | func Action(a func(*cli.Context) error) Option { function RegisterTTL (line 266) | func RegisterTTL(t time.Duration) Option { function RegisterInterval (line 273) | func RegisterInterval(t time.Duration) Option { function WrapClient (line 282) | func WrapClient(w ...client.Wrapper) Option { function WrapCall (line 292) | func WrapCall(w ...client.CallWrapper) Option { function WrapHandler (line 299) | func WrapHandler(w ...server.HandlerWrapper) Option { function WrapSubscriber (line 313) | func WrapSubscriber(w ...server.SubscriberWrapper) Option { function AddListenOption (line 327) | func AddListenOption(option server.Option) Option { function BeforeStart (line 336) | func BeforeStart(fn func() error) Option { function BeforeStop (line 343) | func BeforeStop(fn func() error) Option { function AfterStart (line 350) | func AfterStart(fn func() error) Option { function AfterStop (line 357) | func AfterStop(fn func() error) Option { function Logger (line 364) | func Logger(l logger.Logger) Option { FILE: service/profile/profile.go type Profile (line 22) | type Profile struct function LocalProfile (line 32) | func LocalProfile() (Profile, error) { function NatsProfile (line 46) | func NatsProfile() (Profile, error) { function splitNatsAdressList (line 80) | func splitNatsAdressList(addr string) []string { FILE: service/service.go type Service (line 19) | type Service interface type serviceImpl (line 44) | type serviceImpl struct method Name (line 57) | func (s *serviceImpl) Name() string { method Init (line 64) | func (s *serviceImpl) Init(opts ...Option) { method Options (line 99) | func (s *serviceImpl) Options() Options { method Client (line 103) | func (s *serviceImpl) Client() client.Client { method Server (line 107) | func (s *serviceImpl) Server() server.Server { method Model (line 111) | func (s *serviceImpl) Model() model.Model { method String (line 116) | func (s *serviceImpl) String() string { method Start (line 120) | func (s *serviceImpl) Start() error { method Stop (line 140) | func (s *serviceImpl) Stop() error { method Handle (line 162) | func (s *serviceImpl) Handle(v interface{}, opts ...server.HandlerOpti... method Run (line 168) | func (s *serviceImpl) Run() (err error) { function New (line 51) | func New(opts ...Option) Service { FILE: store/file.go function NewFileStore (line 31) | func NewFileStore(opts ...Option) Store { type fileStore (line 39) | type fileStore struct method delete (line 65) | func (m *fileStore) delete(fd *fileHandle, key string) error { method init (line 75) | func (m *fileStore) init(opts ...Option) error { method getDB (line 103) | func (f *fileStore) getDB(database, table string) (*fileHandle, error) { method list (line 152) | func (m *fileStore) list(fd *fileHandle, limit, offset uint) []string { method get (line 206) | func (m *fileStore) get(fd *fileHandle, k string) (*Record, error) { method set (line 249) | func (m *fileStore) set(fd *fileHandle, r *Record) error { method Close (line 281) | func (f *fileStore) Close() error { method Init (line 291) | func (f *fileStore) Init(opts ...Option) error { method Delete (line 295) | func (m *fileStore) Delete(key string, opts ...DeleteOption) error { method Read (line 309) | func (m *fileStore) Read(key string, opts ...ReadOption) ([]*Record, e... method Write (line 355) | func (m *fileStore) Write(r *Record, opts ...WriteOption) error { method Options (line 391) | func (m *fileStore) Options() Options { method List (line 395) | func (m *fileStore) List(opts ...ListOption) ([]string, error) { method String (line 433) | func (m *fileStore) String() string { type fileHandle (line 48) | type fileHandle struct type record (line 54) | type record struct function key (line 61) | func key(database, table string) string { type dirOptionKey (line 437) | type dirOptionKey struct function DirOption (line 440) | func DirOption(dir string) Option { FILE: store/file_test.go function cleanup (line 15) | func cleanup(db string, s Store) { function TestFileStoreReInit (line 21) | func TestFileStoreReInit(t *testing.T) { function TestFileStoreBasic (line 30) | func TestFileStoreBasic(t *testing.T) { function TestFileStoreTable (line 36) | func TestFileStoreTable(t *testing.T) { function TestFileStoreDatabase (line 42) | func TestFileStoreDatabase(t *testing.T) { function TestFileStoreDatabaseTable (line 48) | func TestFileStoreDatabaseTable(t *testing.T) { function fileTest (line 54) | func fileTest(s Store, t *testing.T) { FILE: store/memory.go function NewMemoryStore (line 14) | func NewMemoryStore(opts ...Option) Store { type memoryStore (line 28) | type memoryStore struct method key (line 41) | func (m *memoryStore) key(prefix, key string) string { method prefix (line 45) | func (m *memoryStore) prefix(database, table string) string { method get (line 55) | func (m *memoryStore) get(prefix, key string) (*Record, error) { method set (line 91) | func (m *memoryStore) set(prefix string, r *Record) { method delete (line 117) | func (m *memoryStore) delete(prefix, key string) { method list (line 122) | func (m *memoryStore) list(prefix string, limit, offset uint) []string { method Close (line 147) | func (m *memoryStore) Close() error { method Init (line 152) | func (m *memoryStore) Init(opts ...Option) error { method String (line 159) | func (m *memoryStore) String() string { method Read (line 163) | func (m *memoryStore) Read(key string, opts ...ReadOption) ([]*Record,... method Write (line 222) | func (m *memoryStore) Write(r *Record, opts ...WriteOption) error { method Delete (line 260) | func (m *memoryStore) Delete(key string, opts ...DeleteOption) error { method Options (line 271) | func (m *memoryStore) Options() Options { method List (line 275) | func (m *memoryStore) List(opts ...ListOption) ([]string, error) { type storeRecord (line 34) | type storeRecord struct FILE: store/mysql/mysql.go type sqlStore (line 21) | type sqlStore struct method Init (line 32) | func (s *sqlStore) Init(opts ...store.Option) error { method Options (line 40) | func (s *sqlStore) Options() store.Options { method Close (line 44) | func (s *sqlStore) Close() error { method List (line 49) | func (s *sqlStore) List(opts ...store.ListOption) ([]string, error) { method Read (line 87) | func (s *sqlStore) Read(key string, opts ...store.ReadOption) ([]*stor... method Write (line 118) | func (s *sqlStore) Write(r *store.Record, opts ...store.WriteOption) e... method Delete (line 129) | func (s *sqlStore) Delete(key string, opts ...store.DeleteOption) error { method initDB (line 142) | func (s *sqlStore) initDB() error { method configure (line 182) | func (s *sqlStore) configure() error { method String (line 228) | func (s *sqlStore) String() string { function NewMysqlStore (line 233) | func NewMysqlStore(opts ...store.Option) store.Store { FILE: store/mysql/mysql_test.go function TestMain (line 20) | func TestMain(m *testing.M) { function TestWrite (line 32) | func TestWrite(t *testing.T) { function TestDelete (line 45) | func TestDelete(t *testing.T) { function TestRead (line 52) | func TestRead(t *testing.T) { function TestList (line 61) | func TestList(t *testing.T) { FILE: store/nats-js-kv/context.go function setStoreOption (line 10) | func setStoreOption(k, v interface{}) store.Option { FILE: store/nats-js-kv/helpers_test.go function testSetup (line 20) | func testSetup(ctx context.Context, t *testing.T, opts ...store.Option) ... function startNatsServer (line 57) | func startNatsServer(ctx context.Context, t *testing.T) string { function getFreeLocalhostAddress (line 84) | func getFreeLocalhostAddress() string { function natsServer (line 97) | func natsServer(ctx context.Context, t *testing.T, opts *nserver.Options) { function NewLogWrapper (line 151) | func NewLogWrapper() *LogWrapper { type LogWrapper (line 155) | type LogWrapper struct method Noticef (line 159) | func (l *LogWrapper) Noticef(_ string, _ ...interface{}) { method Warnf (line 163) | func (l *LogWrapper) Warnf(format string, v ...interface{}) { method Fatalf (line 168) | func (l *LogWrapper) Fatalf(format string, v ...interface{}) { method Errorf (line 173) | func (l *LogWrapper) Errorf(format string, v ...interface{}) { method Debugf (line 178) | func (l *LogWrapper) Debugf(_ string, _ ...interface{}) { method Tracef (line 182) | func (l *LogWrapper) Tracef(format string, v ...interface{}) { FILE: store/nats-js-kv/keys.go method NatsKey (line 9) | func (n *natsStore) NatsKey(table, microkey string) string { method MicroKey (line 14) | func (n *natsStore) MicroKey(table, natskey string) string { method MicroKeyFilter (line 20) | func (n *natsStore) MicroKeyFilter(table, natskey string, prefix, suffix... type Key (line 27) | type Key struct method NatsKey (line 56) | func (k *Key) NatsKey() string { method MicroKey (line 61) | func (k *Key) MicroKey() string { method Check (line 66) | func (k *Key) Check(table, prefix, suffix string) bool { method NewKey (line 37) | func (n *natsStore) NewKey(table string, plain, encoded string) *Key { function encode (line 82) | func encode(s string, alg string) string { function decode (line 91) | func decode(s string, alg string) string { function getKey (line 105) | func getKey(key, table string) string { function trimKey (line 113) | func trimKey(key, table string) string { FILE: store/nats-js-kv/nats.go type KeyValueEnvelope (line 22) | type KeyValueEnvelope struct type natsStore (line 28) | type natsStore struct method Init (line 73) | func (n *natsStore) Init(opts ...store.Option) error { method setOption (line 108) | func (n *natsStore) setOption(opts ...store.Option) { method Options (line 158) | func (n *natsStore) Options() store.Options { method Read (line 163) | func (n *natsStore) Read(key string, opts ...store.ReadOption) ([]*sto... method Write (line 209) | func (n *natsStore) Write(rec *store.Record, opts ...store.WriteOption... method Delete (line 249) | func (n *natsStore) Delete(key string, opts ...store.DeleteOption) err... method List (line 291) | func (n *natsStore) List(opts ...store.ListOption) ([]string, error) { method Close (line 323) | func (n *natsStore) Close() error { method String (line 329) | func (n *natsStore) String() string { method initConn (line 334) | func (n *natsStore) initConn() error { method hasConn (line 351) | func (n *natsStore) hasConn() bool { method mustGetBucketByName (line 359) | func (n *natsStore) mustGetBucketByName(name string) (nats.KeyValue, e... method mustGetBucket (line 369) | func (n *natsStore) mustGetBucket(kv *nats.KeyValueConfig) (nats.KeyVa... method getRecord (line 392) | func (n *natsStore) getRecord(bucket nats.KeyValue, key string) (*stor... method natsKeys (line 416) | func (n *natsStore) natsKeys(bucket nats.KeyValue, table, key string, ... method microKeys (line 434) | func (n *natsStore) microKeys(bucket nats.KeyValue, table, prefix, suf... method getKeys (line 440) | func (n *natsStore) getKeys(bucket nats.KeyValue, table string, prefix... function NewStore (line 48) | func NewStore(opts ...store.Option) store.Store { function enforceLimits (line 465) | func enforceLimits[V any](recs []V, limit, offset uint) []V { FILE: store/nats-js-kv/nats_test.go function TestNats (line 15) | func TestNats(t *testing.T) { function TestOptions (line 51) | func TestOptions(t *testing.T) { function TestTTL (line 88) | func TestTTL(t *testing.T) { function TestMetaData (line 121) | func TestMetaData(t *testing.T) { function TestDelete (line 155) | func TestDelete(t *testing.T) { function TestList (line 180) | func TestList(t *testing.T) { function TestDeleteBucket (line 256) | func TestDeleteBucket(t *testing.T) { function TestEnforceLimits (line 290) | func TestEnforceLimits(t *testing.T) { function basicTest (line 313) | func basicTest(t *testing.T, s store.Store) error { FILE: store/nats-js-kv/options.go type natsOptionsKey (line 11) | type natsOptionsKey struct type jsOptionsKey (line 12) | type jsOptionsKey struct type kvOptionsKey (line 13) | type kvOptionsKey struct type ttlOptionsKey (line 14) | type ttlOptionsKey struct type memoryOptionsKey (line 15) | type memoryOptionsKey struct type descriptionOptionsKey (line 16) | type descriptionOptionsKey struct type keyEncodeOptionsKey (line 17) | type keyEncodeOptionsKey struct function NatsOptions (line 20) | func NatsOptions(opts nats.Options) store.Option { function JetStreamOptions (line 25) | func JetStreamOptions(opts ...nats.JSOpt) store.Option { function KeyValueOptions (line 31) | func KeyValueOptions(cfg ...*nats.KeyValueConfig) store.Option { function DefaultTTL (line 43) | func DefaultTTL(ttl time.Duration) store.Option { function DefaultMemory (line 54) | func DefaultMemory() store.Option { function DefaultDescription (line 61) | func DefaultDescription(text string) store.Option { function EncodeKeys (line 68) | func EncodeKeys() store.Option { function DeleteBucket (line 79) | func DeleteBucket() store.DeleteOption { FILE: store/nats-js-kv/test_data.go type test (line 5) | type test struct FILE: store/noop.go type noopStore (line 3) | type noopStore struct method Init (line 5) | func (n *noopStore) Init(opts ...Option) error { method Options (line 9) | func (n *noopStore) Options() Options { method String (line 13) | func (n *noopStore) String() string { method Read (line 17) | func (n *noopStore) Read(key string, opts ...ReadOption) ([]*Record, e... method Write (line 21) | func (n *noopStore) Write(r *Record, opts ...WriteOption) error { method Delete (line 25) | func (n *noopStore) Delete(key string, opts ...DeleteOption) error { method List (line 29) | func (n *noopStore) List(opts ...ListOption) ([]string, error) { method Close (line 33) | func (n *noopStore) Close() error { function NewNoopStore (line 37) | func NewNoopStore(opts ...Option) Store { FILE: store/options.go type Options (line 12) | type Options struct type Option (line 30) | type Option function Nodes (line 35) | func Nodes(a ...string) Option { function Database (line 42) | func Database(db string) Option { function Table (line 48) | func Table(t string) Option { function WithContext (line 55) | func WithContext(c context.Context) Option { function WithClient (line 62) | func WithClient(c client.Client) Option { function WithLogger (line 69) | func WithLogger(l logger.Logger) Option { type ReadOptions (line 76) | type ReadOptions struct type ReadOption (line 89) | type ReadOption function ReadFrom (line 92) | func ReadFrom(database, table string) ReadOption { function ReadPrefix (line 100) | func ReadPrefix() ReadOption { function ReadSuffix (line 107) | func ReadSuffix() ReadOption { function ReadLimit (line 114) | func ReadLimit(l uint) ReadOption { function ReadOffset (line 121) | func ReadOffset(o uint) ReadOption { type WriteOptions (line 129) | type WriteOptions struct type WriteOption (line 138) | type WriteOption function WriteTo (line 141) | func WriteTo(database, table string) WriteOption { function WriteExpiry (line 149) | func WriteExpiry(t time.Time) WriteOption { function WriteTTL (line 156) | func WriteTTL(d time.Duration) WriteOption { type DeleteOptions (line 163) | type DeleteOptions struct type DeleteOption (line 168) | type DeleteOption function DeleteFrom (line 171) | func DeleteFrom(database, table string) DeleteOption { type ListOptions (line 179) | type ListOptions struct type ListOption (line 193) | type ListOption function ListFrom (line 196) | func ListFrom(database, table string) ListOption { function ListPrefix (line 204) | func ListPrefix(p string) ListOption { function ListSuffix (line 211) | func ListSuffix(s string) ListOption { function ListLimit (line 218) | func ListLimit(l uint) ListOption { function ListOffset (line 225) | func ListOffset(o uint) ListOption { FILE: store/postgres/metadata.go type Metadata (line 26) | type Metadata method Scan (line 29) | func (m *Metadata) Scan(src interface{}) error { method Value (line 50) | func (m Metadata) Value() (driver.Value, error) { function toMetadata (line 55) | func toMetadata(m *Metadata) map[string]interface{} { FILE: store/postgres/pgx/db.go type DB (line 5) | type DB struct FILE: store/postgres/pgx/metadata.go type Metadata (line 9) | type Metadata method Scan (line 12) | func (m *Metadata) Scan(src interface{}) error { method Value (line 33) | func (m *Metadata) Value() (driver.Value, error) { function toMetadata (line 38) | func toMetadata(m *Metadata) map[string]interface{} { FILE: store/postgres/pgx/pgx.go constant defaultDatabase (line 33) | defaultDatabase = "micro" constant defaultTable (line 34) | defaultTable = "micro" type sqlStore (line 36) | type sqlStore struct method getDB (line 44) | func (s *sqlStore) getDB(database, table string) (string, string) { method db (line 68) | func (s *sqlStore) db(database, table string) (*pgxpool.Pool, Queries,... method initTable (line 91) | func (s *sqlStore) initTable(database, table string) error { method initDB (line 114) | func (s *sqlStore) initDB(database string) error { method Close (line 165) | func (s *sqlStore) Close() error { method Init (line 172) | func (s *sqlStore) Init(opts ...store.Option) error { method List (line 181) | func (s *sqlStore) List(opts ...store.ListOption) ([]string, error) { method rowToRecord (line 230) | func (s *sqlStore) rowToRecord(row pgx.Row) (*store.Record, error) { method rowsToRecords (line 252) | func (s *sqlStore) rowsToRecords(rows pgx.Rows) ([]*store.Record, erro... method Read (line 275) | func (s *sqlStore) Read(key string, opts ...store.ReadOption) ([]*stor... method Write (line 327) | func (s *sqlStore) Write(r *store.Record, opts ...store.WriteOption) e... method Delete (line 356) | func (s *sqlStore) Delete(key string, opts ...store.DeleteOption) error { method Options (line 371) | func (s *sqlStore) Options() store.Options { method String (line 375) | func (s *sqlStore) String() string { method expiryLoop (line 401) | func (s *sqlStore) expiryLoop() { method expireRows (line 411) | func (s *sqlStore) expireRows() error { function NewStore (line 380) | func NewStore(opts ...store.Option) store.Store { FILE: store/postgres/pgx/pgx_test.go type testObj (line 15) | type testObj struct function TestPostgres (line 20) | func TestPostgres(t *testing.T) { FILE: store/postgres/pgx/queries.go type Queries (line 5) | type Queries struct function NewQueries (line 23) | func NewQueries(database, table string) Queries { FILE: store/postgres/pgx/templates.go constant createSchema (line 5) | createSchema = "CREATE SCHEMA IF NOT EXISTS %s" constant createTable (line 6) | createTable = `CREATE TABLE IF NOT EXISTS %s.%s constant createMDIndex (line 13) | createMDIndex = `create index if not exists idx_md_%s ON %s.%s USING GIN... constant createExpiryIndex (line 14) | createExpiryIndex = `create index if not exists idx_expiry_%s on %s.%s (... constant list (line 18) | list = "SELECT key FROM %s.%s WHERE key LIKE $1 and (expiry < now() ... constant readOne (line 19) | readOne = "SELECT key, value, metadata, expiry FROM %s.%s WHERE key = $... constant readMany (line 20) | readMany = "SELECT key, value, metadata, expiry FROM %s.%s WHERE key LIK... constant write (line 21) | write = `INSERT INTO %s.%s(key, value, metadata, expiry) constant deleteRecord (line 26) | deleteRecord = "DELETE FROM %s.%s WHERE key = $1" constant deleteExpired (line 27) | deleteExpired = "DELETE FROM %s.%s WHERE expiry < now()" constant limit (line 32) | limit = " LIMIT $2 OFFSET $3" constant asc (line 33) | asc = " ORDER BY key ASC" constant desc (line 34) | desc = " ORDER BY key DESC" FILE: store/postgres/postgres.go type sqlStore (line 66) | type sqlStore struct method getDB (line 75) | func (s *sqlStore) getDB(database, table string) (string, string) { method createDB (line 101) | func (s *sqlStore) createDB(database, table string) error { method db (line 120) | func (s *sqlStore) db() (*sql.DB, error) { method initDB (line 166) | func (s *sqlStore) initDB(database, table string) error { method configure (line 215) | func (s *sqlStore) configure() error { method prepare (line 254) | func (s *sqlStore) prepare(database, table, query string) (*sql.Stmt, ... method Close (line 276) | func (s *sqlStore) Close() error { method Init (line 283) | func (s *sqlStore) Init(opts ...store.Option) error { method List (line 292) | func (s *sqlStore) List(opts ...store.ListOption) ([]string, error) { method rowToRecord (line 356) | func (s *sqlStore) rowToRecord(row *sql.Row) (*store.Record, error) { method rowsToRecords (line 383) | func (s *sqlStore) rowsToRecords(rows *sql.Rows) ([]*store.Record, err... method Read (line 414) | func (s *sqlStore) Read(key string, opts ...store.ReadOption) ([]*stor... method read (line 445) | func (s *sqlStore) read(key string, options store.ReadOptions) ([]*sto... method Write (line 501) | func (s *sqlStore) Write(r *store.Record, opts ...store.WriteOption) e... method Delete (line 542) | func (s *sqlStore) Delete(key string, opts ...store.DeleteOption) error { method Options (line 572) | func (s *sqlStore) Options() store.Options { method String (line 576) | func (s *sqlStore) String() string { method expiryLoop (line 608) | func (s *sqlStore) expiryLoop() { method expireRows (line 615) | func (s *sqlStore) expireRows() error { function isBadConnError (line 140) | func isBadConnError(err error) bool { function NewStore (line 581) | func NewStore(opts ...store.Option) store.Store { FILE: store/postgres/postgres_test.go type testObj (line 14) | type testObj struct function TestPostgres (line 19) | func TestPostgres(t *testing.T) { FILE: store/store.go type Store (line 20) | type Store interface type Record (line 40) | type Record struct method Encode (line 64) | func (r *Record) Encode(v interface{}) error { method Decode (line 74) | func (r *Record) Decode(v interface{}) error { function NewStore (line 51) | func NewStore(opts ...Option) Store { function NewRecord (line 55) | func NewRecord(key string, val interface{}) *Record { function Read (line 79) | func Read(key string, opts ...ReadOption) ([]*Record, error) { function Write (line 85) | func Write(r *Record) error { function Delete (line 90) | func Delete(key string) error { function List (line 95) | func List(opts ...ListOption) ([]string, error) { FILE: transport/context.go type netListener (line 7) | type netListener struct function getNetListener (line 10) | func getNetListener(o *ListenOptions) net.Listener { FILE: transport/grpc/grpc.go type grpcTransport (line 20) | type grpcTransport struct method Dial (line 92) | func (t *grpcTransport) Dial(addr string, opts ...transport.DialOption... method Listen (line 138) | func (t *grpcTransport) Listen(addr string, opts ...transport.ListenOp... method Init (line 158) | func (t *grpcTransport) Init(opts ...transport.Option) error { method Options (line 165) | func (t *grpcTransport) Options() transport.Options { method String (line 169) | func (t *grpcTransport) String() string { type grpcTransportListener (line 24) | type grpcTransportListener struct method Addr (line 55) | func (t *grpcTransportListener) Addr() string { method Close (line 59) | func (t *grpcTransportListener) Close() error { method Accept (line 63) | func (t *grpcTransportListener) Accept(fn func(transport.Socket)) error { function init (line 30) | func init() { function getTLSConfig (line 34) | func getTLSConfig(addr string) (*tls.Config, error) { function NewTransport (line 173) | func NewTransport(opts ...transport.Option) transport.Transport { FILE: transport/grpc/grpc_test.go function expectedPort (line 10) | func expectedPort(t *testing.T, expected string, lsn transport.Listener) { function TestGRPCTransportCommunication (line 47) | func TestGRPCTransportCommunication(t *testing.T) { FILE: transport/grpc/handler.go type microTransport (line 14) | type microTransport struct method Stream (line 19) | func (m *microTransport) Stream(ts pb.Transport_StreamServer) (err err... FILE: transport/grpc/proto/transport.pb.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type Message (line 23) | type Message struct method Reset (line 32) | func (x *Message) Reset() { method String (line 41) | func (x *Message) String() string { method ProtoMessage (line 45) | func (*Message) ProtoMessage() {} method ProtoReflect (line 47) | func (x *Message) ProtoReflect() protoreflect.Message { method Descriptor (line 60) | func (*Message) Descriptor() ([]byte, []int) { method GetHeader (line 64) | func (x *Message) GetHeader() map[string]string { method GetBody (line 71) | func (x *Message) GetBody() []byte { function file_proto_transport_proto_rawDescGZIP (line 109) | func file_proto_transport_proto_rawDescGZIP() []byte { function init (line 132) | func init() { file_proto_transport_proto_init() } function file_proto_transport_proto_init (line 133) | func file_proto_transport_proto_init() { FILE: transport/grpc/proto/transport.pb.micro.go type TransportService (line 30) | type TransportService interface type transportService (line 34) | type transportService struct method Stream (line 46) | func (c *transportService) Stream(ctx context.Context, opts ...client.... function NewTransportService (line 39) | func NewTransportService(name string, c client.Client) TransportService { type Transport_StreamService (line 55) | type Transport_StreamService interface type transportServiceStream (line 65) | type transportServiceStream struct method CloseSend (line 69) | func (x *transportServiceStream) CloseSend() error { method Close (line 73) | func (x *transportServiceStream) Close() error { method Context (line 77) | func (x *transportServiceStream) Context() context.Context { method SendMsg (line 81) | func (x *transportServiceStream) SendMsg(m interface{}) error { method RecvMsg (line 85) | func (x *transportServiceStream) RecvMsg(m interface{}) error { method Send (line 89) | func (x *transportServiceStream) Send(m *Message) error { method Recv (line 93) | func (x *transportServiceStream) Recv() (*Message, error) { type TransportHandler (line 104) | type TransportHandler interface function RegisterTransportHandler (line 108) | func RegisterTransportHandler(s server.Server, hdlr TransportHandler, op... type transportHandler (line 119) | type transportHandler struct method Stream (line 123) | func (h *transportHandler) Stream(ctx context.Context, stream server.S... type Transport_StreamStream (line 127) | type Transport_StreamStream interface type transportStreamStream (line 136) | type transportStreamStream struct method Close (line 140) | func (x *transportStreamStream) Close() error { method Context (line 144) | func (x *transportStreamStream) Context() context.Context { method SendMsg (line 148) | func (x *transportStreamStream) SendMsg(m interface{}) error { method RecvMsg (line 152) | func (x *transportStreamStream) RecvMsg(m interface{}) error { method Send (line 156) | func (x *transportStreamStream) Send(m *Message) error { method Recv (line 160) | func (x *transportStreamStream) Recv() (*Message, error) { FILE: transport/grpc/proto/transport_grpc.pb.go constant _ (line 19) | _ = grpc.SupportPackageIsVersion7 constant Transport_Stream_FullMethodName (line 22) | Transport_Stream_FullMethodName = "/go.micro.transport.grpc.Transport/St... type TransportClient (line 28) | type TransportClient interface type transportClient (line 32) | type transportClient struct method Stream (line 40) | func (c *transportClient) Stream(ctx context.Context, opts ...grpc.Cal... function NewTransportClient (line 36) | func NewTransportClient(cc grpc.ClientConnInterface) TransportClient { type Transport_StreamClient (line 49) | type Transport_StreamClient interface type transportStreamClient (line 55) | type transportStreamClient struct method Send (line 59) | func (x *transportStreamClient) Send(m *Message) error { method Recv (line 63) | func (x *transportStreamClient) Recv() (*Message, error) { type TransportServer (line 74) | type TransportServer interface type UnimplementedTransportServer (line 79) | type UnimplementedTransportServer struct method Stream (line 82) | func (UnimplementedTransportServer) Stream(Transport_StreamServer) err... type UnsafeTransportServer (line 89) | type UnsafeTransportServer interface function RegisterTransportServer (line 93) | func RegisterTransportServer(s grpc.ServiceRegistrar, srv TransportServe... function _Transport_Stream_Handler (line 97) | func _Transport_Stream_Handler(srv interface{}, stream grpc.ServerStream... type Transport_StreamServer (line 101) | type Transport_StreamServer interface type transportStreamServer (line 107) | type transportStreamServer struct method Send (line 111) | func (x *transportStreamServer) Send(m *Message) error { method Recv (line 115) | func (x *transportStreamServer) Recv() (*Message, error) { FILE: transport/grpc/socket.go type grpcTransportClient (line 9) | type grpcTransportClient struct method Local (line 23) | func (g *grpcTransportClient) Local() string { method Remote (line 27) | func (g *grpcTransportClient) Remote() string { method Recv (line 31) | func (g *grpcTransportClient) Recv(m *transport.Message) error { method Send (line 46) | func (g *grpcTransportClient) Send(m *transport.Message) error { method Close (line 57) | func (g *grpcTransportClient) Close() error { type grpcTransportSocket (line 17) | type grpcTransportSocket struct method Local (line 61) | func (g *grpcTransportSocket) Local() string { method Remote (line 65) | func (g *grpcTransportSocket) Remote() string { method Recv (line 69) | func (g *grpcTransportSocket) Recv(m *transport.Message) error { method Send (line 84) | func (g *grpcTransportSocket) Send(m *transport.Message) error { method Close (line 95) | func (g *grpcTransportSocket) Close() error { FILE: transport/headers/headers.go constant Message (line 6) | Message = "Micro-Topic" constant Request (line 8) | Request = "Micro-Service" constant Error (line 10) | Error = "Micro-Error" constant Endpoint (line 12) | Endpoint = "Micro-Endpoint" constant Method (line 14) | Method = "Micro-Method" constant ID (line 16) | ID = "Micro-ID" constant Prefix (line 18) | Prefix = "Micro-" constant Namespace (line 20) | Namespace = "Micro-Namespace" constant Protocol (line 22) | Protocol = "Micro-Protocol" constant Target (line 24) | Target = "Micro-Target" constant ContentType (line 26) | ContentType = "Content-Type" constant SpanID (line 28) | SpanID = "Micro-Span-ID" constant TraceIDKey (line 30) | TraceIDKey = "Micro-Trace-ID" constant Stream (line 32) | Stream = "Micro-Stream" FILE: transport/http2_buf_pool.go function getHTTP2BufPool (line 11) | func getHTTP2BufPool() *sync.Pool { FILE: transport/http_client.go type httpTransportClient (line 19) | type httpTransportClient struct method Local (line 41) | func (h *httpTransportClient) Local() string { method Remote (line 45) | func (h *httpTransportClient) Remote() string { method Send (line 49) | func (h *httpTransportClient) Send(m *Message) error { method Recv (line 106) | func (h *httpTransportClient) Recv(msg *Message) (err error) { method Close (line 189) | func (h *httpTransportClient) Close() error { FILE: transport/http_client_test.go function TestHttpTransportClient (line 10) | func TestHttpTransportClient(t *testing.T) { function echoHttpTransportClient (line 52) | func echoHttpTransportClient(addr string) (*httpTransportListener, *http... function echoHandler (line 66) | func echoHandler(sock Socket) { FILE: transport/http_listener.go type httpTransportListener (line 17) | type httpTransportListener struct method Addr (line 22) | func (h *httpTransportListener) Addr() string { method Close (line 26) | func (h *httpTransportListener) Close() error { method Accept (line 30) | func (h *httpTransportListener) Accept(fn func(Socket)) error { method newHandler (line 63) | func (h *httpTransportListener) newHandler(serveConn func(Socket)) fun... FILE: transport/http_proxy.go constant proxyAuthHeader (line 15) | proxyAuthHeader = "Proxy-Authorization" function getURL (line 18) | func getURL(addr string) (*url.URL, error) { type pbuffer (line 29) | type pbuffer struct method Read (line 34) | func (p *pbuffer) Read(b []byte) (int, error) { function proxyDial (line 38) | func proxyDial(conn net.Conn, addr string, proxyURL *url.URL) (_ net.Con... function newConn (line 88) | func newConn(dial func(string) (net.Conn, error)) func(string) (net.Conn... FILE: transport/http_socket.go type httpTransportSocket (line 15) | type httpTransportSocket struct method Local (line 39) | func (h *httpTransportSocket) Local() string { method Remote (line 43) | func (h *httpTransportSocket) Remote() string { method Recv (line 47) | func (h *httpTransportSocket) Recv(msg *Message) error { method Send (line 63) | func (h *httpTransportSocket) Send(msg *Message) error { method Close (line 75) | func (h *httpTransportSocket) Close() error { method error (line 95) | func (h *httpTransportSocket) error(m *Message) error { method recvHTTP1 (line 118) | func (h *httpTransportSocket) recvHTTP1(msg *Message) error { method recvHTTP2 (line 167) | func (h *httpTransportSocket) recvHTTP2(msg *Message) error { method sendHTTP1 (line 215) | func (h *httpTransportSocket) sendHTTP1(msg *Message) error { method sendHTTP2 (line 247) | func (h *httpTransportSocket) sendHTTP2(msg *Message) error { FILE: transport/http_transport.go type httpTransport (line 15) | type httpTransport struct method Init (line 32) | func (h *httpTransport) Init(opts ...Option) error { method Dial (line 40) | func (h *httpTransport) Dial(addr string, opts ...DialOption) (Client,... method Listen (line 89) | func (h *httpTransport) Listen(addr string, opts ...ListenOption) (Lis... method Options (line 164) | func (h *httpTransport) Options() Options { method String (line 168) | func (h *httpTransport) String() string { function NewHTTPTransport (line 19) | func NewHTTPTransport(opts ...Option) *httpTransport { FILE: transport/http_transport_test.go function expectedPort (line 12) | func expectedPort(t *testing.T, expected string, lsn Listener) { function TestHTTPTransportCommunication (line 24) | func TestHTTPTransportCommunication(t *testing.T) { function TestHTTPTransportError (line 90) | func TestHTTPTransportError(t *testing.T) { function TestHTTPTransportTimeout (line 160) | func TestHTTPTransportTimeout(t *testing.T) { function TestHTTPTransportCloseWhenRecv (line 225) | func TestHTTPTransportCloseWhenRecv(t *testing.T) { function TestHTTPTransportMultipleSendWhenRecv (line 297) | func TestHTTPTransportMultipleSendWhenRecv(t *testing.T) { function TestHttpTransportListenerNetListener (line 381) | func TestHttpTransportListenerNetListener(t *testing.T) { FILE: transport/memory.go type memorySocket (line 18) | type memorySocket struct method Recv (line 63) | func (ms *memorySocket) Recv(m *Message) error { method Local (line 95) | func (ms *memorySocket) Local() string { method Remote (line 99) | func (ms *memorySocket) Remote() string { method Send (line 103) | func (ms *memorySocket) Send(m *Message) error { method Close (line 135) | func (ms *memorySocket) Close() error { type memoryClient (line 42) | type memoryClient struct type memoryListener (line 47) | type memoryListener struct method Addr (line 145) | func (m *memoryListener) Addr() string { method Close (line 149) | func (m *memoryListener) Close() error { method Accept (line 161) | func (m *memoryListener) Accept(fn func(Socket)) error { type memoryTransport (line 57) | type memoryTransport struct method Dial (line 182) | func (m *memoryTransport) Dial(addr string, opts ...DialOption) (Clien... method Listen (line 225) | func (m *memoryTransport) Listen(addr string, opts ...ListenOption) (L... method Init (line 271) | func (m *memoryTransport) Init(opts ...Option) error { method Options (line 278) | func (m *memoryTransport) Options() Options { method String (line 282) | func (m *memoryTransport) String() string { function NewMemoryTransport (line 286) | func NewMemoryTransport(opts ...Option) Transport { FILE: transport/memory_test.go function TestMemoryTransport (line 8) | func TestMemoryTransport(t *testing.T) { function TestListener (line 64) | func TestListener(t *testing.T) { FILE: transport/nats/nats.go type ntport (line 18) | type ntport struct method Dial (line 388) | func (n *ntport) Dial(addr string, dialOpts ...transport.DialOption) (... method Listen (line 461) | func (n *ntport) Listen(addr string, listenOpts ...transport.ListenOpt... method Init (line 502) | func (n *ntport) Init(opts ...transport.Option) error { method Options (line 507) | func (n *ntport) Options() transport.Options { method String (line 511) | func (n *ntport) String() string { type ntportClient (line 28) | type ntportClient struct method Local (line 156) | func (n *ntportClient) Local() string { method Remote (line 160) | func (n *ntportClient) Remote() string { method Send (line 164) | func (n *ntportClient) Send(m *transport.Message) error { method Recv (line 190) | func (n *ntportClient) Recv(m *transport.Message) error { method Close (line 210) | func (n *ntportClient) Close() error { type ntportSocket (line 40) | type ntportSocket struct method Local (line 223) | func (n *ntportSocket) Local() string { method Remote (line 227) | func (n *ntportSocket) Remote() string { method Recv (line 231) | func (n *ntportSocket) Recv(m *transport.Message) error { method Send (line 270) | func (n *ntportSocket) Send(m *transport.Message) error { method Close (line 296) | func (n *ntportSocket) Close() error { type ntportListener (line 55) | type ntportListener struct method Addr (line 306) | func (n *ntportListener) Addr() string { method Close (line 310) | func (n *ntportListener) Close() error { method Accept (line 316) | func (n *ntportListener) Accept(fn func(transport.Socket)) error { function configure (line 70) | func configure(n *ntport, opts ...transport.Option) { function setAddrs (line 139) | func setAddrs(addrs []string) []string { function NewTransport (line 515) | func NewTransport(opts ...transport.Option) transport.Transport { FILE: transport/nats/nats_test.go function TestInitAddrs (line 44) | func TestInitAddrs(t *testing.T) { function TestListenAddr (line 99) | func TestListenAddr(t *testing.T) { FILE: transport/nats/options.go type optionsKey (line 11) | type optionsKey struct type poolSizeKey (line 12) | type poolSizeKey struct type poolIdleTimeoutKey (line 13) | type poolIdleTimeoutKey struct function Options (line 17) | func Options(nopts nats.Options) transport.Option { function PoolSize (line 29) | func PoolSize(size int) transport.Option { function PoolIdleTimeout (line 41) | func PoolIdleTimeout(timeout time.Duration) transport.Option { FILE: transport/nats/pool.go type connectionPool (line 19) | type connectionPool struct method Get (line 54) | func (p *connectionPool) Get() (*pooledConnection, error) { method Put (line 80) | func (p *connectionPool) Put(conn *pooledConnection) error { method Close (line 106) | func (p *connectionPool) Close() error { method createConnection (line 126) | func (p *connectionPool) createConnection() (*pooledConnection, error) { type pooledConnection (line 29) | type pooledConnection struct method isValid (line 140) | func (pc *pooledConnection) isValid() bool { method isExpired (line 153) | func (pc *pooledConnection) isExpired(timeout time.Duration) bool { method close (line 165) | func (pc *pooledConnection) close() error { method Conn (line 177) | func (pc *pooledConnection) Conn() *natsp.Conn { method updateLastUsed (line 184) | func (pc *pooledConnection) updateLastUsed() { function newConnectionPool (line 37) | func newConnectionPool(size int, factory func() (*natsp.Conn, error)) (*... FILE: transport/nats/pool_test.go function TestTransportConnectionPool_GetPut (line 11) | func TestTransportConnectionPool_GetPut(t *testing.T) { function TestTransportConnectionPool_Concurrent (line 50) | func TestTransportConnectionPool_Concurrent(t *testing.T) { function TestTransportConnectionPool_Close (line 95) | func TestTransportConnectionPool_Close(t *testing.T) { function TestTransportPoolConfiguration (line 126) | func TestTransportPoolConfiguration(t *testing.T) { function TestTransportDefaultSingleConnection (line 154) | func TestTransportDefaultSingleConnection(t *testing.T) { FILE: transport/options.go type Options (line 17) | type Options struct type DialOptions (line 41) | type DialOptions struct type ListenOptions (line 59) | type ListenOptions struct function Addrs (line 69) | func Addrs(addrs ...string) Option { function Codec (line 77) | func Codec(c codec.Marshaler) Option { function Timeout (line 84) | func Timeout(t time.Duration) Option { function Secure (line 92) | func Secure(b bool) Option { function TLSConfig (line 99) | func TLSConfig(t *tls.Config) Option { function WithStream (line 106) | func WithStream() DialOption { function WithTimeout (line 112) | func WithTimeout(d time.Duration) DialOption { function WithConnClose (line 119) | func WithConnClose() DialOption { function WithInsecureSkipVerify (line 125) | func WithInsecureSkipVerify(b bool) DialOption { function Logger (line 132) | func Logger(l logger.Logger) Option { function BuffSizeH2 (line 140) | func BuffSizeH2(size int) Option { function NetListener (line 148) | func NetListener(customListener net.Listener) ListenOption { FILE: transport/transport.go type Transport (line 11) | type Transport interface type Message (line 20) | type Message struct type Socket (line 25) | type Socket interface type Client (line 33) | type Client interface type Listener (line 37) | type Listener interface type Option (line 43) | type Option type DialOption (line 45) | type DialOption type ListenOption (line 47) | type ListenOption FILE: web/options.go type Options (line 16) | type Options struct function newOptions (line 63) | func newOptions(opts ...Option) Options { function Name (line 90) | func Name(n string) Option { function Icon (line 97) | func Icon(ico string) Option { function Id (line 108) | func Id(id string) Option { function Version (line 115) | func Version(v string) Option { function Metadata (line 122) | func Metadata(md map[string]string) Option { function Address (line 129) | func Address(a string) Option { function Advertise (line 136) | func Advertise(a string) Option { function Context (line 145) | func Context(ctx context.Context) Option { function Registry (line 152) | func Registry(r registry.Registry) Option { function RegisterTTL (line 159) | func RegisterTTL(t time.Duration) Option { function RegisterInterval (line 166) | func RegisterInterval(t time.Duration) Option { function Handler (line 173) | func Handler(h http.Handler) Option { function Server (line 180) | func Server(srv *http.Server) Option { function MicroService (line 187) | func MicroService(s micro.Service) Option { function Flags (line 194) | func Flags(flags ...cli.Flag) Option { function Action (line 201) | func Action(a func(*cli.Context)) Option { function BeforeStart (line 208) | func BeforeStart(fn func() error) Option { function BeforeStop (line 215) | func BeforeStop(fn func() error) Option { function AfterStart (line 222) | func AfterStart(fn func() error) Option { function AfterStop (line 229) | func AfterStop(fn func() error) Option { function Secure (line 237) | func Secure(b bool) Option { function TLSConfig (line 244) | func TLSConfig(t *tls.Config) Option { function StaticDir (line 251) | func StaticDir(d string) Option { function RegisterCheck (line 258) | func RegisterCheck(fn func(context.Context) error) Option { function HandleSignal (line 267) | func HandleSignal(b bool) Option { function Logger (line 274) | func Logger(l logger.Logger) Option { FILE: web/service.go type service (line 27) | type service struct method genSrv (line 53) | func (s *service) genSrv() *registry.Service { method run (line 100) | func (s *service) run() { method register (line 121) | func (s *service) register() error { method deregister (line 171) | func (s *service) deregister() error { method start (line 188) | func (s *service) start() error { method stop (line 272) | func (s *service) stop() error { method Client (line 305) | func (s *service) Client() *http.Client { method Handle (line 314) | func (s *service) Handle(pattern string, handler http.Handler) { method HandleFunc (line 345) | func (s *service) HandleFunc(pattern string, handler func(http.Respons... method Init (line 375) | func (s *service) Init(opts ...Option) error { method Start (line 454) | func (s *service) Start() error { method Stop (line 469) | func (s *service) Stop() error { method Run (line 480) | func (s *service) Run() error { method Options (line 536) | func (s *service) Options() Options { method listen (line 540) | func (s *service) listen(network, addr string) (net.Listener, error) { function newService (line 40) | func newService(opts ...Option) Service { FILE: web/service_test.go function TestService (line 17) | func TestService(t *testing.T) { function TestOptions (line 159) | func TestOptions(t *testing.T) { function eventually (line 215) | func eventually(pass func() bool, fail func(...interface{})) { function TestTLS (line 234) | func TestTLS(t *testing.T) { FILE: web/sse.go type SSEClient (line 16) | type SSEClient struct type SSEBroadcaster (line 24) | type SSEBroadcaster struct method Start (line 87) | func (b *SSEBroadcaster) Start() error { method Stop (line 112) | func (b *SSEBroadcaster) Stop() { method run (line 124) | func (b *SSEBroadcaster) run() { method subscribeToTopic (line 165) | func (b *SSEBroadcaster) subscribeToTopic(topic string) error { method Broadcast (line 187) | func (b *SSEBroadcaster) Broadcast(data []byte) { method BroadcastEvent (line 196) | func (b *SSEBroadcaster) BroadcastEvent(eventType string, data interfa... method BroadcastHTML (line 213) | func (b *SSEBroadcaster) BroadcastHTML(eventType string, html string) { method ClientCount (line 220) | func (b *SSEBroadcaster) ClientCount() int { method Handler (line 227) | func (b *SSEBroadcaster) Handler() http.HandlerFunc { method GinHandler (line 293) | func (b *SSEBroadcaster) GinHandler() interface{} { type SSEEvent (line 38) | type SSEEvent struct type SSEOption (line 45) | type SSEOption function WithStream (line 48) | func WithStream(stream events.Stream) SSEOption { function WithTopics (line 55) | func WithTopics(topics ...string) SSEOption { function WithSSELogger (line 62) | func WithSSELogger(logger log.Logger) SSEOption { function NewSSEBroadcaster (line 69) | func NewSSEBroadcaster(opts ...SSEOption) *SSEBroadcaster { FILE: web/sse_test.go function TestSSEBroadcaster_Basic (line 13) | func TestSSEBroadcaster_Basic(t *testing.T) { function TestSSEBroadcaster_BroadcastEvent (line 48) | func TestSSEBroadcaster_BroadcastEvent(t *testing.T) { function TestSSEBroadcaster_ClientCount (line 102) | func TestSSEBroadcaster_ClientCount(t *testing.T) { FILE: web/web.go type Service (line 13) | type Service interface type Option (line 25) | type Option function NewService (line 45) | func NewService(opts ...Option) Service { FILE: web/web_test.go function TestWeb (line 15) | func TestWeb(t *testing.T) { function testFunc (line 21) | func testFunc() { FILE: wrapper/auth/client.go type ClientOptions (line 12) | type ClientOptions struct function AuthClient (line 34) | func AuthClient(opts ClientOptions) client.Wrapper { type authClient (line 44) | type authClient struct method Call (line 50) | func (a *authClient) Call(ctx context.Context, req client.Request, rsp... method Stream (line 77) | func (a *authClient) Stream(ctx context.Context, req client.Request, o... method Publish (line 104) | func (a *authClient) Publish(ctx context.Context, msg client.Message, ... function FromToken (line 132) | func FromToken(token string) client.Wrapper { function FromContext (line 140) | func FromContext(authProvider auth.Auth) client.Wrapper { FILE: wrapper/auth/metadata.go constant MetadataKeyAuthorization (line 13) | MetadataKeyAuthorization = "Authorization" constant BearerPrefix (line 15) | BearerPrefix = "Bearer " function TokenFromMetadata (line 27) | func TokenFromMetadata(md metadata.Metadata) (string, error) { function TokenToMetadata (line 54) | func TokenToMetadata(md metadata.Metadata, token string) metadata.Metada... function AccountFromMetadata (line 67) | func AccountFromMetadata(md metadata.Metadata, a auth.Auth) (*auth.Accou... FILE: wrapper/auth/server.go type HandlerOptions (line 13) | type HandlerOptions struct function AuthHandler (line 44) | func AuthHandler(opts HandlerOptions) server.HandlerWrapper { function PublicEndpoints (line 113) | func PublicEndpoints(authProvider auth.Auth, rules auth.Rules, publicEnd... function AuthRequired (line 122) | func AuthRequired(authProvider auth.Auth, rules auth.Rules) HandlerOptio... function AuthOptional (line 132) | func AuthOptional(authProvider auth.Auth) server.HandlerWrapper { FILE: wrapper/trace/opentelemetry/opentelemetry.go constant instrumentationName (line 15) | instrumentationName = "github.com/micro/plugins/v5/wrapper/trace/opentel... function StartSpanFromContext (line 20) | func StartSpanFromContext(ctx context.Context, tp trace.TracerProvider, ... FILE: wrapper/trace/opentelemetry/options.go type Options (line 11) | type Options struct type CallFilter (line 22) | type CallFilter type StreamFilter (line 25) | type StreamFilter type PublishFilter (line 28) | type PublishFilter type SubscriberFilter (line 31) | type SubscriberFilter type HandlerFilter (line 34) | type HandlerFilter type Option (line 36) | type Option function WithTraceProvider (line 38) | func WithTraceProvider(tp trace.TracerProvider) Option { function WithCallFilter (line 44) | func WithCallFilter(filter CallFilter) Option { function WithStreamFilter (line 50) | func WithStreamFilter(filter StreamFilter) Option { function WithPublishFilter (line 56) | func WithPublishFilter(filter PublishFilter) Option { function WithSubscribeFilter (line 62) | func WithSubscribeFilter(filter SubscriberFilter) Option { function WithHandleFilter (line 68) | func WithHandleFilter(filter HandlerFilter) Option { FILE: wrapper/trace/opentelemetry/wrapper.go function NewCallWrapper (line 15) | func NewCallWrapper(opts ...Option) client.CallWrapper { function NewHandlerWrapper (line 42) | func NewHandlerWrapper(opts ...Option) server.HandlerWrapper { function NewSubscriberWrapper (line 69) | func NewSubscriberWrapper(opts ...Option) server.SubscriberWrapper { function NewClientWrapper (line 97) | func NewClientWrapper(opts ...Option) client.Wrapper { type clientWrapper (line 114) | type clientWrapper struct method Call (line 123) | func (w *clientWrapper) Call(ctx context.Context, req client.Request, ... method Stream (line 141) | func (w *clientWrapper) Stream(ctx context.Context, req client.Request... method Publish (line 159) | func (w *clientWrapper) Publish(ctx context.Context, p client.Message,...