service

package
v0.0.0-...-aee672f Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonStringToMap

func JsonStringToMap(jsonString string) (map[string]interface{}, error)

func MapGenText

func MapGenText(data map[string]interface{}, tmplStr string) (string, error)

Types

type Service

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

func New

func New(c *conf.Config) *Service

func (*Service) Close

func (s *Service) Close()

Close close the resource

func (*Service) Ping

func (s *Service) Ping(ctx context.Context) error

Ping check service's resource status

func (*Service) TextGen

func (s *Service) TextGen(ctx context.Context, req model.TextGenReq) (res model.TextGenRes, err error)

Jump to

Keyboard shortcuts

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