service

package
v0.0.0-...-fc3792f Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service service.

func New

func New() (s *Service)

New new a service and return.

func (*Service) Close

func (s *Service) Close()

Close close the resource.

func (*Service) GetToken

func (s *Service) GetToken(ctx context.Context, mid int64) (token string, err error)

func (*Service) Ping

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

Ping ping the resource.

func (*Service) SetToken

func (s *Service) SetToken(ctx context.Context, token string, mid int64) (err error)

func (*Service) Token

func (s *Service) Token(ctx context.Context, token string) (mid int64, err error)

Jump to

Keyboard shortcuts

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