serviceHandler

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler is used to handle all user main service functions

func New

func New() *Handler

New returns a new service handler

func (Handler) Activate

func (handler Handler) Activate(ctx context.Context, request *proto.Identifier) (*proto.Message, error)

Activate is used to handle Activate function

func (Handler) Add

func (handler Handler) Add(ctx context.Context, request *proto.Identifier) (*proto.Message, error)

Add is used to handle Add function

func (Handler) Delete

func (handler Handler) Delete(ctx context.Context, request *proto.Identifier) (*proto.Message, error)

Delete is used to handle Delete function

func (Handler) Get

func (handler Handler) Get(ctx context.Context, request *proto.Identifier) (*proto.Data, error)

Get is used to handle Get function

Jump to

Keyboard shortcuts

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