model

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

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

func New

func New(opts ...Option) Base

func (Base) AccountSecret

func (m Base) AccountSecret() *secret.Info

func (Base) ClientConn

func (m Base) ClientConn(target string) *grpc.ClientConn

func (Base) Context

func (m Base) Context() context.Context

func (Base) CronTask

func (m Base) CronTask() task.Task

func (Base) Discovery

func (m Base) Discovery() discovery.Discovery

func (Base) Logger

func (m Base) Logger() *logger.Helper

func (Base) MessageQueue

func (m Base) MessageQueue() queue.Queue

func (Base) Metadata

func (m Base) Metadata() *common.Metadata

func (Base) RpcContext added in v0.1.6

func (m Base) RpcContext(keyID int64, product ...string) context.Context

func (Base) Storage

func (m Base) Storage() storage.Storage

type Option

type Option func(*Base)

func WithContext

func WithContext(ctx context.Context) Option

Jump to

Keyboard shortcuts

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